Merge branch 'calamares' of https://github.com/calamares/calamares into development
This commit is contained in:
commit
ba0bcc8cd2
@ -135,15 +135,15 @@ set( CALAMARES_DESCRIPTION_SUMMARY
|
|||||||
# NOTE: update these lines by running `txstats.py`, or for full automation
|
# NOTE: update these lines by running `txstats.py`, or for full automation
|
||||||
# `txstats.py -e`. See also
|
# `txstats.py -e`. See also
|
||||||
#
|
#
|
||||||
# Total 81 languages
|
# Total 74 languages
|
||||||
set( _tx_complete az az_AZ ca de fa fi_FI he hr ja ko lt pt_PT si
|
set( _tx_complete az az_AZ ca de fa fi_FI he hi hr ja ko lt pt_BR
|
||||||
sq tr_TR uk zh_TW )
|
pt_PT si sq sv tr_TR uk zh_TW )
|
||||||
set( _tx_good as be ca@valencia cs_CZ da fr fur hi it_IT ml nl
|
set( _tx_good as be ca@valencia cs_CZ da fr fur it_IT ml nl ru sk
|
||||||
pt_BR ru sk sv tg vi zh_CN )
|
tg vi zh_CN )
|
||||||
set( _tx_ok ar ast bg bn el en_GB es es_MX et eu gl hu id is mr nb
|
set( _tx_ok ar ast bg bn el en_GB es es_MX et eu gl hu id is mr nb
|
||||||
pl ro sl sr sr@latin th )
|
pl ro sl sr sr@latin th )
|
||||||
set( _tx_incomplete en_HK en_IN eo es_PE es_PR fr_CH gu hi_IN id_ID
|
set( _tx_incomplete eo es_PR gu ie kk kn lo lv mk ne ne_NP ta_IN te
|
||||||
ie kk kn ko_KR lo lv mk ne ne_NP te te_IN ur zh zh_HK )
|
ur zh zh_HK )
|
||||||
|
|
||||||
### Required versions
|
### Required versions
|
||||||
#
|
#
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
[![Current issue](https://img.shields.io/badge/issue-in_progress-FE9B48)](https://github.com/calamares/calamares/labels/hacking%3A%20in-progress)
|
[![Current issue](https://img.shields.io/badge/issue-in_progress-FE9B48)](https://github.com/calamares/calamares/labels/hacking%3A%20in-progress)
|
||||||
[![GitHub release](https://img.shields.io/github/release/calamares/calamares.svg)](https://github.com/calamares/calamares/releases)
|
[![GitHub release](https://img.shields.io/github/release/calamares/calamares.svg)](https://github.com/calamares/calamares/releases)
|
||||||
[![GitHub Build Status](https://img.shields.io/github/workflow/status/calamares/calamares/ci?label=GH%20build)](https://github.com/calamares/calamares/actions?query=workflow%3Aci)
|
[![GitHub Build Status](https://img.shields.io/github/workflow/status/calamares/calamares/ci?label=GH%20build)](https://github.com/calamares/calamares/actions?query=workflow%3Aci)
|
||||||
[![GitHub license](https://img.shields.io/github/license/calamares/calamares.svg)](https://github.com/calamares/calamares/blob/calamares/LICENSE)
|
[![GitHub license](https://img.shields.io/github/license/calamares/calamares.svg)](https://github.com/calamares/calamares/blob/calamares/LICENSES/GPL-3.0-or-later.txt)
|
||||||
|
|
||||||
|
|
||||||
| [Report a Bug](https://github.com/calamares/calamares/issues/new) | [Translate](https://www.transifex.com/projects/p/calamares/) | [Contribute](CONTRIBUTING.md) | [Matrix: #calamares:kde.org](https://webchat.kde.org/#/room/%23calamares:kde.org) | [IRC: Libera.Chat #calamares](https://kiwiirc.com/client/irc.libera.chat/#calamares) | [Wiki](https://github.com/calamares/calamares/wiki) |
|
| [Report a Bug](https://github.com/calamares/calamares/issues/new) | [Translate](https://www.transifex.com/projects/p/calamares/) | [Contribute](CONTRIBUTING.md) | [Matrix: #calamares:kde.org](https://webchat.kde.org/#/room/%23calamares:kde.org) | [IRC: Libera.Chat #calamares](https://kiwiirc.com/client/irc.libera.chat/#calamares) | [Wiki](https://github.com/calamares/calamares/wiki) |
|
||||||
|
@ -1989,7 +1989,7 @@ The installer will quit and all changes will be lost.</translation>
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/machineid/MachineIdJob.cpp" line="53"/>
|
<location filename="../src/modules/machineid/MachineIdJob.cpp" line="53"/>
|
||||||
<source>Configuration Error</source>
|
<source>Configuration Error</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Configuration Error </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/machineid/MachineIdJob.cpp" line="54"/>
|
<location filename="../src/modules/machineid/MachineIdJob.cpp" line="54"/>
|
||||||
|
@ -689,27 +689,27 @@ The installer will quit and all changes will be lost.</source>
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/jobs/ClearMountsJob.cpp" line="259"/>
|
<location filename="../src/modules/partition/jobs/ClearMountsJob.cpp" line="259"/>
|
||||||
<source>Successfully unmounted %1.</source>
|
<source>Successfully unmounted %1.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>%1 को माउंट से हटाना सफल।</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/jobs/ClearMountsJob.cpp" line="266"/>
|
<location filename="../src/modules/partition/jobs/ClearMountsJob.cpp" line="266"/>
|
||||||
<source>Successfully disabled swap %1.</source>
|
<source>Successfully disabled swap %1.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>%1 स्वैप निष्क्रिय करना सफल।</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/jobs/ClearMountsJob.cpp" line="292"/>
|
<location filename="../src/modules/partition/jobs/ClearMountsJob.cpp" line="292"/>
|
||||||
<source>Successfully cleared swap %1.</source>
|
<source>Successfully cleared swap %1.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>%1 स्वैप रिक्त करना सफल।</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/jobs/ClearMountsJob.cpp" line="306"/>
|
<location filename="../src/modules/partition/jobs/ClearMountsJob.cpp" line="306"/>
|
||||||
<source>Successfully closed mapper device %1.</source>
|
<source>Successfully closed mapper device %1.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>प्रतिचित्रण उपकरण %1 बंद करना सफल।</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/jobs/ClearMountsJob.cpp" line="319"/>
|
<location filename="../src/modules/partition/jobs/ClearMountsJob.cpp" line="319"/>
|
||||||
<source>Successfully disabled volume group %1.</source>
|
<source>Successfully disabled volume group %1.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>वॉल्यूम समूह %1 निष्क्रिय करना सफल।</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/jobs/ClearMountsJob.cpp" line="358"/>
|
<location filename="../src/modules/partition/jobs/ClearMountsJob.cpp" line="358"/>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/jobs/AutoMountManagementJob.cpp" line="22"/>
|
<location filename="../src/modules/partition/jobs/AutoMountManagementJob.cpp" line="22"/>
|
||||||
<source>Manage auto-mount settings</source>
|
<source>Manage auto-mount settings</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Kelola pengaturan mount otomatis</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
@ -114,12 +114,12 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/calamares/DebugWindow.ui" line="141"/>
|
<location filename="../src/calamares/DebugWindow.ui" line="141"/>
|
||||||
<source>Uploads the session log to the configured pastebin.</source>
|
<source>Uploads the session log to the configured pastebin.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Unggah catatan sesi ke pastebin yang telah dikonfigurasi.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/calamares/DebugWindow.ui" line="144"/>
|
<location filename="../src/calamares/DebugWindow.ui" line="144"/>
|
||||||
<source>Send Session Log</source>
|
<source>Send Session Log</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Kirim Catatan Sesi</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/calamares/DebugWindow.ui" line="118"/>
|
<location filename="../src/calamares/DebugWindow.ui" line="118"/>
|
||||||
@ -165,7 +165,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/libcalamares/JobExample.cpp" line="30"/>
|
<location filename="../src/libcalamares/JobExample.cpp" line="30"/>
|
||||||
<source>Programmed job failure was explicitly requested.</source>
|
<source>Programmed job failure was explicitly requested.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Kegagalan pekerjaan diprogram diminta secara eksplisit. </translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
@ -189,7 +189,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/libcalamares/ProcessJob.cpp" line="43"/>
|
<location filename="../src/libcalamares/ProcessJob.cpp" line="43"/>
|
||||||
<source>Run command '%1' in target system.</source>
|
<source>Run command '%1' in target system.</source>
|
||||||
<translation>Jalankan perintah '%1' di dalam sistem target.</translation>
|
<translation>Jalankan perintah '%1' pada sistem target.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/libcalamares/ProcessJob.cpp" line="43"/>
|
<location filename="../src/libcalamares/ProcessJob.cpp" line="43"/>
|
||||||
@ -245,7 +245,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/libcalamaresui/viewpages/QmlViewStep.cpp" line="88"/>
|
<location filename="../src/libcalamaresui/viewpages/QmlViewStep.cpp" line="88"/>
|
||||||
<source>QML Step <i>%1</i>.</source>
|
<source>QML Step <i>%1</i>.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>QML Langkah <i>%1</i>.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/libcalamaresui/viewpages/QmlViewStep.cpp" line="268"/>
|
<location filename="../src/libcalamaresui/viewpages/QmlViewStep.cpp" line="268"/>
|
||||||
@ -277,7 +277,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/libcalamares/modulesystem/RequirementsChecker.cpp" line="121"/>
|
<location filename="../src/libcalamares/modulesystem/RequirementsChecker.cpp" line="121"/>
|
||||||
<source>System-requirements checking is complete.</source>
|
<source>System-requirements checking is complete.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Pengecekan kebutuhan sistem telah selesai.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
@ -295,7 +295,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/libcalamaresui/ViewManager.cpp" line="163"/>
|
<location filename="../src/libcalamaresui/ViewManager.cpp" line="163"/>
|
||||||
<source>Would you like to paste the install log to the web?</source>
|
<source>Would you like to paste the install log to the web?</source>
|
||||||
<translation>Maukah anda untuk menempelkan log instalasi ke situs?</translation>
|
<translation>Maukah anda menempelkan log instalasi ke situs?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/libcalamaresui/ViewManager.cpp" line="179"/>
|
<location filename="../src/libcalamaresui/ViewManager.cpp" line="179"/>
|
||||||
@ -429,7 +429,7 @@ Link copied to clipboard</source>
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/libcalamaresui/ViewManager.cpp" line="425"/>
|
<location filename="../src/libcalamaresui/ViewManager.cpp" line="425"/>
|
||||||
<source>&Done</source>
|
<source>&Done</source>
|
||||||
<translation>&Kelar</translation>
|
<translation>&Selesai</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/libcalamaresui/ViewManager.cpp" line="444"/>
|
<location filename="../src/libcalamaresui/ViewManager.cpp" line="444"/>
|
||||||
@ -1054,12 +1054,12 @@ Instalasi dapat dilanjutkan, namun beberapa fitur akan dinonfungsikan.</translat
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/gui/CreatePartitionDialog.ui" line="231"/>
|
<location filename="../src/modules/partition/gui/CreatePartitionDialog.ui" line="231"/>
|
||||||
<source>Label for the filesystem</source>
|
<source>Label for the filesystem</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Label untuk filesystem</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/gui/CreatePartitionDialog.ui" line="241"/>
|
<location filename="../src/modules/partition/gui/CreatePartitionDialog.ui" line="241"/>
|
||||||
<source>FS Label:</source>
|
<source>FS Label:</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Label FS:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/gui/CreatePartitionDialog.cpp" line="65"/>
|
<location filename="../src/modules/partition/gui/CreatePartitionDialog.cpp" line="65"/>
|
||||||
@ -1418,12 +1418,12 @@ Instalasi dapat dilanjutkan, namun beberapa fitur akan dinonfungsikan.</translat
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/gui/EditExistingPartitionDialog.ui" line="186"/>
|
<location filename="../src/modules/partition/gui/EditExistingPartitionDialog.ui" line="186"/>
|
||||||
<source>Label for the filesystem</source>
|
<source>Label for the filesystem</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Label untuk filesystem</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/gui/EditExistingPartitionDialog.ui" line="196"/>
|
<location filename="../src/modules/partition/gui/EditExistingPartitionDialog.ui" line="196"/>
|
||||||
<source>FS Label:</source>
|
<source>FS Label:</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Label FS:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/gui/EditExistingPartitionDialog.cpp" line="291"/>
|
<location filename="../src/modules/partition/gui/EditExistingPartitionDialog.cpp" line="291"/>
|
||||||
@ -1582,7 +1582,7 @@ Instalasi dapat dilanjutkan, namun beberapa fitur akan dinonfungsikan.</translat
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/jobs/FormatPartitionJob.cpp" line="36"/>
|
<location filename="../src/modules/partition/jobs/FormatPartitionJob.cpp" line="36"/>
|
||||||
<source>Format partition %1 (file system: %2, size: %3 MiB) on %4.</source>
|
<source>Format partition %1 (file system: %2, size: %3 MiB) on %4.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Format partisi %1 (file system: %2, ukuran %3 MiB) pada %4.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/jobs/FormatPartitionJob.cpp" line="47"/>
|
<location filename="../src/modules/partition/jobs/FormatPartitionJob.cpp" line="47"/>
|
||||||
@ -1645,12 +1645,12 @@ Instalasi dapat dilanjutkan, namun beberapa fitur akan dinonfungsikan.</translat
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/welcome/checker/GeneralRequirements.cpp" line="193"/>
|
<location filename="../src/modules/welcome/checker/GeneralRequirements.cpp" line="193"/>
|
||||||
<source>is running the installer as an administrator (root)</source>
|
<source>is running the installer as an administrator (root)</source>
|
||||||
<translation type="unfinished"/>
|
<translation>menjalankan installer sebagai administrator (root)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/welcome/checker/GeneralRequirements.cpp" line="196"/>
|
<location filename="../src/modules/welcome/checker/GeneralRequirements.cpp" line="196"/>
|
||||||
<source>The setup program is not running with administrator rights.</source>
|
<source>The setup program is not running with administrator rights.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Installer tidak dijalankan dengan kewenangan administrator.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/welcome/checker/GeneralRequirements.cpp" line="197"/>
|
<location filename="../src/modules/welcome/checker/GeneralRequirements.cpp" line="197"/>
|
||||||
@ -1699,7 +1699,7 @@ Instalasi dapat dilanjutkan, namun beberapa fitur akan dinonfungsikan.</translat
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/oemid/IDJob.cpp" line="53"/>
|
<location filename="../src/modules/oemid/IDJob.cpp" line="53"/>
|
||||||
<source>Could not open file <code>%1</code>.</source>
|
<source>Could not open file <code>%1</code>.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Tidak dapat membuka berkas <code>%1</code>.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/oemid/IDJob.cpp" line="60"/>
|
<location filename="../src/modules/oemid/IDJob.cpp" line="60"/>
|
||||||
@ -1712,7 +1712,7 @@ Instalasi dapat dilanjutkan, namun beberapa fitur akan dinonfungsikan.</translat
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/initcpio/InitcpioJob.cpp" line="31"/>
|
<location filename="../src/modules/initcpio/InitcpioJob.cpp" line="31"/>
|
||||||
<source>Creating initramfs with mkinitcpio.</source>
|
<source>Creating initramfs with mkinitcpio.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Membuat initramfs menggunakan mkinitcpio.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
@ -1720,7 +1720,7 @@ Instalasi dapat dilanjutkan, namun beberapa fitur akan dinonfungsikan.</translat
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/initramfs/InitramfsJob.cpp" line="28"/>
|
<location filename="../src/modules/initramfs/InitramfsJob.cpp" line="28"/>
|
||||||
<source>Creating initramfs.</source>
|
<source>Creating initramfs.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Membuat initramfs.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
@ -2031,12 +2031,12 @@ Instalasi dapat dilanjutkan, namun beberapa fitur akan dinonfungsikan.</translat
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/netinstall/NetInstallViewStep.cpp" line="52"/>
|
<location filename="../src/modules/netinstall/NetInstallViewStep.cpp" line="52"/>
|
||||||
<source>Browser software</source>
|
<source>Browser software</source>
|
||||||
<translation>Peramban perangkat lunak</translation>
|
<translation>Perangkat lunak peramban</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/netinstall/NetInstallViewStep.cpp" line="53"/>
|
<location filename="../src/modules/netinstall/NetInstallViewStep.cpp" line="53"/>
|
||||||
<source>Browser package</source>
|
<source>Browser package</source>
|
||||||
<translation>Peramban paket</translation>
|
<translation>Paket peramban</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/netinstall/NetInstallViewStep.cpp" line="54"/>
|
<location filename="../src/modules/netinstall/NetInstallViewStep.cpp" line="54"/>
|
||||||
@ -2046,12 +2046,12 @@ Instalasi dapat dilanjutkan, namun beberapa fitur akan dinonfungsikan.</translat
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/netinstall/NetInstallViewStep.cpp" line="55"/>
|
<location filename="../src/modules/netinstall/NetInstallViewStep.cpp" line="55"/>
|
||||||
<source>Kernel</source>
|
<source>Kernel</source>
|
||||||
<translation>Inti</translation>
|
<translation>Kernel</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/netinstall/NetInstallViewStep.cpp" line="56"/>
|
<location filename="../src/modules/netinstall/NetInstallViewStep.cpp" line="56"/>
|
||||||
<source>Services</source>
|
<source>Services</source>
|
||||||
<translation>Jasa</translation>
|
<translation>Servis</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/netinstall/NetInstallViewStep.cpp" line="57"/>
|
<location filename="../src/modules/netinstall/NetInstallViewStep.cpp" line="57"/>
|
||||||
@ -2587,12 +2587,12 @@ Instalasi dapat dilanjutkan, namun beberapa fitur akan dinonfungsikan.</translat
|
|||||||
<location filename="../src/modules/users/page_usersetup.ui" line="380"/>
|
<location filename="../src/modules/users/page_usersetup.ui" line="380"/>
|
||||||
<location filename="../src/modules/users/page_usersetup.ui" line="550"/>
|
<location filename="../src/modules/users/page_usersetup.ui" line="550"/>
|
||||||
<source>Repeat Password</source>
|
<source>Repeat Password</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Ulangi Kata Sandi</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/users/page_usersetup.ui" line="455"/>
|
<location filename="../src/modules/users/page_usersetup.ui" line="455"/>
|
||||||
<source>When this box is checked, password-strength checking is done and you will not be able to use a weak password.</source>
|
<source>When this box is checked, password-strength checking is done and you will not be able to use a weak password.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Ketikan kotak ini dicentang, pengecekan kekuatan kata sandi akan dilakukan dan anda tidak akan dapat menggunakan kata sandi yang lemah.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/users/page_usersetup.ui" line="458"/>
|
<location filename="../src/modules/users/page_usersetup.ui" line="458"/>
|
||||||
@ -4252,7 +4252,7 @@ Keluaran:
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/usersq/usersq.qml" line="136"/>
|
<location filename="../src/modules/usersq/usersq.qml" line="136"/>
|
||||||
<source>root is not allowed as username.</source>
|
<source>root is not allowed as username.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>root tidak boleh digunakan sebagai nama pengguna.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/usersq/usersq.qml" line="145"/>
|
<location filename="../src/modules/usersq/usersq.qml" line="145"/>
|
||||||
@ -4287,7 +4287,7 @@ Keluaran:
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/usersq/usersq.qml" line="234"/>
|
<location filename="../src/modules/usersq/usersq.qml" line="234"/>
|
||||||
<source>Repeat Password</source>
|
<source>Repeat Password</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Ulangi Kata Sandi</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/usersq/usersq.qml" line="261"/>
|
<location filename="../src/modules/usersq/usersq.qml" line="261"/>
|
||||||
@ -4297,27 +4297,27 @@ Keluaran:
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/usersq/usersq.qml" line="406"/>
|
<location filename="../src/modules/usersq/usersq.qml" line="406"/>
|
||||||
<source>Validate passwords quality</source>
|
<source>Validate passwords quality</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Validasi kualitas kata sandi</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/usersq/usersq.qml" line="416"/>
|
<location filename="../src/modules/usersq/usersq.qml" line="416"/>
|
||||||
<source>When this box is checked, password-strength checking is done and you will not be able to use a weak password.</source>
|
<source>When this box is checked, password-strength checking is done and you will not be able to use a weak password.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Ketikan kotak ini dicentang, pengecekan kekuatan kata sandi akan dilakukan dan anda tidak akan dapat menggunakan kata sandi yang lemah.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/usersq/usersq.qml" line="398"/>
|
<location filename="../src/modules/usersq/usersq.qml" line="398"/>
|
||||||
<source>Log in automatically without asking for the password</source>
|
<source>Log in automatically without asking for the password</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Masuk ke dalam sesi secara otomatis tanpa menanyakan kata sandi</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/usersq/usersq.qml" line="190"/>
|
<location filename="../src/modules/usersq/usersq.qml" line="190"/>
|
||||||
<source>Only letters, numbers, underscore and hyphen are allowed, minimal of two characters.</source>
|
<source>Only letters, numbers, underscore and hyphen are allowed, minimal of two characters.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Hanya huruf, angka, garis bawah, dan tanda hubung yang diperbolehkan, minimal dua karakter.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/usersq/usersq.qml" line="293"/>
|
<location filename="../src/modules/usersq/usersq.qml" line="293"/>
|
||||||
<source>Reuse user password as root password</source>
|
<source>Reuse user password as root password</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Gunakan kata sandi pengguna sebagai kata sandi root</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/usersq/usersq.qml" line="301"/>
|
<location filename="../src/modules/usersq/usersq.qml" line="301"/>
|
||||||
@ -4332,12 +4332,12 @@ Keluaran:
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/usersq/usersq.qml" line="324"/>
|
<location filename="../src/modules/usersq/usersq.qml" line="324"/>
|
||||||
<source>Root Password</source>
|
<source>Root Password</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Kata Sandi Root</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/usersq/usersq.qml" line="342"/>
|
<location filename="../src/modules/usersq/usersq.qml" line="342"/>
|
||||||
<source>Repeat Root Password</source>
|
<source>Repeat Root Password</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Ulangi Kata Sandi</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/usersq/usersq.qml" line="368"/>
|
<location filename="../src/modules/usersq/usersq.qml" line="368"/>
|
||||||
|
@ -1991,7 +1991,7 @@ Programul de instalare va ieși, iar toate modificările vor fi pierdute.</trans
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/machineid/MachineIdJob.cpp" line="53"/>
|
<location filename="../src/modules/machineid/MachineIdJob.cpp" line="53"/>
|
||||||
<source>Configuration Error</source>
|
<source>Configuration Error</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Eroare de configurare</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/machineid/MachineIdJob.cpp" line="54"/>
|
<location filename="../src/modules/machineid/MachineIdJob.cpp" line="54"/>
|
||||||
|
4377
lang/calamares_ta_IN.ts
Normal file
4377
lang/calamares_ta_IN.ts
Normal file
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/modules/partition/jobs/AutoMountManagementJob.cpp" line="22"/>
|
<location filename="../src/modules/partition/jobs/AutoMountManagementJob.cpp" line="22"/>
|
||||||
<source>Manage auto-mount settings</source>
|
<source>Manage auto-mount settings</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Quản lý cài đặt tự động gắn kết(auto-mount)</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
@ -104,22 +104,22 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/calamares/DebugWindow.ui" line="102"/>
|
<location filename="../src/calamares/DebugWindow.ui" line="102"/>
|
||||||
<source>Crashes Calamares, so that Dr. Konqui can look at it.</source>
|
<source>Crashes Calamares, so that Dr. Konqui can look at it.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Gây crash Calamares, để Dr. Konqui có thể xem nó.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/calamares/DebugWindow.ui" line="115"/>
|
<location filename="../src/calamares/DebugWindow.ui" line="115"/>
|
||||||
<source>Reloads the stylesheet from the branding directory.</source>
|
<source>Reloads the stylesheet from the branding directory.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Tải lại stylesheet từ thư mục branding</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/calamares/DebugWindow.ui" line="141"/>
|
<location filename="../src/calamares/DebugWindow.ui" line="141"/>
|
||||||
<source>Uploads the session log to the configured pastebin.</source>
|
<source>Uploads the session log to the configured pastebin.</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Đăng tải log của phiên này lên pastebin đã được cấu hình</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/calamares/DebugWindow.ui" line="144"/>
|
<location filename="../src/calamares/DebugWindow.ui" line="144"/>
|
||||||
<source>Send Session Log</source>
|
<source>Send Session Log</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Gửi log của phiên này</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/calamares/DebugWindow.ui" line="118"/>
|
<location filename="../src/calamares/DebugWindow.ui" line="118"/>
|
||||||
@ -129,7 +129,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/calamares/DebugWindow.ui" line="128"/>
|
<location filename="../src/calamares/DebugWindow.ui" line="128"/>
|
||||||
<source>Displays the tree of widget names in the log (for stylesheet debugging).</source>
|
<source>Displays the tree of widget names in the log (for stylesheet debugging).</source>
|
||||||
<translation type="unfinished"/>
|
<translation>Hiễn thị cây của tên widget trong log(để gỡ lỗi stylesheet)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/calamares/DebugWindow.ui" line="131"/>
|
<location filename="../src/calamares/DebugWindow.ui" line="131"/>
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#
|
#
|
||||||
# Translators:
|
# Translators:
|
||||||
# Jason Collins <JasonPCollins@protonmail.com>, 2018
|
# Jason Collins <JasonPCollins@protonmail.com>, 2018
|
||||||
|
# Karthik Balan, 2021
|
||||||
#
|
#
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -13,7 +14,7 @@ msgstr ""
|
|||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-11-02 15:45+0100\n"
|
"POT-Creation-Date: 2021-11-02 15:45+0100\n"
|
||||||
"PO-Revision-Date: 2017-08-09 10:34+0000\n"
|
"PO-Revision-Date: 2017-08-09 10:34+0000\n"
|
||||||
"Last-Translator: Jason Collins <JasonPCollins@protonmail.com>, 2018\n"
|
"Last-Translator: Karthik Balan, 2021\n"
|
||||||
"Language-Team: English (United Kingdom) (https://www.transifex.com/calamares/teams/20061/en_GB/)\n"
|
"Language-Team: English (United Kingdom) (https://www.transifex.com/calamares/teams/20061/en_GB/)\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
@ -35,7 +36,7 @@ msgstr ""
|
|||||||
#: src/modules/luksopenswaphookcfg/main.py:86
|
#: src/modules/luksopenswaphookcfg/main.py:86
|
||||||
#: src/modules/luksopenswaphookcfg/main.py:90
|
#: src/modules/luksopenswaphookcfg/main.py:90
|
||||||
msgid "Configuration Error"
|
msgid "Configuration Error"
|
||||||
msgstr ""
|
msgstr "Configuration Error "
|
||||||
|
|
||||||
#: src/modules/initramfscfg/main.py:86 src/modules/fstab/main.py:356
|
#: src/modules/initramfscfg/main.py:86 src/modules/fstab/main.py:356
|
||||||
#: src/modules/initcpiocfg/main.py:228 src/modules/mount/main.py:145
|
#: src/modules/initcpiocfg/main.py:228 src/modules/mount/main.py:145
|
||||||
@ -61,7 +62,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: src/modules/bootloader/main.py:508
|
#: src/modules/bootloader/main.py:508
|
||||||
msgid "Bootloader installation error"
|
msgid "Bootloader installation error"
|
||||||
msgstr ""
|
msgstr "Bootloader installation error"
|
||||||
|
|
||||||
#: src/modules/bootloader/main.py:509
|
#: src/modules/bootloader/main.py:509
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -91,7 +92,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: src/modules/displaymanager/main.py:526
|
#: src/modules/displaymanager/main.py:526
|
||||||
msgid "Cannot write KDM configuration file"
|
msgid "Cannot write KDM configuration file"
|
||||||
msgstr ""
|
msgstr "Cannot write KDM configuration file"
|
||||||
|
|
||||||
#: src/modules/displaymanager/main.py:527
|
#: src/modules/displaymanager/main.py:527
|
||||||
msgid "KDM config file {!s} does not exist"
|
msgid "KDM config file {!s} does not exist"
|
||||||
@ -145,7 +146,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: src/modules/services-openrc/main.py:29
|
#: src/modules/services-openrc/main.py:29
|
||||||
msgid "Configure OpenRC services"
|
msgid "Configure OpenRC services"
|
||||||
msgstr ""
|
msgstr "Configure OpenRC services"
|
||||||
|
|
||||||
#: src/modules/services-openrc/main.py:57
|
#: src/modules/services-openrc/main.py:57
|
||||||
msgid "Cannot add service {name!s} to run-level {level!s}."
|
msgid "Cannot add service {name!s} to run-level {level!s}."
|
||||||
@ -173,7 +174,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: src/modules/services-openrc/main.py:101
|
#: src/modules/services-openrc/main.py:101
|
||||||
msgid "Target runlevel does not exist"
|
msgid "Target runlevel does not exist"
|
||||||
msgstr ""
|
msgstr "Target runlevel does not exist"
|
||||||
|
|
||||||
#: src/modules/services-openrc/main.py:102
|
#: src/modules/services-openrc/main.py:102
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -193,7 +194,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: src/modules/networkcfg/main.py:29
|
#: src/modules/networkcfg/main.py:29
|
||||||
msgid "Saving network configuration."
|
msgid "Saving network configuration."
|
||||||
msgstr ""
|
msgstr "Saving network configuration "
|
||||||
|
|
||||||
#: src/modules/packages/main.py:50 src/modules/packages/main.py:59
|
#: src/modules/packages/main.py:50 src/modules/packages/main.py:59
|
||||||
#: src/modules/packages/main.py:69
|
#: src/modules/packages/main.py:69
|
||||||
@ -222,7 +223,7 @@ msgstr[1] "Removing %(num)d packages."
|
|||||||
#: src/modules/packages/main.py:638 src/modules/packages/main.py:650
|
#: src/modules/packages/main.py:638 src/modules/packages/main.py:650
|
||||||
#: src/modules/packages/main.py:678
|
#: src/modules/packages/main.py:678
|
||||||
msgid "Package Manager error"
|
msgid "Package Manager error"
|
||||||
msgstr ""
|
msgstr "Package Manager error"
|
||||||
|
|
||||||
#: src/modules/packages/main.py:639
|
#: src/modules/packages/main.py:639
|
||||||
msgid ""
|
msgid ""
|
||||||
|
@ -319,7 +319,7 @@ msgstr "systemd लक्ष्य <code>{name!s}</code>सक्रिय क
|
|||||||
|
|
||||||
#: src/modules/services-systemd/main.py:67
|
#: src/modules/services-systemd/main.py:67
|
||||||
msgid "Cannot enable systemd timer <code>{name!s}</code>."
|
msgid "Cannot enable systemd timer <code>{name!s}</code>."
|
||||||
msgstr ""
|
msgstr "systemd टाइमर <code>{name!s}</code>सक्रिय करना विफल।"
|
||||||
|
|
||||||
#: src/modules/services-systemd/main.py:71
|
#: src/modules/services-systemd/main.py:71
|
||||||
msgid "Cannot disable systemd target <code>{name!s}</code>."
|
msgid "Cannot disable systemd target <code>{name!s}</code>."
|
||||||
@ -399,6 +399,8 @@ msgid ""
|
|||||||
"Failed to find unsquashfs, make sure you have the squashfs-tools package "
|
"Failed to find unsquashfs, make sure you have the squashfs-tools package "
|
||||||
"installed."
|
"installed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"unsqaushfs खोजने में विफल, सुनिश्चित करें कि squashfs-tools पैकेज इंस्टॉल "
|
||||||
|
"है।"
|
||||||
|
|
||||||
#: src/modules/unpackfs/main.py:479
|
#: src/modules/unpackfs/main.py:479
|
||||||
msgid "The destination \"{}\" in the target system is not a directory"
|
msgid "The destination \"{}\" in the target system is not a directory"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
#
|
#
|
||||||
# Translators:
|
# Translators:
|
||||||
# Marcin Mikołajczak <me@mkljczk.pl>, 2017
|
# marcin mikołajczak <me@mkljczk.pl>, 2017
|
||||||
# KagiSame, 2018
|
# KagiSame, 2018
|
||||||
# Piotr Strębski <strebski@gmail.com>, 2020
|
# Piotr Strębski <strebski@gmail.com>, 2020
|
||||||
# Jacob B. <brickminerplyt@gmail.com>, 2021
|
# Jacob B. <brickminerplyt@gmail.com>, 2021
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
# Translators:
|
# Translators:
|
||||||
# Jobava Jobava <jobaval10n@gmail.com>, 2018
|
# Jobava Jobava <jobaval10n@gmail.com>, 2018
|
||||||
# Sebastian Brici <bricisebastian@gmail.com>, 2018
|
# Sebastian Brici <bricisebastian@gmail.com>, 2018
|
||||||
|
# Chele Ion <krovyoll@gmail.com>, 2021
|
||||||
#
|
#
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -14,7 +15,7 @@ msgstr ""
|
|||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-11-02 15:45+0100\n"
|
"POT-Creation-Date: 2021-11-02 15:45+0100\n"
|
||||||
"PO-Revision-Date: 2017-08-09 10:34+0000\n"
|
"PO-Revision-Date: 2017-08-09 10:34+0000\n"
|
||||||
"Last-Translator: Sebastian Brici <bricisebastian@gmail.com>, 2018\n"
|
"Last-Translator: Chele Ion <krovyoll@gmail.com>, 2021\n"
|
||||||
"Language-Team: Romanian (https://www.transifex.com/calamares/teams/20061/ro/)\n"
|
"Language-Team: Romanian (https://www.transifex.com/calamares/teams/20061/ro/)\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
@ -24,7 +25,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: src/modules/initramfscfg/main.py:32
|
#: src/modules/initramfscfg/main.py:32
|
||||||
msgid "Configuring initramfs."
|
msgid "Configuring initramfs."
|
||||||
msgstr ""
|
msgstr "Configurare initramfs"
|
||||||
|
|
||||||
#: src/modules/initramfscfg/main.py:85 src/modules/initramfscfg/main.py:89
|
#: src/modules/initramfscfg/main.py:85 src/modules/initramfscfg/main.py:89
|
||||||
#: src/modules/fstab/main.py:355 src/modules/fstab/main.py:361
|
#: src/modules/fstab/main.py:355 src/modules/fstab/main.py:361
|
||||||
@ -36,21 +37,21 @@ msgstr ""
|
|||||||
#: src/modules/luksopenswaphookcfg/main.py:86
|
#: src/modules/luksopenswaphookcfg/main.py:86
|
||||||
#: src/modules/luksopenswaphookcfg/main.py:90
|
#: src/modules/luksopenswaphookcfg/main.py:90
|
||||||
msgid "Configuration Error"
|
msgid "Configuration Error"
|
||||||
msgstr ""
|
msgstr "Eroare de configurare"
|
||||||
|
|
||||||
#: src/modules/initramfscfg/main.py:86 src/modules/fstab/main.py:356
|
#: src/modules/initramfscfg/main.py:86 src/modules/fstab/main.py:356
|
||||||
#: src/modules/initcpiocfg/main.py:228 src/modules/mount/main.py:145
|
#: src/modules/initcpiocfg/main.py:228 src/modules/mount/main.py:145
|
||||||
#: src/modules/rawfs/main.py:165 src/modules/openrcdmcryptcfg/main.py:73
|
#: src/modules/rawfs/main.py:165 src/modules/openrcdmcryptcfg/main.py:73
|
||||||
#: src/modules/luksopenswaphookcfg/main.py:87
|
#: src/modules/luksopenswaphookcfg/main.py:87
|
||||||
msgid "No partitions are defined for <pre>{!s}</pre> to use."
|
msgid "No partitions are defined for <pre>{!s}</pre> to use."
|
||||||
msgstr ""
|
msgstr "Nu sunt partiţii definite ca 1{!s}1 ."
|
||||||
|
|
||||||
#: src/modules/initramfscfg/main.py:90 src/modules/fstab/main.py:362
|
#: src/modules/initramfscfg/main.py:90 src/modules/fstab/main.py:362
|
||||||
#: src/modules/networkcfg/main.py:106 src/modules/initcpiocfg/main.py:232
|
#: src/modules/networkcfg/main.py:106 src/modules/initcpiocfg/main.py:232
|
||||||
#: src/modules/localecfg/main.py:136 src/modules/openrcdmcryptcfg/main.py:77
|
#: src/modules/localecfg/main.py:136 src/modules/openrcdmcryptcfg/main.py:77
|
||||||
#: src/modules/luksopenswaphookcfg/main.py:91
|
#: src/modules/luksopenswaphookcfg/main.py:91
|
||||||
msgid "No root mount point is given for <pre>{!s}</pre> to use."
|
msgid "No root mount point is given for <pre>{!s}</pre> to use."
|
||||||
msgstr ""
|
msgstr "Nu este definită o partiţie rădăcină pentru 1{!s}1 ."
|
||||||
|
|
||||||
#: src/modules/grubcfg/main.py:28
|
#: src/modules/grubcfg/main.py:28
|
||||||
msgid "Configure GRUB."
|
msgid "Configure GRUB."
|
||||||
|
387
lang/python/ta_IN/LC_MESSAGES/python.po
Normal file
387
lang/python/ta_IN/LC_MESSAGES/python.po
Normal file
@ -0,0 +1,387 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2021-11-02 15:45+0100\n"
|
||||||
|
"PO-Revision-Date: 2017-08-09 10:34+0000\n"
|
||||||
|
"Language-Team: Tamil (India) (https://www.transifex.com/calamares/teams/20061/ta_IN/)\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Language: ta_IN\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
#: src/modules/initramfscfg/main.py:32
|
||||||
|
msgid "Configuring initramfs."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/initramfscfg/main.py:85 src/modules/initramfscfg/main.py:89
|
||||||
|
#: src/modules/fstab/main.py:355 src/modules/fstab/main.py:361
|
||||||
|
#: src/modules/fstab/main.py:388 src/modules/networkcfg/main.py:105
|
||||||
|
#: src/modules/initcpiocfg/main.py:227 src/modules/initcpiocfg/main.py:231
|
||||||
|
#: src/modules/localecfg/main.py:135 src/modules/mount/main.py:144
|
||||||
|
#: src/modules/rawfs/main.py:164 src/modules/openrcdmcryptcfg/main.py:72
|
||||||
|
#: src/modules/openrcdmcryptcfg/main.py:76
|
||||||
|
#: src/modules/luksopenswaphookcfg/main.py:86
|
||||||
|
#: src/modules/luksopenswaphookcfg/main.py:90
|
||||||
|
msgid "Configuration Error"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/initramfscfg/main.py:86 src/modules/fstab/main.py:356
|
||||||
|
#: src/modules/initcpiocfg/main.py:228 src/modules/mount/main.py:145
|
||||||
|
#: src/modules/rawfs/main.py:165 src/modules/openrcdmcryptcfg/main.py:73
|
||||||
|
#: src/modules/luksopenswaphookcfg/main.py:87
|
||||||
|
msgid "No partitions are defined for <pre>{!s}</pre> to use."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/initramfscfg/main.py:90 src/modules/fstab/main.py:362
|
||||||
|
#: src/modules/networkcfg/main.py:106 src/modules/initcpiocfg/main.py:232
|
||||||
|
#: src/modules/localecfg/main.py:136 src/modules/openrcdmcryptcfg/main.py:77
|
||||||
|
#: src/modules/luksopenswaphookcfg/main.py:91
|
||||||
|
msgid "No root mount point is given for <pre>{!s}</pre> to use."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/grubcfg/main.py:28
|
||||||
|
msgid "Configure GRUB."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/bootloader/main.py:43
|
||||||
|
msgid "Install bootloader."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/bootloader/main.py:508
|
||||||
|
msgid "Bootloader installation error"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/bootloader/main.py:509
|
||||||
|
msgid ""
|
||||||
|
"The bootloader could not be installed. The installation command "
|
||||||
|
"<pre>{!s}</pre> returned error code {!s}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/fstab/main.py:29
|
||||||
|
msgid "Writing fstab."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/fstab/main.py:389
|
||||||
|
msgid "No <pre>{!s}</pre> configuration is given for <pre>{!s}</pre> to use."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/dracut/main.py:27
|
||||||
|
msgid "Creating initramfs with dracut."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/dracut/main.py:49
|
||||||
|
msgid "Failed to run dracut on the target"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/dracut/main.py:50 src/modules/mkinitfs/main.py:50
|
||||||
|
msgid "The exit code was {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/displaymanager/main.py:526
|
||||||
|
msgid "Cannot write KDM configuration file"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/displaymanager/main.py:527
|
||||||
|
msgid "KDM config file {!s} does not exist"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/displaymanager/main.py:588
|
||||||
|
msgid "Cannot write LXDM configuration file"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/displaymanager/main.py:589
|
||||||
|
msgid "LXDM config file {!s} does not exist"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/displaymanager/main.py:672
|
||||||
|
msgid "Cannot write LightDM configuration file"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/displaymanager/main.py:673
|
||||||
|
msgid "LightDM config file {!s} does not exist"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/displaymanager/main.py:747
|
||||||
|
msgid "Cannot configure LightDM"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/displaymanager/main.py:748
|
||||||
|
msgid "No LightDM greeter installed."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/displaymanager/main.py:779
|
||||||
|
msgid "Cannot write SLIM configuration file"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/displaymanager/main.py:780
|
||||||
|
msgid "SLIM config file {!s} does not exist"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/displaymanager/main.py:906
|
||||||
|
msgid "No display managers selected for the displaymanager module."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/displaymanager/main.py:907
|
||||||
|
msgid ""
|
||||||
|
"The displaymanagers list is empty or undefined in both globalstorage and "
|
||||||
|
"displaymanager.conf."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/displaymanager/main.py:989
|
||||||
|
msgid "Display manager configuration was incomplete"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-openrc/main.py:29
|
||||||
|
msgid "Configure OpenRC services"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-openrc/main.py:57
|
||||||
|
msgid "Cannot add service {name!s} to run-level {level!s}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-openrc/main.py:59
|
||||||
|
msgid "Cannot remove service {name!s} from run-level {level!s}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-openrc/main.py:61
|
||||||
|
msgid ""
|
||||||
|
"Unknown service-action <code>{arg!s}</code> for service {name!s} in run-"
|
||||||
|
"level {level!s}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-openrc/main.py:93
|
||||||
|
#: src/modules/services-systemd/main.py:59
|
||||||
|
msgid "Cannot modify service"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-openrc/main.py:94
|
||||||
|
msgid ""
|
||||||
|
"<code>rc-update {arg!s}</code> call in chroot returned error code {num!s}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-openrc/main.py:101
|
||||||
|
msgid "Target runlevel does not exist"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-openrc/main.py:102
|
||||||
|
msgid ""
|
||||||
|
"The path for runlevel {level!s} is <code>{path!s}</code>, which does not "
|
||||||
|
"exist."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-openrc/main.py:110
|
||||||
|
msgid "Target service does not exist"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-openrc/main.py:111
|
||||||
|
msgid ""
|
||||||
|
"The path for service {name!s} is <code>{path!s}</code>, which does not "
|
||||||
|
"exist."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/networkcfg/main.py:29
|
||||||
|
msgid "Saving network configuration."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/packages/main.py:50 src/modules/packages/main.py:59
|
||||||
|
#: src/modules/packages/main.py:69
|
||||||
|
msgid "Install packages."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/packages/main.py:57
|
||||||
|
#, python-format
|
||||||
|
msgid "Processing packages (%(count)d / %(total)d)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/packages/main.py:62
|
||||||
|
#, python-format
|
||||||
|
msgid "Installing one package."
|
||||||
|
msgid_plural "Installing %(num)d packages."
|
||||||
|
msgstr[0] ""
|
||||||
|
msgstr[1] ""
|
||||||
|
|
||||||
|
#: src/modules/packages/main.py:65
|
||||||
|
#, python-format
|
||||||
|
msgid "Removing one package."
|
||||||
|
msgid_plural "Removing %(num)d packages."
|
||||||
|
msgstr[0] ""
|
||||||
|
msgstr[1] ""
|
||||||
|
|
||||||
|
#: src/modules/packages/main.py:638 src/modules/packages/main.py:650
|
||||||
|
#: src/modules/packages/main.py:678
|
||||||
|
msgid "Package Manager error"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/packages/main.py:639
|
||||||
|
msgid ""
|
||||||
|
"The package manager could not prepare updates. The command <pre>{!s}</pre> "
|
||||||
|
"returned error code {!s}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/packages/main.py:651
|
||||||
|
msgid ""
|
||||||
|
"The package manager could not update the system. The command <pre>{!s}</pre>"
|
||||||
|
" returned error code {!s}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/packages/main.py:679
|
||||||
|
msgid ""
|
||||||
|
"The package manager could not make changes to the installed system. The "
|
||||||
|
"command <pre>{!s}</pre> returned error code {!s}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/plymouthcfg/main.py:27
|
||||||
|
msgid "Configure Plymouth theme"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/initcpiocfg/main.py:28
|
||||||
|
msgid "Configuring mkinitcpio."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/localecfg/main.py:30
|
||||||
|
msgid "Configuring locales."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/mount/main.py:30
|
||||||
|
msgid "Mounting partitions."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/rawfs/main.py:26
|
||||||
|
msgid "Installing data."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/dummypython/main.py:35
|
||||||
|
msgid "Dummy python job."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/dummypython/main.py:37 src/modules/dummypython/main.py:93
|
||||||
|
#: src/modules/dummypython/main.py:94
|
||||||
|
msgid "Dummy python step {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/hwclock/main.py:26
|
||||||
|
msgid "Setting hardware clock."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/umount/main.py:31
|
||||||
|
msgid "Unmount file systems."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/openrcdmcryptcfg/main.py:26
|
||||||
|
msgid "Configuring OpenRC dmcrypt service."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-systemd/main.py:26
|
||||||
|
msgid "Configure systemd services"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-systemd/main.py:60
|
||||||
|
msgid ""
|
||||||
|
"<code>systemctl {arg!s}</code> call in chroot returned error code {num!s}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-systemd/main.py:63
|
||||||
|
#: src/modules/services-systemd/main.py:69
|
||||||
|
msgid "Cannot enable systemd service <code>{name!s}</code>."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-systemd/main.py:65
|
||||||
|
msgid "Cannot enable systemd target <code>{name!s}</code>."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-systemd/main.py:67
|
||||||
|
msgid "Cannot enable systemd timer <code>{name!s}</code>."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-systemd/main.py:71
|
||||||
|
msgid "Cannot disable systemd target <code>{name!s}</code>."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-systemd/main.py:73
|
||||||
|
msgid "Cannot mask systemd unit <code>{name!s}</code>."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/services-systemd/main.py:75
|
||||||
|
msgid ""
|
||||||
|
"Unknown systemd commands <code>{command!s}</code> and "
|
||||||
|
"<code>{suffix!s}</code> for unit {name!s}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/mkinitfs/main.py:27
|
||||||
|
msgid "Creating initramfs with mkinitfs."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/mkinitfs/main.py:49
|
||||||
|
msgid "Failed to run mkinitfs on the target"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:34
|
||||||
|
msgid "Filling up filesystems."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:254
|
||||||
|
msgid "rsync failed with error code {}."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:299
|
||||||
|
msgid "Unpacking image {}/{}, file {}/{}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:314
|
||||||
|
msgid "Starting to unpack {}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:323 src/modules/unpackfs/main.py:465
|
||||||
|
msgid "Failed to unpack image \"{}\""
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:430
|
||||||
|
msgid "No mount point for root partition"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:431
|
||||||
|
msgid "globalstorage does not contain a \"rootMountPoint\" key, doing nothing"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:436
|
||||||
|
msgid "Bad mount point for root partition"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:437
|
||||||
|
msgid "rootMountPoint is \"{}\", which does not exist, doing nothing"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:453 src/modules/unpackfs/main.py:457
|
||||||
|
#: src/modules/unpackfs/main.py:463 src/modules/unpackfs/main.py:478
|
||||||
|
msgid "Bad unsquash configuration"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:454
|
||||||
|
msgid "The filesystem for \"{}\" ({}) is not supported by your current kernel"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:458
|
||||||
|
msgid "The source filesystem \"{}\" does not exist"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:464
|
||||||
|
msgid ""
|
||||||
|
"Failed to find unsquashfs, make sure you have the squashfs-tools package "
|
||||||
|
"installed."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/unpackfs/main.py:479
|
||||||
|
msgid "The destination \"{}\" in the target system is not a directory"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/modules/luksopenswaphookcfg/main.py:26
|
||||||
|
msgid "Configuring encrypted swap."
|
||||||
|
msgstr ""
|
@ -5,7 +5,7 @@
|
|||||||
#
|
#
|
||||||
# Translators:
|
# Translators:
|
||||||
# T. Tran <transifex@emiu.net>, 2020
|
# T. Tran <transifex@emiu.net>, 2020
|
||||||
# Th1nhhdk, 2021
|
# th1nhhdk <th1nhhdk@tutanota.com>, 2021
|
||||||
#
|
#
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -14,7 +14,7 @@ msgstr ""
|
|||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-11-02 15:45+0100\n"
|
"POT-Creation-Date: 2021-11-02 15:45+0100\n"
|
||||||
"PO-Revision-Date: 2017-08-09 10:34+0000\n"
|
"PO-Revision-Date: 2017-08-09 10:34+0000\n"
|
||||||
"Last-Translator: Th1nhhdk, 2021\n"
|
"Last-Translator: th1nhhdk <th1nhhdk@tutanota.com>, 2021\n"
|
||||||
"Language-Team: Vietnamese (https://www.transifex.com/calamares/teams/20061/vi/)\n"
|
"Language-Team: Vietnamese (https://www.transifex.com/calamares/teams/20061/vi/)\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
@ -86,18 +86,18 @@ it needs those keys.
|
|||||||
|
|
||||||
### Emergency Modules
|
### Emergency Modules
|
||||||
|
|
||||||
Only C++ modules and job modules may be emergency modules. If, during an
|
If, during an *exec* step in the sequence, a module fails, installation as
|
||||||
*exec* step in the sequence, a module fails, installation as a whole fails
|
a whole fails and the install is aborted. If there are emergency modules
|
||||||
and the install is aborted. If there are emergency modules in the **same**
|
in the **same** exec block, those will be executed before the installation
|
||||||
exec block, those will be executed before the installation is aborted.
|
is aborted. Non-emergency modules are not executed.
|
||||||
Non-emergency modules are not executed.
|
|
||||||
|
|
||||||
If an emergency-module fails while processing emergency-modules for
|
If an emergency-module fails while processing emergency-modules for
|
||||||
another failed module, that failure is ignored and emergency-module
|
another failed module, that failure is ignored and emergency-module
|
||||||
processing continues.
|
processing continues.
|
||||||
|
|
||||||
Use the EMERGENCY keyword in the CMake description of a C++ module
|
Use the EMERGENCY keyword in the CMake description of a C++ module
|
||||||
to generate a suitable `module.desc`.
|
to generate a suitable `module.desc`. For Python modules, manually add
|
||||||
|
`emergency: true` to `module.desc`.
|
||||||
|
|
||||||
A module that is marked as an emergency module in its module.desc
|
A module that is marked as an emergency module in its module.desc
|
||||||
must **also** set the *emergency* key to *true* in its configuration file
|
must **also** set the *emergency* key to *true* in its configuration file
|
||||||
|
22
src/modules/luksopenswaphookcfg/CMakeLists.txt
Normal file
22
src/modules/luksopenswaphookcfg/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# === This file is part of Calamares - <https://calamares.io> ===
|
||||||
|
#
|
||||||
|
# SPDX-FileCopyrightText: 2021 Adriaan de Groot <groot@kde.org>
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
#
|
||||||
|
|
||||||
|
# Because LUKS Open Swap Hook (Job) is such a mouthful, we'll
|
||||||
|
# use LOSH all over the place as a shorthand.
|
||||||
|
calamares_add_plugin( luksopenswaphookcfg
|
||||||
|
TYPE job
|
||||||
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
||||||
|
SOURCES
|
||||||
|
LOSHJob.cpp
|
||||||
|
SHARED_LIB
|
||||||
|
)
|
||||||
|
|
||||||
|
calamares_add_test(
|
||||||
|
luksopenswaphooktest
|
||||||
|
SOURCES
|
||||||
|
LOSHJob.cpp
|
||||||
|
Tests.cpp
|
||||||
|
)
|
66
src/modules/luksopenswaphookcfg/LOSHInfo.h
Normal file
66
src/modules/luksopenswaphookcfg/LOSHInfo.h
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
||||||
|
*
|
||||||
|
* SPDX-FileCopyrightText: 2021 Adriaan de Groot <groot@kde.org>
|
||||||
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#ifndef LUKSOPENSWAPHOOKCFG_LOSHINFO_H
|
||||||
|
#define LUKSOPENSWAPHOOKCFG_LOSHINFO_H
|
||||||
|
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
|
/** @brief Information needed to create a suitable config file
|
||||||
|
*
|
||||||
|
* The LUKS swap configuration has a handful of keys that need to
|
||||||
|
* be written to the config file. This struct holds those keys
|
||||||
|
* and can find the key values from Global Storage (where the
|
||||||
|
* *partition* module sets them).
|
||||||
|
*/
|
||||||
|
struct LOSHInfo
|
||||||
|
{
|
||||||
|
// Member names copied from Python code
|
||||||
|
QString swap_outer_uuid;
|
||||||
|
QString swap_mapper_name;
|
||||||
|
QString mountable_keyfile_device;
|
||||||
|
QString swap_device_path;
|
||||||
|
QString keyfile_device_mount_options;
|
||||||
|
|
||||||
|
bool isValid() const { return !swap_device_path.isEmpty(); }
|
||||||
|
|
||||||
|
/** @brief Helper method for doing key-value replacements
|
||||||
|
*
|
||||||
|
* Given a named @p key (e.g. "duck", or "swap_device"), returns the
|
||||||
|
* value set for that key. Invalid keys (e.g. "duck") return an empty string.
|
||||||
|
*/
|
||||||
|
QString replacementFor( const QString& key ) const
|
||||||
|
{
|
||||||
|
if ( key == QStringLiteral( "swap_device" ) )
|
||||||
|
{
|
||||||
|
return swap_device_path;
|
||||||
|
}
|
||||||
|
if ( key == QStringLiteral( "crypt_swap_name" ) )
|
||||||
|
{
|
||||||
|
return swap_mapper_name;
|
||||||
|
}
|
||||||
|
if ( key == QStringLiteral( "keyfile_device" ) )
|
||||||
|
{
|
||||||
|
return mountable_keyfile_device;
|
||||||
|
}
|
||||||
|
if ( key == QStringLiteral( "keyfile_filename" ) )
|
||||||
|
{
|
||||||
|
return QStringLiteral( "crypto_keyfile.bin" );
|
||||||
|
}
|
||||||
|
if ( key == QStringLiteral( "keyfile_device_mount_options" ) )
|
||||||
|
{
|
||||||
|
return keyfile_device_mount_options;
|
||||||
|
}
|
||||||
|
return QString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @brief Creates a struct from information already set in GS
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
static LOSHInfo fromGlobalStorage();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
181
src/modules/luksopenswaphookcfg/LOSHJob.cpp
Normal file
181
src/modules/luksopenswaphookcfg/LOSHJob.cpp
Normal file
@ -0,0 +1,181 @@
|
|||||||
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
||||||
|
*
|
||||||
|
* SPDX-FileCopyrightText: 2021 Adriaan de Groot <groot@kde.org>
|
||||||
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#include "LOSHJob.h"
|
||||||
|
|
||||||
|
#include "LOSHInfo.h"
|
||||||
|
|
||||||
|
#include "GlobalStorage.h"
|
||||||
|
#include "JobQueue.h"
|
||||||
|
#include "utils/CalamaresUtilsSystem.h"
|
||||||
|
#include "utils/Logger.h"
|
||||||
|
#include "utils/Permissions.h"
|
||||||
|
#include "utils/PluginFactory.h"
|
||||||
|
#include "utils/String.h"
|
||||||
|
#include "utils/Variant.h"
|
||||||
|
|
||||||
|
#include <QList>
|
||||||
|
#include <QObject>
|
||||||
|
#include <QRegularExpression>
|
||||||
|
#include <QVariantMap>
|
||||||
|
|
||||||
|
LOSHJob::LOSHJob( QObject* parent )
|
||||||
|
: Calamares::CppJob( parent )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
LOSHJob::~LOSHJob() {}
|
||||||
|
|
||||||
|
|
||||||
|
QString
|
||||||
|
LOSHJob::prettyName() const
|
||||||
|
{
|
||||||
|
return tr( "Configuring encrypted swap." );
|
||||||
|
}
|
||||||
|
|
||||||
|
STATICTEST QString
|
||||||
|
get_assignment_part( const QString& line )
|
||||||
|
{
|
||||||
|
static QRegularExpression re( "^[# \\t]*([A-Za-z_]+)[ \\t]*=" );
|
||||||
|
auto m = re.match( line );
|
||||||
|
if ( m.hasMatch() )
|
||||||
|
{
|
||||||
|
return m.captured( 1 );
|
||||||
|
}
|
||||||
|
return QString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Writes the config file at @p path
|
||||||
|
*
|
||||||
|
* NOTE: @p path is relative to the target system, not an absolute path.
|
||||||
|
*/
|
||||||
|
STATICTEST void
|
||||||
|
write_openswap_conf( const QString& path, QStringList& contents, const LOSHInfo& info )
|
||||||
|
{
|
||||||
|
if ( info.isValid() )
|
||||||
|
{
|
||||||
|
for ( auto& line : contents )
|
||||||
|
{
|
||||||
|
const QString key = get_assignment_part( line );
|
||||||
|
QString replacement = info.replacementFor( key );
|
||||||
|
if ( !replacement.isEmpty() )
|
||||||
|
{
|
||||||
|
line.clear();
|
||||||
|
line.append( QStringLiteral( "%1=%2" ).arg( key, replacement ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cDebug() << "Writing" << contents.length() << "line configuration to" << path;
|
||||||
|
// \n between each two lines, and a \n at the end
|
||||||
|
CalamaresUtils::System::instance()->createTargetFile(
|
||||||
|
path, contents.join( '\n' ).append( '\n' ).toUtf8(), CalamaresUtils::System::WriteMode::Overwrite );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cDebug() << "Will not write an invalid configuration to" << path;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Calamares::JobResult
|
||||||
|
LOSHJob::exec()
|
||||||
|
{
|
||||||
|
const auto* sys = CalamaresUtils::System::instance();
|
||||||
|
if ( !sys )
|
||||||
|
{
|
||||||
|
return Calamares::JobResult::internalError(
|
||||||
|
"LuksOpenSwapHook", tr( "No target system available." ), Calamares::JobResult::InvalidConfiguration );
|
||||||
|
}
|
||||||
|
|
||||||
|
Calamares::GlobalStorage* gs
|
||||||
|
= Calamares::JobQueue::instance() ? Calamares::JobQueue::instance()->globalStorage() : nullptr;
|
||||||
|
if ( !gs || gs->value( "rootMountPoint" ).toString().isEmpty() )
|
||||||
|
{
|
||||||
|
return Calamares::JobResult::internalError(
|
||||||
|
"LuksOpenSwapHook", tr( "No rootMountPoint is set." ), Calamares::JobResult::InvalidConfiguration );
|
||||||
|
}
|
||||||
|
if ( m_configFilePath.isEmpty() )
|
||||||
|
{
|
||||||
|
return Calamares::JobResult::internalError(
|
||||||
|
"LuksOpenSwapHook", tr( "No configFilePath is set." ), Calamares::JobResult::InvalidConfiguration );
|
||||||
|
}
|
||||||
|
|
||||||
|
QStringList contents = sys->readTargetFile( m_configFilePath );
|
||||||
|
if ( contents.isEmpty() )
|
||||||
|
{
|
||||||
|
contents << QStringLiteral( "# swap_device=" ) << QStringLiteral( "# crypt_swap_name=" )
|
||||||
|
<< QStringLiteral( "# keyfile_device=" ) << QStringLiteral( "# keyfile_filename=" )
|
||||||
|
<< QStringLiteral( "# keyfile_device_mount_options" );
|
||||||
|
}
|
||||||
|
|
||||||
|
write_openswap_conf( m_configFilePath, contents, LOSHInfo::fromGlobalStorage() );
|
||||||
|
return Calamares::JobResult::ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
LOSHJob::setConfigurationMap( const QVariantMap& configurationMap )
|
||||||
|
{
|
||||||
|
m_configFilePath = CalamaresUtils::getString(
|
||||||
|
configurationMap, QStringLiteral( "configFilePath" ), QStringLiteral( "/etc/openswap.conf" ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
STATICTEST void
|
||||||
|
globalStoragePartitionInfo( Calamares::GlobalStorage* gs, LOSHInfo& info )
|
||||||
|
{
|
||||||
|
if ( !gs )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
QVariantList l = gs->value( "partitions" ).toList();
|
||||||
|
if ( l.isEmpty() )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
for ( const auto& pv : l )
|
||||||
|
{
|
||||||
|
const QVariantMap partition = pv.toMap();
|
||||||
|
if ( !partition.isEmpty() )
|
||||||
|
{
|
||||||
|
QString mountPoint = partition.value( "mountPoint" ).toString();
|
||||||
|
QString fileSystem = partition.value( "fs" ).toString();
|
||||||
|
QString luksMapperName = partition.value( "luksMapperName" ).toString();
|
||||||
|
// if partition["fs"] == "linuxswap" and "luksMapperName" in partition:
|
||||||
|
if ( fileSystem == QStringLiteral( "linuxswap" ) && !luksMapperName.isEmpty() )
|
||||||
|
{
|
||||||
|
info.swap_outer_uuid = partition.value( "luksUuid" ).toString();
|
||||||
|
info.swap_mapper_name = luksMapperName;
|
||||||
|
}
|
||||||
|
else if ( mountPoint == QStringLiteral( "/" ) && !luksMapperName.isEmpty() )
|
||||||
|
{
|
||||||
|
|
||||||
|
info.mountable_keyfile_device = QStringLiteral( "/dev/mapper/" ) + luksMapperName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( !info.mountable_keyfile_device.isEmpty() && !info.swap_outer_uuid.isEmpty() )
|
||||||
|
{
|
||||||
|
info.swap_device_path = QStringLiteral( "/dev/disk/by-uuid/" ) + info.swap_outer_uuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString btrfsRootSubvolume = gs->value( "btrfsRootSubvolume" ).toString();
|
||||||
|
if ( !btrfsRootSubvolume.isEmpty() )
|
||||||
|
{
|
||||||
|
CalamaresUtils::removeLeading( btrfsRootSubvolume, '/' );
|
||||||
|
info.keyfile_device_mount_options
|
||||||
|
= QStringLiteral( "keyfile_device_mount_options=--options=subvol=" ) + btrfsRootSubvolume;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
LOSHInfo
|
||||||
|
LOSHInfo::fromGlobalStorage()
|
||||||
|
{
|
||||||
|
LOSHInfo i {};
|
||||||
|
globalStoragePartitionInfo(
|
||||||
|
Calamares::JobQueue::instance() ? Calamares::JobQueue::instance()->globalStorage() : nullptr, i );
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
|
||||||
|
CALAMARES_PLUGIN_FACTORY_DEFINITION( LOSHJobFactory, registerPlugin< LOSHJob >(); )
|
37
src/modules/luksopenswaphookcfg/LOSHJob.h
Normal file
37
src/modules/luksopenswaphookcfg/LOSHJob.h
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
||||||
|
*
|
||||||
|
* SPDX-FileCopyrightText: 2021 Adriaan de Groot <groot@kde.org>
|
||||||
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#ifndef LUKSOPENSWAPHOOKCFG_LOSHJOB_H
|
||||||
|
#define LUKSOPENSWAPHOOKCFG_LOSHJOB_H
|
||||||
|
|
||||||
|
#include "CppJob.h"
|
||||||
|
#include "DllMacro.h"
|
||||||
|
#include "utils/PluginFactory.h"
|
||||||
|
|
||||||
|
#include <QString>
|
||||||
|
#include <QVariantMap>
|
||||||
|
|
||||||
|
class PLUGINDLLEXPORT LOSHJob : public Calamares::CppJob
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit LOSHJob( QObject* parent = nullptr );
|
||||||
|
~LOSHJob() override;
|
||||||
|
|
||||||
|
QString prettyName() const override;
|
||||||
|
|
||||||
|
Calamares::JobResult exec() override;
|
||||||
|
|
||||||
|
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
QString m_configFilePath;
|
||||||
|
};
|
||||||
|
|
||||||
|
CALAMARES_PLUGIN_FACTORY_DECLARATION( LOSHJobFactory )
|
||||||
|
|
||||||
|
#endif
|
253
src/modules/luksopenswaphookcfg/Tests.cpp
Normal file
253
src/modules/luksopenswaphookcfg/Tests.cpp
Normal file
@ -0,0 +1,253 @@
|
|||||||
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
||||||
|
*
|
||||||
|
* SPDX-FileCopyrightText: 2021 Adriaan de Groot <groot@kde.org>
|
||||||
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "LOSHInfo.h"
|
||||||
|
#include "LOSHJob.h"
|
||||||
|
|
||||||
|
#include "GlobalStorage.h"
|
||||||
|
#include "JobQueue.h"
|
||||||
|
#include "utils/CalamaresUtilsSystem.h"
|
||||||
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
|
#include <QtTest/QtTest>
|
||||||
|
|
||||||
|
// LOSH = LUKS Open Swap Hook (Job)
|
||||||
|
|
||||||
|
// Implementation details
|
||||||
|
extern QString get_assignment_part( const QString& line );
|
||||||
|
extern void write_openswap_conf( const QString& path, QStringList& contents, const LOSHInfo& info );
|
||||||
|
|
||||||
|
class LOSHTests : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
LOSHTests();
|
||||||
|
~LOSHTests() override {}
|
||||||
|
|
||||||
|
private Q_SLOTS:
|
||||||
|
void initTestCase();
|
||||||
|
|
||||||
|
void testAssignmentExtraction_data();
|
||||||
|
void testAssignmentExtraction();
|
||||||
|
|
||||||
|
void testLOSHInfo();
|
||||||
|
void testConfigWriting();
|
||||||
|
void testJob();
|
||||||
|
};
|
||||||
|
|
||||||
|
LOSHTests::LOSHTests() {}
|
||||||
|
|
||||||
|
void
|
||||||
|
LOSHTests::initTestCase()
|
||||||
|
{
|
||||||
|
Logger::setupLogLevel( Logger::LOGDEBUG );
|
||||||
|
cDebug() << "LOSH test started.";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
LOSHTests::testAssignmentExtraction_data()
|
||||||
|
{
|
||||||
|
QTest::addColumn< QString >( "line" );
|
||||||
|
QTest::addColumn< QString >( "match" );
|
||||||
|
|
||||||
|
QTest::newRow( "empty" ) << QString() << QString();
|
||||||
|
QTest::newRow( "comment-only1" ) << QStringLiteral( "# " ) << QString();
|
||||||
|
QTest::newRow( "comment-only2" ) << QStringLiteral( "###" ) << QString();
|
||||||
|
QTest::newRow( "comment-only3" ) << QStringLiteral( "# # #" ) << QString();
|
||||||
|
|
||||||
|
QTest::newRow( "comment-text" ) << QStringLiteral( "# NOTE:" ) << QString();
|
||||||
|
QTest::newRow( "comment-story" ) << QStringLiteral( "# This is a shell comment" ) << QString();
|
||||||
|
// We look for assignments, but only for single-words
|
||||||
|
QTest::newRow( "comment-space-eq" ) << QStringLiteral( "# Check that a = b" ) << QString();
|
||||||
|
|
||||||
|
|
||||||
|
QTest::newRow( "assignment1" ) << QStringLiteral( "a=1" ) << QStringLiteral( "a" );
|
||||||
|
QTest::newRow( "assignment2" ) << QStringLiteral( "a = 1" ) << QStringLiteral( "a" );
|
||||||
|
QTest::newRow( "assignment3" ) << QStringLiteral( "# a=1" ) << QStringLiteral( "a" );
|
||||||
|
QTest::newRow( "assignment4" ) << QStringLiteral( "cows = 12" ) << QStringLiteral( "cows" );
|
||||||
|
QTest::newRow( "assignment5" ) << QStringLiteral( "# # cows=1" ) << QStringLiteral( "cows" );
|
||||||
|
QTest::newRow( "assignment6" ) << QStringLiteral( "# moose='cool' # not cows" ) << QStringLiteral( "moose" );
|
||||||
|
QTest::newRow( "assignment7" ) << QStringLiteral( " moose=cows=42" ) << QStringLiteral( "moose" );
|
||||||
|
QTest::newRow( "assignment8" ) << QStringLiteral( "#swap_device=/dev/something" )
|
||||||
|
<< QStringLiteral( "swap_device" );
|
||||||
|
QTest::newRow( "assignment9" ) << QStringLiteral( "# swap_device=/dev/something" )
|
||||||
|
<< QStringLiteral( "swap_device" );
|
||||||
|
QTest::newRow( "assignment10" ) << QStringLiteral( "swap_device=/dev/something" )
|
||||||
|
<< QStringLiteral( "swap_device" );
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
LOSHTests::testAssignmentExtraction()
|
||||||
|
{
|
||||||
|
QFETCH( QString, line );
|
||||||
|
QFETCH( QString, match );
|
||||||
|
|
||||||
|
QCOMPARE( get_assignment_part( line ), match );
|
||||||
|
}
|
||||||
|
|
||||||
|
static CalamaresUtils::System*
|
||||||
|
file_setup( const QTemporaryDir& tempRoot )
|
||||||
|
{
|
||||||
|
CalamaresUtils::System* ss = CalamaresUtils::System::instance();
|
||||||
|
if ( !ss )
|
||||||
|
{
|
||||||
|
ss = new CalamaresUtils::System( true );
|
||||||
|
}
|
||||||
|
|
||||||
|
Calamares::GlobalStorage* gs
|
||||||
|
= Calamares::JobQueue::instance() ? Calamares::JobQueue::instance()->globalStorage() : nullptr;
|
||||||
|
if ( !gs )
|
||||||
|
{
|
||||||
|
cDebug() << "Creating new JobQueue";
|
||||||
|
(void)new Calamares::JobQueue();
|
||||||
|
gs = Calamares::JobQueue::instance() ? Calamares::JobQueue::instance()->globalStorage() : nullptr;
|
||||||
|
}
|
||||||
|
if ( gs )
|
||||||
|
{
|
||||||
|
// Working with a rootMountPoint set
|
||||||
|
gs->insert( "rootMountPoint", tempRoot.path() );
|
||||||
|
}
|
||||||
|
return ss;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
make_valid_loshinfo( LOSHInfo& i )
|
||||||
|
{
|
||||||
|
i.swap_outer_uuid = QStringLiteral( "UUID-0000" );
|
||||||
|
i.swap_mapper_name = QStringLiteral( "/dev/mapper/0000" );
|
||||||
|
i.swap_device_path = QStringLiteral( "/dev/sda0" );
|
||||||
|
i.mountable_keyfile_device = QStringLiteral( "/dev/ada0p0s0" );
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
LOSHTests::testLOSHInfo()
|
||||||
|
{
|
||||||
|
LOSHInfo i {};
|
||||||
|
QVERIFY( !i.isValid() );
|
||||||
|
|
||||||
|
make_valid_loshinfo( i );
|
||||||
|
QVERIFY( i.isValid() );
|
||||||
|
QCOMPARE( i.replacementFor( QStringLiteral( "swap_device" ) ), QStringLiteral( "/dev/sda0" ) );
|
||||||
|
QCOMPARE( i.replacementFor( QStringLiteral( "duck" ) ), QString() );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
LOSHTests::testConfigWriting()
|
||||||
|
{
|
||||||
|
QTemporaryDir tempRoot( QDir::tempPath() + QStringLiteral( "/test-job-XXXXXX" ) );
|
||||||
|
QVERIFY( tempRoot.isValid() );
|
||||||
|
auto* ss = file_setup( tempRoot );
|
||||||
|
QVERIFY( ss );
|
||||||
|
QVERIFY( Calamares::JobQueue::instance()->globalStorage() );
|
||||||
|
QVERIFY( QFile::exists( tempRoot.path() ) );
|
||||||
|
QVERIFY( QFileInfo( tempRoot.path() ).isDir() );
|
||||||
|
|
||||||
|
const QString targetFilePath = QStringLiteral( "losh.conf" );
|
||||||
|
const QString filePath = tempRoot.filePath( targetFilePath );
|
||||||
|
QStringList contents { QStringLiteral( "# Calamares demo" ),
|
||||||
|
QStringLiteral( "# swap_device=a thing" ),
|
||||||
|
QStringLiteral( "# duck duck swap_device=another" ) };
|
||||||
|
|
||||||
|
// When the information is invalid, file contents are unchanged,
|
||||||
|
// and no file is written either.
|
||||||
|
LOSHInfo i {};
|
||||||
|
QVERIFY( !i.isValid() );
|
||||||
|
QVERIFY( !QFile::exists( filePath ) );
|
||||||
|
write_openswap_conf( targetFilePath, contents, i ); // Invalid i
|
||||||
|
QVERIFY( !QFile::exists( filePath ) );
|
||||||
|
QCOMPARE( contents.length(), 3 );
|
||||||
|
QCOMPARE( contents.at( 1 ).left( 4 ), QStringLiteral( "# s" ) );
|
||||||
|
|
||||||
|
// Can we write there at all?
|
||||||
|
QFile derp( filePath );
|
||||||
|
QVERIFY( derp.open( QIODevice::WriteOnly ) );
|
||||||
|
QVERIFY( derp.write( "xx", 2 ) );
|
||||||
|
derp.close();
|
||||||
|
QVERIFY( QFile::exists( filePath ) );
|
||||||
|
QVERIFY( QFile::remove( filePath ) );
|
||||||
|
|
||||||
|
// Once the information is valid, though, the file is written
|
||||||
|
make_valid_loshinfo( i );
|
||||||
|
QVERIFY( i.isValid() );
|
||||||
|
QVERIFY( !QFile::exists( filePath ) );
|
||||||
|
write_openswap_conf( targetFilePath, contents, i ); // Now it is valid
|
||||||
|
QVERIFY( QFile::exists( filePath ) );
|
||||||
|
QCOMPARE( contents.length(), 3 );
|
||||||
|
QCOMPARE( i.swap_device_path, QStringLiteral( "/dev/sda0" ) ); // expected key value
|
||||||
|
QCOMPARE( contents.at( 1 ), QStringLiteral( "swap_device=/dev/sda0" ) ); // expected line
|
||||||
|
|
||||||
|
// readLine() returns with newlines-added
|
||||||
|
QFile f( filePath );
|
||||||
|
QVERIFY( f.open( QIODevice::ReadOnly ) );
|
||||||
|
QCOMPARE( f.readLine(), QStringLiteral( "# Calamares demo\n" ) );
|
||||||
|
QCOMPARE( f.readLine(), QStringLiteral( "swap_device=/dev/sda0\n" ) );
|
||||||
|
QCOMPARE( f.readLine(), QStringLiteral( "# duck duck swap_device=another\n" ) );
|
||||||
|
QCOMPARE( f.readLine(), QString() );
|
||||||
|
QVERIFY( f.atEnd() );
|
||||||
|
|
||||||
|
// Note how the contents is updated on every write_openswap_conf()
|
||||||
|
i.swap_device_path = QStringLiteral( "/dev/zram/0.zram" );
|
||||||
|
write_openswap_conf( targetFilePath, contents, i ); // Still valid
|
||||||
|
QCOMPARE( contents.length(), 3 );
|
||||||
|
QCOMPARE( i.swap_device_path, QStringLiteral( "/dev/zram/0.zram" ) ); // expected key value
|
||||||
|
QCOMPARE( contents.at( 1 ), QStringLiteral( "swap_device=/dev/zram/0.zram" ) ); // expected line
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
LOSHTests::testJob()
|
||||||
|
{
|
||||||
|
QTemporaryDir tempRoot( QDir::tempPath() + QStringLiteral( "/test-job-XXXXXX" ) );
|
||||||
|
QVERIFY( tempRoot.isValid() );
|
||||||
|
auto* ss = file_setup( tempRoot );
|
||||||
|
QVERIFY( ss );
|
||||||
|
Calamares::GlobalStorage* gs
|
||||||
|
= Calamares::JobQueue::instance() ? Calamares::JobQueue::instance()->globalStorage() : nullptr;
|
||||||
|
QVERIFY( gs );
|
||||||
|
|
||||||
|
{
|
||||||
|
QDir d( tempRoot.path() );
|
||||||
|
d.mkdir( "etc" );
|
||||||
|
}
|
||||||
|
|
||||||
|
QVERIFY( !LOSHInfo::fromGlobalStorage().isValid() );
|
||||||
|
QVariantList outerPartition;
|
||||||
|
QVariantMap innerPartition;
|
||||||
|
innerPartition.insert( "mountPoint", "/" );
|
||||||
|
innerPartition.insert( "fs", "ext4" );
|
||||||
|
innerPartition.insert( "luksMapperName", "root" );
|
||||||
|
innerPartition.insert( "luksUUID", "0000" );
|
||||||
|
outerPartition.append( innerPartition );
|
||||||
|
innerPartition.remove( "mountPoint" );
|
||||||
|
innerPartition.insert( "fs", "linuxswap" );
|
||||||
|
innerPartition.insert( "luksMapperName", "swap" );
|
||||||
|
innerPartition.insert( "luksUuid", "0001" );
|
||||||
|
outerPartition.append( innerPartition );
|
||||||
|
gs->insert( "partitions", outerPartition );
|
||||||
|
QVERIFY( LOSHInfo::fromGlobalStorage().isValid() );
|
||||||
|
|
||||||
|
LOSHJob j;
|
||||||
|
j.setConfigurationMap( QVariantMap() );
|
||||||
|
auto jobresult = j.exec();
|
||||||
|
QVERIFY( jobresult );
|
||||||
|
|
||||||
|
{
|
||||||
|
QFile f( tempRoot.filePath( "etc/openswap.conf" ) );
|
||||||
|
QVERIFY( f.exists() );
|
||||||
|
QVERIFY( f.open( QIODevice::ReadOnly ) );
|
||||||
|
cDebug() << f.readAll();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QTEST_GUILESS_MAIN( LOSHTests )
|
||||||
|
|
||||||
|
#include "utils/moc-warnings.h"
|
||||||
|
|
||||||
|
#include "Tests.moc"
|
@ -1,100 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
#
|
|
||||||
# === This file is part of Calamares - <https://calamares.io> ===
|
|
||||||
#
|
|
||||||
# SPDX-FileCopyrightText: 2016 Teo Mrnjavac <teo@kde.org>
|
|
||||||
# SPDX-FileCopyrightText: 2017 Alf Gaida <agaida@siduction.org>
|
|
||||||
# SPDX-FileCopyrightText: 2019 Adriaan de Groot <groot@kde.org>
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
#
|
|
||||||
# Calamares is Free Software: see the License-Identifier above.
|
|
||||||
#
|
|
||||||
|
|
||||||
import libcalamares
|
|
||||||
import os.path
|
|
||||||
|
|
||||||
|
|
||||||
import gettext
|
|
||||||
_ = gettext.translation("calamares-python",
|
|
||||||
localedir=libcalamares.utils.gettext_path(),
|
|
||||||
languages=libcalamares.utils.gettext_languages(),
|
|
||||||
fallback=True).gettext
|
|
||||||
|
|
||||||
|
|
||||||
def pretty_name():
|
|
||||||
return _("Configuring encrypted swap.")
|
|
||||||
|
|
||||||
|
|
||||||
def write_openswap_conf(partitions, root_mount_point, openswap_conf_path):
|
|
||||||
swap_outer_uuid = ""
|
|
||||||
swap_mapper_name = ""
|
|
||||||
mountable_keyfile_device = ""
|
|
||||||
|
|
||||||
for partition in partitions:
|
|
||||||
if partition["fs"] == "linuxswap" and "luksMapperName" in partition:
|
|
||||||
swap_outer_uuid = partition["luksUuid"]
|
|
||||||
swap_mapper_name = partition["luksMapperName"]
|
|
||||||
|
|
||||||
elif partition["mountPoint"] == "/" and "luksMapperName" in partition:
|
|
||||||
mountable_keyfile_device = (
|
|
||||||
"/dev/mapper/{!s}".format(partition["luksMapperName"])
|
|
||||||
)
|
|
||||||
|
|
||||||
if not mountable_keyfile_device or not swap_outer_uuid:
|
|
||||||
return None
|
|
||||||
|
|
||||||
swap_device_path = "/dev/disk/by-uuid/{!s}".format(swap_outer_uuid)
|
|
||||||
|
|
||||||
lines = []
|
|
||||||
with open(os.path.join(root_mount_point,
|
|
||||||
openswap_conf_path), 'r') as openswap_file:
|
|
||||||
lines = [x.strip() for x in openswap_file.readlines()]
|
|
||||||
|
|
||||||
for i in range(len(lines)):
|
|
||||||
if lines[i].startswith("swap_device"):
|
|
||||||
lines[i] = "swap_device={!s}".format(swap_device_path)
|
|
||||||
|
|
||||||
elif lines[i].startswith("crypt_swap_name"):
|
|
||||||
lines[i] = "crypt_swap_name={!s}".format(swap_mapper_name)
|
|
||||||
|
|
||||||
elif lines[i].startswith("keyfile_device"):
|
|
||||||
lines[i] = "keyfile_device={!s}".format(mountable_keyfile_device)
|
|
||||||
|
|
||||||
elif lines[i].startswith("keyfile_filename"):
|
|
||||||
lines[i] = "keyfile_filename=crypto_keyfile.bin"
|
|
||||||
|
|
||||||
elif lines[i].startswith("#keyfile_device_mount_options"):
|
|
||||||
if libcalamares.globalstorage.contains("btrfsRootSubvolume"):
|
|
||||||
btrfs_root_subvolume = libcalamares.globalstorage.value("btrfsRootSubvolume")
|
|
||||||
lines[i] = "keyfile_device_mount_options=--options=subvol=" + btrfs_root_subvolume.lstrip("/")
|
|
||||||
|
|
||||||
with open(os.path.join(root_mount_point,
|
|
||||||
openswap_conf_path), 'w') as openswap_file:
|
|
||||||
openswap_file.write("\n".join(lines) + "\n")
|
|
||||||
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
def run():
|
|
||||||
"""
|
|
||||||
This module sets up the openswap hook for a resumable encrypted swap.
|
|
||||||
:return:
|
|
||||||
"""
|
|
||||||
|
|
||||||
root_mount_point = libcalamares.globalstorage.value("rootMountPoint")
|
|
||||||
openswap_conf_path = libcalamares.job.configuration["configFilePath"]
|
|
||||||
partitions = libcalamares.globalstorage.value("partitions")
|
|
||||||
|
|
||||||
if not partitions:
|
|
||||||
libcalamares.utils.warning("partitions is empty, {!s}".format(partitions))
|
|
||||||
return (_("Configuration Error"),
|
|
||||||
_("No partitions are defined for <pre>{!s}</pre> to use.").format("luksopenswaphookcfg"))
|
|
||||||
if not root_mount_point:
|
|
||||||
libcalamares.utils.warning("rootMountPoint is empty, {!s}".format(root_mount_point))
|
|
||||||
return (_("Configuration Error"),
|
|
||||||
_("No root mount point is given for <pre>{!s}</pre> to use.").format("luksopenswaphookcfg"))
|
|
||||||
|
|
||||||
openswap_conf_path = openswap_conf_path.lstrip('/')
|
|
||||||
|
|
||||||
return write_openswap_conf(partitions, root_mount_point, openswap_conf_path)
|
|
@ -1,7 +0,0 @@
|
|||||||
# SPDX-FileCopyrightText: no
|
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
|
||||||
---
|
|
||||||
type: "job"
|
|
||||||
name: "luksopenswaphookcfg"
|
|
||||||
interface: "python"
|
|
||||||
script: "main.py"
|
|
@ -11,6 +11,7 @@
|
|||||||
#include "DeviceList.h"
|
#include "DeviceList.h"
|
||||||
|
|
||||||
#include "partition/PartitionIterator.h"
|
#include "partition/PartitionIterator.h"
|
||||||
|
#include "utils/CalamaresUtilsSystem.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
#include <kpmcore/backend/corebackend.h>
|
#include <kpmcore/backend/corebackend.h>
|
||||||
@ -40,16 +41,30 @@ hasRootPartition( Device* device )
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @brief Check if @p path holds an iso9660 filesystem
|
||||||
|
*
|
||||||
|
* The @p path should point to a device; blkid is used to check the FS type.
|
||||||
|
*/
|
||||||
static bool
|
static bool
|
||||||
blkIdCheckIso9660( const QString& path )
|
blkIdCheckIso9660( const QString& path )
|
||||||
{
|
{
|
||||||
QProcess blkid;
|
// If blkid fails, there's no output, but we don't care
|
||||||
blkid.start( "blkid", { path } );
|
auto r = CalamaresUtils::System::runCommand( { "blkid", path }, std::chrono::seconds( 30 ) );
|
||||||
blkid.waitForFinished();
|
return r.getOutput().contains( "iso9660" );
|
||||||
QString output = QString::fromLocal8Bit( blkid.readAllStandardOutput() );
|
|
||||||
return output.contains( "iso9660" );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// @brief Convenience to check if @p partition holds an iso9660 filesystem
|
||||||
|
static bool
|
||||||
|
blkIdCheckIso9660P( const Partition* partition )
|
||||||
|
{
|
||||||
|
return blkIdCheckIso9660( partition->partitionPath() );
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @brief Check if the @p device is an iso9660 device
|
||||||
|
*
|
||||||
|
* An iso9660 device is **probably** a CD-ROM. If the device holds an
|
||||||
|
* iso9660 FS, or any of its partitions do, then we call it an iso9660 device.
|
||||||
|
*/
|
||||||
static bool
|
static bool
|
||||||
isIso9660( const Device* device )
|
isIso9660( const Device* device )
|
||||||
{
|
{
|
||||||
@ -65,13 +80,8 @@ isIso9660( const Device* device )
|
|||||||
|
|
||||||
if ( device->partitionTable() && !device->partitionTable()->children().isEmpty() )
|
if ( device->partitionTable() && !device->partitionTable()->children().isEmpty() )
|
||||||
{
|
{
|
||||||
for ( const Partition* partition : device->partitionTable()->children() )
|
const auto& p = device->partitionTable()->children();
|
||||||
{
|
return std::any_of( p.cbegin(), p.cend(), blkIdCheckIso9660P );
|
||||||
if ( blkIdCheckIso9660( partition->partitionPath() ) )
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
|
|
||||||
#include "partition/PartitionIterator.h"
|
#include "partition/PartitionIterator.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
#include "utils/String.h"
|
||||||
|
|
||||||
// KPMcore
|
|
||||||
#include <kpmcore/backend/corebackendmanager.h>
|
#include <kpmcore/backend/corebackendmanager.h>
|
||||||
#include <kpmcore/core/device.h>
|
#include <kpmcore/core/device.h>
|
||||||
#include <kpmcore/core/partition.h>
|
#include <kpmcore/core/partition.h>
|
||||||
@ -127,4 +127,23 @@ clonePartition( Device* device, Partition* partition )
|
|||||||
partition->activeFlags() );
|
partition->activeFlags() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Calamares::JobResult
|
||||||
|
execute( Operation& operation, const QString& failureMessage )
|
||||||
|
{
|
||||||
|
operation.setStatus( Operation::StatusRunning );
|
||||||
|
|
||||||
|
Report report( nullptr );
|
||||||
|
if ( operation.execute( report ) )
|
||||||
|
{
|
||||||
|
return Calamares::JobResult::ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove the === lines from the report by trimming them to empty
|
||||||
|
QStringList l = report.toText().split( '\n' );
|
||||||
|
std::for_each( l.begin(), l.end(), []( QString& s ) { CalamaresUtils::removeLeading( s, '=' ); } );
|
||||||
|
|
||||||
|
return Calamares::JobResult::error( failureMessage, l.join( '\n' ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace KPMHelpers
|
} // namespace KPMHelpers
|
||||||
|
@ -11,11 +11,13 @@
|
|||||||
#ifndef KPMHELPERS_H
|
#ifndef KPMHELPERS_H
|
||||||
#define KPMHELPERS_H
|
#define KPMHELPERS_H
|
||||||
|
|
||||||
// KPMcore
|
#include "Job.h"
|
||||||
|
|
||||||
#include <kpmcore/core/partitiontable.h>
|
#include <kpmcore/core/partitiontable.h>
|
||||||
#include <kpmcore/fs/filesystem.h>
|
#include <kpmcore/fs/filesystem.h>
|
||||||
|
#include <kpmcore/ops/operation.h>
|
||||||
|
#include <kpmcore/util/report.h>
|
||||||
|
|
||||||
// Qt
|
|
||||||
#include <QList>
|
#include <QList>
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
@ -72,6 +74,24 @@ Partition* createNewEncryptedPartition( PartitionNode* parent,
|
|||||||
|
|
||||||
Partition* clonePartition( Device* device, Partition* partition );
|
Partition* clonePartition( Device* device, Partition* partition );
|
||||||
|
|
||||||
|
/** @brief Return a result for an @p operation
|
||||||
|
*
|
||||||
|
* Executes the operation, and if successful, returns a success result.
|
||||||
|
* Otherwise returns an error using @p failureMessage as the primary part
|
||||||
|
* of the error, and details obtained from the operation.
|
||||||
|
*/
|
||||||
|
Calamares::JobResult execute( Operation& operation, const QString& failureMessage );
|
||||||
|
/** @brief Return a result for an @p operation
|
||||||
|
*
|
||||||
|
* It's acceptable to use an rvalue: the operation-running is the effect
|
||||||
|
* you're interested in, rather than keeping the temporary around.
|
||||||
|
*/
|
||||||
|
static inline Calamares::JobResult
|
||||||
|
execute( Operation&& operation, const QString& failureMessage )
|
||||||
|
{
|
||||||
|
return execute( operation, failureMessage );
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace KPMHelpers
|
} // namespace KPMHelpers
|
||||||
|
|
||||||
#endif /* KPMHELPERS_H */
|
#endif /* KPMHELPERS_H */
|
||||||
|
@ -11,7 +11,9 @@
|
|||||||
|
|
||||||
#include "CreatePartitionJob.h"
|
#include "CreatePartitionJob.h"
|
||||||
|
|
||||||
|
#include "core/KPMHelpers.h"
|
||||||
#include "core/PartitionInfo.h"
|
#include "core/PartitionInfo.h"
|
||||||
|
|
||||||
#include "partition/FileSystem.h"
|
#include "partition/FileSystem.h"
|
||||||
#include "partition/PartitionQuery.h"
|
#include "partition/PartitionQuery.h"
|
||||||
#include "utils/CalamaresUtilsSystem.h"
|
#include "utils/CalamaresUtilsSystem.h"
|
||||||
@ -273,17 +275,9 @@ CreatePartitionJob::exec()
|
|||||||
return createZfs( m_partition, m_device );
|
return createZfs( m_partition, m_device );
|
||||||
}
|
}
|
||||||
|
|
||||||
Report report( nullptr );
|
return KPMHelpers::execute(
|
||||||
NewOperation op( *m_device, m_partition );
|
NewOperation( *m_device, m_partition ),
|
||||||
op.setStatus( Operation::StatusRunning );
|
tr( "The installer failed to create partition on disk '%1'." ).arg( m_device->name() ) );
|
||||||
|
|
||||||
QString message = tr( "The installer failed to create partition on disk '%1'." ).arg( m_device->name() );
|
|
||||||
if ( op.execute( report ) )
|
|
||||||
{
|
|
||||||
return Calamares::JobResult::ok();
|
|
||||||
}
|
|
||||||
|
|
||||||
return Calamares::JobResult::error( message, report.toText() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -12,9 +12,11 @@
|
|||||||
#include "CreatePartitionTableJob.h"
|
#include "CreatePartitionTableJob.h"
|
||||||
|
|
||||||
#include "partition/PartitionIterator.h"
|
#include "partition/PartitionIterator.h"
|
||||||
|
#include "utils/CalamaresUtilsSystem.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
// KPMcore
|
#include "core/KPMHelpers.h"
|
||||||
|
|
||||||
#include <kpmcore/core/device.h>
|
#include <kpmcore/core/device.h>
|
||||||
#include <kpmcore/core/partition.h>
|
#include <kpmcore/core/partition.h>
|
||||||
#include <kpmcore/core/partitiontable.h>
|
#include <kpmcore/core/partitiontable.h>
|
||||||
@ -63,8 +65,6 @@ CreatePartitionTableJob::prettyStatusMessage() const
|
|||||||
Calamares::JobResult
|
Calamares::JobResult
|
||||||
CreatePartitionTableJob::exec()
|
CreatePartitionTableJob::exec()
|
||||||
{
|
{
|
||||||
Report report( nullptr );
|
|
||||||
QString message = tr( "The installer failed to create a partition table on %1." ).arg( m_device->name() );
|
|
||||||
|
|
||||||
PartitionTable* table = m_device->partitionTable();
|
PartitionTable* table = m_device->partitionTable();
|
||||||
|
|
||||||
@ -76,30 +76,16 @@ CreatePartitionTableJob::exec()
|
|||||||
cDebug() << Logger::SubEntry << ( ( *it ) ? ( *it )->deviceNode() : QString( "<null device>" ) );
|
cDebug() << Logger::SubEntry << ( ( *it ) ? ( *it )->deviceNode() : QString( "<null device>" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
QProcess lsblk;
|
auto lsblkResult = CalamaresUtils::System::runCommand( { "lsblk" }, std::chrono::seconds( 30 ) );
|
||||||
lsblk.setProgram( "lsblk" );
|
cDebug() << Logger::SubEntry << "lsblk output:\n" << Logger::NoQuote << lsblkResult.getOutput();
|
||||||
lsblk.setProcessChannelMode( QProcess::MergedChannels );
|
|
||||||
lsblk.start();
|
|
||||||
lsblk.waitForFinished();
|
|
||||||
cDebug() << Logger::SubEntry << "lsblk output:\n" << Logger::NoQuote << lsblk.readAllStandardOutput();
|
|
||||||
|
|
||||||
QProcess mount;
|
auto mountResult = CalamaresUtils::System::runCommand( { "mount" }, std::chrono::seconds( 30 ) );
|
||||||
mount.setProgram( "mount" ); // Debug output only, not mounting something
|
cDebug() << Logger::SubEntry << "mount output:\n" << Logger::NoQuote << mountResult.getOutput();
|
||||||
mount.setProcessChannelMode( QProcess::MergedChannels );
|
|
||||||
mount.start();
|
|
||||||
mount.waitForFinished();
|
|
||||||
cDebug() << Logger::SubEntry << "mount output:\n" << Logger::NoQuote << mount.readAllStandardOutput();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CreatePartitionTableOperation op( *m_device, table );
|
return KPMHelpers::execute(
|
||||||
op.setStatus( Operation::StatusRunning );
|
CreatePartitionTableOperation( *m_device, table ),
|
||||||
|
tr( "The installer failed to create a partition table on %1." ).arg( m_device->name() ) );
|
||||||
if ( op.execute( report ) )
|
|
||||||
{
|
|
||||||
return Calamares::JobResult::ok();
|
|
||||||
}
|
|
||||||
|
|
||||||
return Calamares::JobResult::error( message, report.toText() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
|
|
||||||
#include "CreateVolumeGroupJob.h"
|
#include "CreateVolumeGroupJob.h"
|
||||||
|
|
||||||
// KPMcore
|
#include "core/KPMHelpers.h"
|
||||||
|
|
||||||
#include <kpmcore/core/lvmdevice.h>
|
#include <kpmcore/core/lvmdevice.h>
|
||||||
#include <kpmcore/core/partition.h>
|
#include <kpmcore/core/partition.h>
|
||||||
#include <kpmcore/ops/createvolumegroupoperation.h>
|
#include <kpmcore/ops/createvolumegroupoperation.h>
|
||||||
@ -46,19 +47,8 @@ CreateVolumeGroupJob::prettyStatusMessage() const
|
|||||||
Calamares::JobResult
|
Calamares::JobResult
|
||||||
CreateVolumeGroupJob::exec()
|
CreateVolumeGroupJob::exec()
|
||||||
{
|
{
|
||||||
Report report( nullptr );
|
return KPMHelpers::execute( CreateVolumeGroupOperation( m_vgName, m_pvList, m_peSize ),
|
||||||
|
tr( "The installer failed to create a volume group named '%1'." ).arg( m_vgName ) );
|
||||||
CreateVolumeGroupOperation op( m_vgName, m_pvList, m_peSize );
|
|
||||||
|
|
||||||
op.setStatus( Operation::StatusRunning );
|
|
||||||
|
|
||||||
QString message = tr( "The installer failed to create a volume group named '%1'." ).arg( m_vgName );
|
|
||||||
if ( op.execute( report ) )
|
|
||||||
{
|
|
||||||
return Calamares::JobResult::ok();
|
|
||||||
}
|
|
||||||
|
|
||||||
return Calamares::JobResult::error( message, report.toText() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
#include "DeactivateVolumeGroupJob.h"
|
#include "DeactivateVolumeGroupJob.h"
|
||||||
|
|
||||||
|
#include "core/KPMHelpers.h"
|
||||||
|
|
||||||
#include <kpmcore/core/lvmdevice.h>
|
#include <kpmcore/core/lvmdevice.h>
|
||||||
#include <kpmcore/ops/deactivatevolumegroupoperation.h>
|
#include <kpmcore/ops/deactivatevolumegroupoperation.h>
|
||||||
#include <kpmcore/util/report.h>
|
#include <kpmcore/util/report.h>
|
||||||
@ -39,18 +41,12 @@ DeactivateVolumeGroupJob::prettyStatusMessage() const
|
|||||||
Calamares::JobResult
|
Calamares::JobResult
|
||||||
DeactivateVolumeGroupJob::exec()
|
DeactivateVolumeGroupJob::exec()
|
||||||
{
|
{
|
||||||
Report report( nullptr );
|
|
||||||
|
|
||||||
DeactivateVolumeGroupOperation op( *m_device );
|
DeactivateVolumeGroupOperation op( *m_device );
|
||||||
|
auto r = KPMHelpers::execute(
|
||||||
op.setStatus( Operation::OperationStatus::StatusRunning );
|
op, tr( "The installer failed to deactivate a volume group named %1." ).arg( m_device->name() ) );
|
||||||
|
if ( r )
|
||||||
QString message = tr( "The installer failed to deactivate a volume group named %1." ).arg( m_device->name() );
|
|
||||||
if ( op.execute( report ) )
|
|
||||||
{
|
{
|
||||||
op.preview();
|
op.preview();
|
||||||
return Calamares::JobResult::ok();
|
|
||||||
}
|
}
|
||||||
|
return r;
|
||||||
return Calamares::JobResult::error( message, report.toText() );
|
|
||||||
}
|
}
|
||||||
|
@ -10,9 +10,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "DeletePartitionJob.h"
|
#include "DeletePartitionJob.h"
|
||||||
|
|
||||||
|
#include "core/KPMHelpers.h"
|
||||||
|
|
||||||
#include "utils/CalamaresUtilsSystem.h"
|
#include "utils/CalamaresUtilsSystem.h"
|
||||||
|
|
||||||
// KPMcore
|
|
||||||
#include <kpmcore/core/device.h>
|
#include <kpmcore/core/device.h>
|
||||||
#include <kpmcore/core/partition.h>
|
#include <kpmcore/core/partition.h>
|
||||||
#include <kpmcore/core/partitiontable.h>
|
#include <kpmcore/core/partitiontable.h>
|
||||||
@ -45,7 +47,7 @@ removePartition( Partition* partition )
|
|||||||
auto r = CalamaresUtils::System::instance()->runCommand(
|
auto r = CalamaresUtils::System::instance()->runCommand(
|
||||||
{ "sfdisk", "--delete", "--force", partition->devicePath(), QString::number( partition->number() ) },
|
{ "sfdisk", "--delete", "--force", partition->devicePath(), QString::number( partition->number() ) },
|
||||||
std::chrono::seconds( 5 ) );
|
std::chrono::seconds( 5 ) );
|
||||||
if ( r.getExitCode() !=0 || r.getOutput().contains("failed") )
|
if ( r.getExitCode() != 0 || r.getOutput().contains( "failed" ) )
|
||||||
{
|
{
|
||||||
return Calamares::JobResult::error(
|
return Calamares::JobResult::error(
|
||||||
QCoreApplication::translate( DeletePartitionJob::staticMetaObject.className(), "Deletion Failed" ),
|
QCoreApplication::translate( DeletePartitionJob::staticMetaObject.className(), "Deletion Failed" ),
|
||||||
@ -96,17 +98,8 @@ DeletePartitionJob::exec()
|
|||||||
return removePartition( m_partition );
|
return removePartition( m_partition );
|
||||||
}
|
}
|
||||||
|
|
||||||
Report report( nullptr );
|
return KPMHelpers::execute( DeleteOperation( *m_device, m_partition ),
|
||||||
DeleteOperation op( *m_device, m_partition );
|
tr( "The installer failed to delete partition %1." ).arg( m_partition->devicePath() ) );
|
||||||
op.setStatus( Operation::StatusRunning );
|
|
||||||
|
|
||||||
QString message = tr( "The installer failed to delete partition %1." ).arg( m_partition->devicePath() );
|
|
||||||
if ( op.execute( report ) )
|
|
||||||
{
|
|
||||||
return Calamares::JobResult::ok();
|
|
||||||
}
|
|
||||||
|
|
||||||
return Calamares::JobResult::error( message, report.toText() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
#include "FormatPartitionJob.h"
|
#include "FormatPartitionJob.h"
|
||||||
|
|
||||||
|
#include "core/KPMHelpers.h"
|
||||||
|
|
||||||
#include "partition/FileSystem.h"
|
#include "partition/FileSystem.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
@ -65,17 +67,7 @@ FormatPartitionJob::prettyStatusMessage() const
|
|||||||
Calamares::JobResult
|
Calamares::JobResult
|
||||||
FormatPartitionJob::exec()
|
FormatPartitionJob::exec()
|
||||||
{
|
{
|
||||||
Report report( nullptr ); // Root of the report tree, no parent
|
return KPMHelpers::execute( CreateFileSystemOperation( *m_device, *m_partition, m_partition->fileSystem().type() ),
|
||||||
CreateFileSystemOperation op( *m_device, *m_partition, m_partition->fileSystem().type() );
|
tr( "The installer failed to format partition %1 on disk '%2'." )
|
||||||
op.setStatus( Operation::StatusRunning );
|
.arg( m_partition->partitionPath(), m_device->name() ) );
|
||||||
|
|
||||||
QString message = tr( "The installer failed to format partition %1 on disk '%2'." )
|
|
||||||
.arg( m_partition->partitionPath(), m_device->name() );
|
|
||||||
|
|
||||||
if ( op.execute( report ) )
|
|
||||||
{
|
|
||||||
return Calamares::JobResult::ok();
|
|
||||||
}
|
|
||||||
|
|
||||||
return Calamares::JobResult::error( message, report.toText() );
|
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
#include "RemoveVolumeGroupJob.h"
|
#include "RemoveVolumeGroupJob.h"
|
||||||
|
|
||||||
|
#include "core/KPMHelpers.h"
|
||||||
|
|
||||||
#include <kpmcore/core/lvmdevice.h>
|
#include <kpmcore/core/lvmdevice.h>
|
||||||
#include <kpmcore/ops/removevolumegroupoperation.h>
|
#include <kpmcore/ops/removevolumegroupoperation.h>
|
||||||
#include <kpmcore/util/report.h>
|
#include <kpmcore/util/report.h>
|
||||||
@ -39,17 +41,7 @@ RemoveVolumeGroupJob::prettyStatusMessage() const
|
|||||||
Calamares::JobResult
|
Calamares::JobResult
|
||||||
RemoveVolumeGroupJob::exec()
|
RemoveVolumeGroupJob::exec()
|
||||||
{
|
{
|
||||||
Report report( nullptr );
|
return KPMHelpers::execute(
|
||||||
|
RemoveVolumeGroupOperation( *m_device ),
|
||||||
RemoveVolumeGroupOperation op( *m_device );
|
tr( "The installer failed to remove a volume group named '%1'." ).arg( m_device->name() ) );
|
||||||
|
|
||||||
op.setStatus( Operation::OperationStatus::StatusRunning );
|
|
||||||
|
|
||||||
QString message = tr( "The installer failed to remove a volume group named '%1'." ).arg( m_device->name() );
|
|
||||||
if ( op.execute( report ) )
|
|
||||||
{
|
|
||||||
return Calamares::JobResult::ok();
|
|
||||||
}
|
|
||||||
|
|
||||||
return Calamares::JobResult::error( message, report.toText() );
|
|
||||||
}
|
}
|
||||||
|
@ -11,9 +11,10 @@
|
|||||||
|
|
||||||
#include "ResizePartitionJob.h"
|
#include "ResizePartitionJob.h"
|
||||||
|
|
||||||
|
#include "core/KPMHelpers.h"
|
||||||
|
|
||||||
#include "utils/Units.h"
|
#include "utils/Units.h"
|
||||||
|
|
||||||
// KPMcore
|
|
||||||
#include <kpmcore/core/device.h>
|
#include <kpmcore/core/device.h>
|
||||||
#include <kpmcore/ops/resizeoperation.h>
|
#include <kpmcore/ops/resizeoperation.h>
|
||||||
#include <kpmcore/util/report.h>
|
#include <kpmcore/util/report.h>
|
||||||
@ -66,23 +67,16 @@ ResizePartitionJob::prettyStatusMessage() const
|
|||||||
Calamares::JobResult
|
Calamares::JobResult
|
||||||
ResizePartitionJob::exec()
|
ResizePartitionJob::exec()
|
||||||
{
|
{
|
||||||
Report report( nullptr );
|
|
||||||
// Restore partition sectors that were modified for preview
|
// Restore partition sectors that were modified for preview
|
||||||
m_partition->setFirstSector( m_oldFirstSector );
|
m_partition->setFirstSector( m_oldFirstSector );
|
||||||
m_partition->setLastSector( m_oldLastSector );
|
m_partition->setLastSector( m_oldLastSector );
|
||||||
|
|
||||||
ResizeOperation op( *m_device, *m_partition, m_newFirstSector, m_newLastSector );
|
ResizeOperation op( *m_device, *m_partition, m_newFirstSector, m_newLastSector );
|
||||||
op.setStatus( Operation::StatusRunning );
|
|
||||||
connect( &op, &Operation::progress, this, &ResizePartitionJob::iprogress );
|
connect( &op, &Operation::progress, this, &ResizePartitionJob::iprogress );
|
||||||
|
return KPMHelpers::execute( op,
|
||||||
QString errorMessage = tr( "The installer failed to resize partition %1 on disk '%2'." )
|
tr( "The installer failed to resize partition %1 on disk '%2'." )
|
||||||
.arg( m_partition->partitionPath() )
|
.arg( m_partition->partitionPath() )
|
||||||
.arg( m_device->name() );
|
.arg( m_device->name() ) );
|
||||||
if ( op.execute( report ) )
|
|
||||||
{
|
|
||||||
return Calamares::JobResult::ok();
|
|
||||||
}
|
|
||||||
|
|
||||||
return Calamares::JobResult::error( errorMessage, report.toText() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
|
|
||||||
#include "ResizeVolumeGroupJob.h"
|
#include "ResizeVolumeGroupJob.h"
|
||||||
|
|
||||||
// KPMcore
|
#include "core/KPMHelpers.h"
|
||||||
|
|
||||||
#include <kpmcore/core/lvmdevice.h>
|
#include <kpmcore/core/lvmdevice.h>
|
||||||
#include <kpmcore/core/partition.h>
|
#include <kpmcore/core/partition.h>
|
||||||
#include <kpmcore/ops/resizevolumegroupoperation.h>
|
#include <kpmcore/ops/resizevolumegroupoperation.h>
|
||||||
@ -51,19 +52,9 @@ ResizeVolumeGroupJob::prettyStatusMessage() const
|
|||||||
Calamares::JobResult
|
Calamares::JobResult
|
||||||
ResizeVolumeGroupJob::exec()
|
ResizeVolumeGroupJob::exec()
|
||||||
{
|
{
|
||||||
Report report( nullptr );
|
return KPMHelpers::execute(
|
||||||
|
ResizeVolumeGroupOperation( *m_device, m_partitionList ),
|
||||||
ResizeVolumeGroupOperation op( *m_device, m_partitionList );
|
tr( "The installer failed to resize a volume group named '%1'." ).arg( m_device->name() ) );
|
||||||
|
|
||||||
op.setStatus( Operation::OperationStatus::StatusRunning );
|
|
||||||
|
|
||||||
QString message = tr( "The installer failed to resize a volume group named '%1'." ).arg( m_device->name() );
|
|
||||||
if ( op.execute( report ) )
|
|
||||||
{
|
|
||||||
return Calamares::JobResult::ok();
|
|
||||||
}
|
|
||||||
|
|
||||||
return Calamares::JobResult::error( message, report.toText() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString
|
QString
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
#include "SetPartitionFlagsJob.h"
|
#include "SetPartitionFlagsJob.h"
|
||||||
|
|
||||||
|
#include "core/KPMHelpers.h"
|
||||||
|
|
||||||
#include "partition/FileSystem.h"
|
#include "partition/FileSystem.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
#include "utils/Units.h"
|
#include "utils/Units.h"
|
||||||
@ -148,17 +150,8 @@ SetPartFlagsJob::exec()
|
|||||||
cDebug() << "Setting flags on" << m_device->deviceNode() << "partition" << partition()->deviceNode()
|
cDebug() << "Setting flags on" << m_device->deviceNode() << "partition" << partition()->deviceNode()
|
||||||
<< Logger::DebugList( flagsList );
|
<< Logger::DebugList( flagsList );
|
||||||
|
|
||||||
Report report( nullptr );
|
|
||||||
SetPartFlagsOperation op( *m_device, *partition(), m_flags );
|
SetPartFlagsOperation op( *m_device, *partition(), m_flags );
|
||||||
op.setStatus( Operation::StatusRunning );
|
|
||||||
connect( &op, &Operation::progress, this, &SetPartFlagsJob::iprogress );
|
connect( &op, &Operation::progress, this, &SetPartFlagsJob::iprogress );
|
||||||
|
return KPMHelpers::execute(
|
||||||
QString errorMessage
|
op, tr( "The installer failed to set flags on partition %1." ).arg( m_partition->partitionPath() ) );
|
||||||
= tr( "The installer failed to set flags on partition %1." ).arg( m_partition->partitionPath() );
|
|
||||||
if ( op.execute( report ) )
|
|
||||||
{
|
|
||||||
return Calamares::JobResult::ok();
|
|
||||||
}
|
|
||||||
|
|
||||||
return Calamares::JobResult::error( errorMessage, report.toText() );
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user