Commit Graph

1410 Commits

Author SHA1 Message Date
Teo Mrnjavac
3855998fe5 Add prettyStatusMessage to Clear* and Check* partitioning jobs. 2015-06-13 02:24:58 +02:00
Teo Mrnjavac
eae237211f Add prettyStatusMessage to {Python,Process}Job. 2015-06-13 02:23:11 +02:00
Teo Mrnjavac
079fa3624b Update pretty{Description,StatusMessage} for users module jobs. 2015-06-13 02:22:03 +02:00
Teo Mrnjavac
b0d52fb928 Use it in JobQueue. 2015-06-13 02:03:57 +02:00
Teo Mrnjavac
18a9e0db48 Add optional prettyStatusMessage to Job. 2015-06-13 02:03:35 +02:00
Teo Mrnjavac
659a388688 Improve job status reporting. 2015-06-13 01:16:11 +02:00
Teo Mrnjavac
0dab164e9c Really fix on old GCC 2015-06-11 20:07:55 +02:00
Teo Mrnjavac
16805f1098 Fixup. 2015-06-11 19:05:44 +02:00
Teo Mrnjavac
1c0a5ea334 Try to fix build with GCC 4.8.4.
CAL-236 #comment Please test with current master.
2015-06-11 18:53:23 +02:00
Teo Mrnjavac
46e90ccda2 Add setRootPassword option to the Users module.
If set to true, the user must set a root password. Otherwise, the
user won't be asked and a root password will not be set.
2015-06-11 04:02:06 +02:00
Teo Mrnjavac
d6441bbcb4 LVM2 unmounting and disabling support in ClearMountsJob. 2015-06-11 03:18:22 +02:00
Teo Mrnjavac
7dd4104009 Replace Gummiboot with systemd-boot. 2015-06-11 00:32:50 +02:00
Teo Mrnjavac
8dc90d0cca Update README.md 2015-06-10 22:54:44 +02:00
Teo Mrnjavac
617d6d018c Clarify. 2015-06-10 00:17:59 +02:00
Teo Mrnjavac
35e859e66e Automatically create a swap partition if there's enough space. 2015-06-10 00:06:45 +02:00
Teo Mrnjavac
adad3535a8 Use the new physical memory checker. 2015-06-10 00:06:45 +02:00
Teo Mrnjavac
5e2f6ff2b8 Detect physical memory, with dmidecode and meminfo as backup. 2015-06-10 00:06:45 +02:00
Teo Mrnjavac
43698b18f5 Rearrange WelcomePage checker layout to make more space for reports. 2015-06-09 02:35:22 +02:00
Teo Mrnjavac
02f4ab1501 Check for root privileges. 2015-06-09 02:13:22 +02:00
Teo Mrnjavac
b07fd97103 Merge pull request #220 from dgikiller/master
Improving support for Gentoo based distros
2015-06-08 19:34:01 +02:00
skullbocks
57406f3bc9 [modules/packages] Added support for Portage and Entropy 2015-06-08 19:29:51 +02:00
Teo Mrnjavac
320a96423f Add a 5% grace to the RAM check because Linux MemTotal is unreliable. 2015-06-08 19:28:52 +02:00
Teo Mrnjavac
8885a7e5f6 Fix bug with KPM enum which prevented logical partition creation. 2015-06-07 03:24:00 +02:00
Teo Mrnjavac
fa2b577236 Meaningful text from BootLoaderModel. 2015-06-06 23:45:54 +02:00
Teo Mrnjavac
30408d34a1 Try to find a more reliable way to read new partition UUIDs. 2015-06-05 18:02:14 +02:00
Teo Mrnjavac
fff0f6f023 Debug output. 2015-06-05 18:02:14 +02:00
Teo Mrnjavac
cf5e137947 Correct operations order in EraseDiskPage. 2015-06-05 18:02:14 +02:00
Teo Mrnjavac
25c2b7265b Fixup operations order when autopartitioning. 2015-06-05 18:02:14 +02:00
Teo Mrnjavac
0426d7fd35 Bump EFI system partition default size to 300M. 2015-06-05 18:02:14 +02:00
Teo Mrnjavac
7a69aae0cb Correct operation order in EraseDiskPage for EFI. 2015-06-05 18:02:14 +02:00
Teo Mrnjavac
d499fed8a0 Add EFI detection support to Alongside page. 2015-06-05 18:02:14 +02:00
Teo Mrnjavac
e3ef61a7f2 Move onPartitionSelected into a slot instead of a huge lambda. 2015-06-05 18:02:14 +02:00
Teo Mrnjavac
195b585282 Disable alongside and replace features on EFI system without ESP. 2015-06-05 18:02:13 +02:00
Teo Mrnjavac
b507a0e2b9 Rebase ReplacePage on top of EFI support in PCM. 2015-06-05 18:02:13 +02:00
Teo Mrnjavac
f4a13b2041 Add EFI System Partition scanning support to PartitionCoreModule. 2015-06-05 18:02:13 +02:00
Teo Mrnjavac
67b96f750a Code style. 2015-06-05 18:02:13 +02:00
Teo Mrnjavac
905835295a Move osprober management out of ctor. 2015-06-05 18:02:13 +02:00
Teo Mrnjavac
a2f1d49983 Remove debug spam. 2015-06-05 18:02:13 +02:00
Teo Mrnjavac
a2c5bcd0ee Fixed m_isEfi falsely false in ReplacePage. 2015-06-05 18:02:13 +02:00
Teo Mrnjavac
d54f314394 Add debug spam to ReplacePage.cpp 2015-06-05 18:02:13 +02:00
Teo Mrnjavac
18eb0c7b96 Add ESP detection and choice to ReplacePage. 2015-06-04 02:28:12 +02:00
Teo Mrnjavac
94e9c659d1 Add generic search function to iterate over partitions for convenience. 2015-06-04 02:28:12 +02:00
Teo Mrnjavac
04f977d28f Add ESP related UI elements to ReplacePage. 2015-06-04 02:28:12 +02:00
Teo Mrnjavac
ccab867d19 Update submodule. 2015-06-04 02:27:58 +02:00
Teo Mrnjavac
d5a42a65f6 Update KPM submodule. 2015-05-20 12:13:08 +02:00
Teo Mrnjavac
994db0973f Try removing the centered icon from CheckerWidget 2015-05-18 12:47:11 +02:00
demmm
5a07c240a9 use ShortProductName as second argument
choicepage.cpp has 2 instances where %2 is not defined
2015-05-16 19:43:27 +02:00
Teo Mrnjavac
235d0058c9 Set dialog title. 2015-05-16 19:42:51 +02:00
Teo Mrnjavac
e09976d91c Add details dialog to requirements widget. 2015-05-15 18:15:22 +02:00
Teo Mrnjavac
2fd84fc9f7 Layout fixes in Welcome page. 2015-05-15 18:15:22 +02:00
Teo Mrnjavac
51f74315f6 Refactor CheckerWidget for better integration with Welcome page. 2015-05-15 18:15:22 +02:00
Teo Mrnjavac
7622abce94 Add negated text to requirement entries. 2015-05-15 18:15:22 +02:00
Teo Mrnjavac
f0dc3d5ae6 Layout fixes in welcome page. 2015-05-15 18:15:22 +02:00
Teo Mrnjavac
43992c5251 Hook up RequirementsChecker with the WelcomeViewStep. 2015-05-15 18:15:22 +02:00
Teo Mrnjavac
e19264632d Merge prepare config file into welcome.conf. 2015-05-15 18:15:22 +02:00
Teo Mrnjavac
ceedc1166b Merge prepare module into welcome, and repurpose it as a req checker. 2015-05-15 18:15:22 +02:00
Teo Mrnjavac
3dd1d7932f Fix up identifiers + use QComboBox instead of QListView. 2015-05-15 18:15:22 +02:00
Teo Mrnjavac
7bcb060967 The greeting module is now welcome. 2015-05-15 18:15:22 +02:00
Ramon Buldó
049f711f7d [displaymanager] Add i3, move openbox to the end of the list. 2015-05-15 12:50:29 +02:00
Ramon Buldó
9b7c1ff3da [displaymanager] Add budgie and pantheon support 2015-05-15 07:07:54 +02:00
Ramon Buldó
bbe06aa587 Fix ssd detection for MMC devices. 2015-05-08 10:37:54 +02:00
demmm
28695652fb Update readme with show.qml example 2015-05-07 18:08:18 -04:00
Teo Mrnjavac
ea65ede405 Update README.md 2015-05-07 16:39:16 +02:00
Teo Mrnjavac
77e205e48a Reload the slideshow on language change. 2015-05-07 16:12:19 +02:00
Teo Mrnjavac
375150347b nullptr is better than 0 2015-05-07 16:11:23 +02:00
Teo Mrnjavac
09d7cd9de6 Add translationsPathPrefix to Branding. 2015-05-07 16:10:42 +02:00
Teo Mrnjavac
d1047ab76e Use new installTranslator in GreetingPage. 2015-05-07 16:10:42 +02:00
Teo Mrnjavac
fcb6817c54 Make dummypython sleep for 30sec. 2015-05-07 16:10:42 +02:00
Teo Mrnjavac
22177be577 Use new installTranslator in CalamaresApplication. 2015-05-07 16:10:42 +02:00
Teo Mrnjavac
09ae0bcbd6 Add branding translations support to CalamaresUtils::installTranslator. 2015-05-07 16:10:42 +02:00
Teo Mrnjavac
8a02522d60 Add CALAMARES_RETRANSLATE_WIDGET 2015-05-07 16:10:42 +02:00
Daniel Hillenbrand
e4daf45c71 mount: mount efivarfs on /sys/firmware/efi/efivars
No need to bind sys to /sys/firmware/efi since it is already preset.
2015-05-01 10:42:06 +02:00
Daniel Hillenbrand
8612f427f1 bootloader: add --force argument for grub efi 2015-05-01 10:11:32 +02:00
Teo Mrnjavac
cf3359bdb4 Reset ReplacePage when going back from the next one. 2015-04-29 18:16:48 +02:00
Teo Mrnjavac
55b93091e6 Add reset method to ReplacePage. 2015-04-29 18:16:48 +02:00
Teo Mrnjavac
4b73d9579f Add PartitionPreview widget to AlongsidePage. 2015-04-28 17:42:11 +02:00
Teo Mrnjavac
0d0e3bf7bc Add hack to PCM to create a rescanned device copy to use as preview. 2015-04-28 17:40:49 +02:00
Teo Mrnjavac
6b40c8aaa1 Use a static colors cache to preserve partition colors. 2015-04-28 17:09:24 +02:00
Teo Mrnjavac
2c9d6fff17 const array is const. 2015-04-28 17:09:24 +02:00
Teo Mrnjavac
96c840e878 Use proper color for new partition in PartitionSplitterWidget. 2015-04-28 17:09:24 +02:00
Teo Mrnjavac
ae1fa0e48b Use correct palette in new partition dialog. 2015-04-28 17:09:24 +02:00
Teo Mrnjavac
9065882da4 Either count new partitions or existing partitions for colors. 2015-04-28 17:09:23 +02:00
Teo Mrnjavac
d3f4ced8c0 Use a separate palette for newly created partitions. 2015-04-24 18:10:12 +02:00
Teo Mrnjavac
c7563af1c9 New palette + don't reset count when coloring logical partitions. 2015-04-24 18:10:12 +02:00
Teo Mrnjavac
5ab7896fca Add the option of using PartitionIterator on a PartitionTable. 2015-04-24 18:10:12 +02:00
Teo Mrnjavac
6c62d6f6d2 Implement wrapping to new line for partition preview color labels. 2015-04-24 18:10:12 +02:00
Teo Mrnjavac
45d5c5bbde Only show the labels section where it's relevant. 2015-04-24 18:10:12 +02:00
Teo Mrnjavac
966ccdaafc Initial commit for adding labels to PartitionPreview. 2015-04-24 18:10:12 +02:00
Teo Mrnjavac
1ad1a64161 Code style. 2015-04-24 18:10:12 +02:00
Teo Mrnjavac
b15ccdfeef Year too. 2015-04-16 18:20:29 +02:00
Teo Mrnjavac
b7af3cde38 Fix url. 2015-04-16 18:19:15 +02:00
Teo Mrnjavac
30559baa16 Reorder entries on ChoicePage. 2015-04-16 18:14:26 +02:00
Teo Mrnjavac
9459e67ac9 Update Blue Systems tagline. 2015-04-16 18:14:26 +02:00
Teo Mrnjavac
9058c14032 Merge pull request #205 from rshipp/packages-local-install
Allow local installs with the packages module
2015-04-16 11:26:37 +02:00
Teo Mrnjavac
d894638f2f Add information about the partitioning action in the Summary page. 2015-04-15 15:36:49 +02:00
Teo Mrnjavac
06b4443e80 Const correctness. 2015-04-15 12:20:26 +02:00
Teo Mrnjavac
2846cbdcbc Report a prettyDescription for FillGlobalStorageJob. 2015-04-13 14:58:34 +02:00
Teo Mrnjavac
f8995bc8e5 Copyright header. 2015-04-13 14:58:34 +02:00
Teo Mrnjavac
fefa736501 Use <strong> instead of <b> in all instances. 2015-04-13 14:58:34 +02:00
Teo Mrnjavac
e2c133f329 Better Summary message in ResizePartitionJob. 2015-04-13 14:58:34 +02:00
Teo Mrnjavac
5c8453e4bb Better Summary message in FormatPartitionJob. 2015-04-13 14:58:34 +02:00
Teo Mrnjavac
fa83ca4469 Better Summary message for DeletePartitionJob. 2015-04-13 14:58:34 +02:00
Teo Mrnjavac
c56235df37 Better Summary message for CreatePartitionTableJob. 2015-04-13 14:58:34 +02:00
Teo Mrnjavac
3140990dbc Better Summary message for CreatePartitionJob 2015-04-13 14:58:34 +02:00
Teo Mrnjavac
22411d2399 Never show an empty jobs label. 2015-04-13 14:58:34 +02:00
Teo Mrnjavac
a8b8a3a455 Show an "are you sure" prompt before install, if prompt-install is true. 2015-04-13 14:58:34 +02:00
Teo Mrnjavac
b86193824d Read a prompt-install variable from settings.conf. 2015-04-13 14:58:34 +02:00
Teo Mrnjavac
e6748f8656 Make the Summary page contents scrollable. 2015-04-13 14:58:34 +02:00
Teo Mrnjavac
69f6a2c73c Formatting in Summary page. 2015-04-13 14:58:34 +02:00
Teo Mrnjavac
be2083e2bf Add device node to Partitioning summary info objects. 2015-04-13 14:58:33 +02:00
Teo Mrnjavac
8568c2c816 Add prettyDescription to most Partitioning jobs. 2015-04-13 14:58:33 +02:00
Teo Mrnjavac
bf0296e155 Preliminary implementation of a summary queue for partitioning jobs. 2015-04-13 14:58:33 +02:00
Teo Mrnjavac
d45d436161 Add optional prettyDescription to Job. 2015-04-13 14:58:33 +02:00
Teo Mrnjavac
30502d49c3 Retranslate strings from uic on language change. 2015-04-09 18:16:14 +02:00
Teo Mrnjavac
fc2d15da16 Document potentially obscure code. 2015-04-08 19:17:51 +02:00
Teo Mrnjavac
2d2d5ca30c Store lambdas that call tr in ViewStepItem and TextTreeItem. 2015-04-08 19:10:24 +02:00
Teo Mrnjavac
24fc227e76 Retranslate navigation buttons. 2015-04-08 18:40:43 +02:00
Teo Mrnjavac
1f9843cc7d Retranslate window title. 2015-04-08 18:40:27 +02:00
Teo Mrnjavac
8b98b1cc24 Do not filter out LanguageChange events when in a RETRANSLATE functor. 2015-04-08 18:25:03 +02:00
Teo Mrnjavac
1211086b33 Update URL. 2015-04-08 13:59:33 +02:00
Teo Mrnjavac
9cb5a0af18 Merge pull request #213 from calamares/grubcfg-preserve-kernel-params
Preserve kernel parameters that aren't handled by grubcfg.
2015-04-03 16:58:09 +02:00
Teo Mrnjavac
654bc9f471 Add debug output to SetKeyboardLayoutJob.
CAL-206 #comment I've just pushed some debug output to master, could you please test again and post a new log?
2015-04-03 15:04:24 +02:00
Teo Mrnjavac
6395b4c8ce Use the new Disk and Partition icons. 2015-04-03 12:19:27 +02:00
Teo Mrnjavac
c9769dfd76 Add Disk and Partition icons to CalamaresUtils::defaultPixmap. 2015-04-03 11:57:01 +02:00
Teo Mrnjavac
9606b228d7 Add Disk and Partition icons to qrc. 2015-04-03 11:55:39 +02:00
Teo Mrnjavac
8625b8c5a9 Fix up regex in grubcfg to work with single quotes. 2015-04-02 20:25:41 +02:00
Teo Mrnjavac
ffc65fa07e New Partitioning icons, still being fixed up. 2015-04-02 14:21:14 +02:00
Teo Mrnjavac
b095982830 Expose new partitioning icons in CalamaresUtils::defaultPixmap. 2015-04-02 14:03:12 +02:00
Teo Mrnjavac
cf49239419 Update libcalamaresui.qrc 2015-04-02 14:02:13 +02:00
Teo Mrnjavac
debd4bc352 Fix regexp in grubcfg.
CAL-205 #comment Done some fixing, please retest when you can.
2015-04-02 13:24:47 +02:00
Teo Mrnjavac
a977b1ea40 Make sure we write the kernel config line anyway. 2015-04-02 12:53:24 +02:00
Teo Mrnjavac
41e7a9ae3c Preserve kernel parameters that aren't handled by grubcfg. 2015-04-02 12:53:24 +02:00
Teo Mrnjavac
9b516281d8 ... and use them in the Greeting page. 2015-04-02 12:50:17 +02:00
Teo Mrnjavac
506b79ef2c Add new icons to CalamaresUtils::defaultPixmap. 2015-04-02 12:49:40 +02:00
Teo Mrnjavac
e6f98393b8 Add icons to qrc. 2015-04-02 12:48:34 +02:00
Teo Mrnjavac
262ef38c0a Show/hide available links based on greeting.conf and Branding. 2015-04-02 12:29:31 +02:00
Teo Mrnjavac
23ddfaae67 Read configuration map into GreetingViewStep. 2015-04-02 12:29:31 +02:00
Teo Mrnjavac
43487198a2 The greeting module now has a config file. 2015-04-02 12:29:31 +02:00
Teo Mrnjavac
dc74e38a60 New Url entries in branding.desc 2015-04-02 12:29:31 +02:00
Teo Mrnjavac
ec883e391d Add different kinds of Url to Branding. 2015-04-02 12:29:31 +02:00
Teo Mrnjavac
a1e643044e Make ProductUrl/ProductUrlText optional. 2015-04-01 18:11:38 +02:00
Teo Mrnjavac
00d3205ed3 Update branding.desc syntax. 2015-04-01 18:11:08 +02:00
Teo Mrnjavac
bce6ec94fd Add ProductUrl and ProductUrlText to Branding. 2015-04-01 18:03:17 +02:00
demmm
4088d9bd3b implement http://calamares.io/bugs/browse/CAL-185 2015-04-01 17:36:51 +02:00
Ramon Buldó
a253101258 [partition] Disable bootloader disk selection when installing in a efi system. 2015-03-29 17:03:26 +02:00
Teo Mrnjavac
19bcc887a8 Fix build with Qt 5.5 branch. 2015-03-27 11:59:44 +01:00
Teo Mrnjavac
5a24916fd0 Make which plymouth execute in chroot. 2015-03-26 15:53:50 +01:00
Rohan Garg
44105895f8 Use 'which' to find plymouth instead of hard coding /usr/bin
Debian ships plymouth in  /bin instead of /usr/bin, so we should use
'which' to figure out if it's installed.
2015-03-25 20:39:03 +01:00
Teo Mrnjavac
75f4f0fa04 Fix issue with splitting being allowed when it shouldn't be.
KPM docs misreport Partition::available to be in sectors, when it's
actually in bytes. Because of this, available space estimates were
completely off and resizing was allowed even when there's no room to
do it. This used to put the resize widget in all sorts of weird,
visually broken states.
CAL-188 #comment Does this still happen with current master?
2015-03-25 12:54:44 +01:00
demmm
f2c7458ebe proper align 2015-03-19 13:10:44 -04:00
Teo Mrnjavac
62f6f1d9cf Dress color codes, otherwise they are treated as YAML comments. 2015-03-19 18:03:55 +01:00
Teo Mrnjavac
e5d4c02b4a Use Branding styleStrings instead of CalamaresStyle constants. 2015-03-19 18:03:55 +01:00
Teo Mrnjavac
cc5095781d Branding::style is now ::styleString for clarity. 2015-03-19 18:03:55 +01:00
Teo Mrnjavac
9615691554 CalamaresStyle is no more. Look for color constants in Branding. 2015-03-19 18:03:55 +01:00
demmm
b982d751af adding needed Branding.cpp section
builds, but segfaults on running
2015-03-19 18:03:55 +01:00
demmm
56afa45812 start of trial to add sidebar style options
use a new style section in branding.desc, doesn't build as is
2015-03-19 18:03:55 +01:00
Teo Mrnjavac
c7f46136fc Do not crash. 2015-03-19 17:28:30 +01:00
demmm
d750885e75 Revert "add URL option in greeting page" 2015-03-19 10:44:34 -04:00
demmm
be29755230 add URL option in greeting page
URL is a variable set in branding.desc, distros cna link to a Known Issues page
text for the URL is also possible to set in branding, known issues is default
advantage is any text possible as distros see fit
disadvantage, not part of translated strings
if most agree, Known Issues can be set as hard coded text, not in branding.desc
2015-03-19 10:32:14 -04:00
Teo Mrnjavac
d0235c4e76 Improve strings for actions in ChoicePage. 2015-03-18 20:12:20 +01:00
Teo Mrnjavac
c45e757cea Good guy clang catches lousy code.
CAL-212 #close Fixed.
2015-03-17 15:41:17 +01:00
Philip
a62743185a [partition] use C++11 initialization list for mountPoints 2015-03-16 19:21:18 +01:00
Ramon Buldó
6a52811c30 Show efi mountpoint when creating/editing partitions 2015-03-16 11:50:55 +01:00
Ramon Buldó
26bb6951f1 [partition] Change comment to prevent confusions of what Manjaro uses 2015-03-16 09:06:58 +01:00
Philip
bde428d4af [services] revert f1908eb 2015-03-13 17:49:24 +01:00
Teo Mrnjavac
4468e30317 Prevent crash when going back from EraseDiskPage and then next.
This was caused by an invalid reference to a device model in the
partitioning preview widget after a PCM revert.
2015-03-13 16:05:35 +01:00
Philip Müller
9fcd8113e5 [displaymanager] add pekwm 2015-03-12 21:08:23 +01:00
Philip Müller
f1908eb38d [services] adopt cups changes 2015-03-12 21:07:41 +01:00
Teo Mrnjavac
7e7e47b6d1 Do not warn of data loss which might not happen.
CAL-194 #comment Fixed up warnings in ChoicePage.
2015-03-11 18:13:39 +01:00
Teo Mrnjavac
c2a0845738 Debug window title. 2015-03-11 12:42:08 +01:00
Teo Mrnjavac
ea3b2295ec Diagnostics is now debug information 2015-03-11 12:41:44 +01:00
Teo Mrnjavac
5951208c1b Add Modules page to DebugWindow. 2015-03-10 19:51:08 +01:00
Teo Mrnjavac
dda7ea211d Make ModuleManager accessible from outside CalamaresApplication. 2015-03-10 19:51:08 +01:00
Teo Mrnjavac
4e2e964503 Return configurationMap from Module. 2015-03-10 19:51:08 +01:00
Teo Mrnjavac
8a60abdfc9 Add JobQueue list to DebugWindow 2015-03-10 19:51:08 +01:00
Teo Mrnjavac
52528f650c JobQueue emits queueChanged. 2015-03-10 19:51:08 +01:00
Teo Mrnjavac
3ce8abcb78 Expand all items in the GlobalStorage debug tree. 2015-03-10 19:51:08 +01:00
Teo Mrnjavac
8729b6a25f Update the debug view every time GlobalStorage changes. 2015-03-10 19:51:08 +01:00
Teo Mrnjavac
edb21e05af New GlobalStoragePythonWrapper is passed to the Python API.
This allows us to make GlobalStorage a QObject, with disabled copy
constructor. And thanks to this change, GlobalStorage now emits
changed() every time an insert or remove is performed.
2015-03-10 19:51:08 +01:00
Teo Mrnjavac
060983279f Add a QTreeView for GlobalStorage contents to DebugWindow.
Not real time yet.
2015-03-10 19:51:08 +01:00
Teo Mrnjavac
d1c4976ee6 Copyright. 2015-03-10 19:51:08 +01:00
Teo Mrnjavac
d8ca5eee5b Friend DebugWindow to GlobalStorage for future use. 2015-03-10 19:51:08 +01:00
Teo Mrnjavac
9249d6e165 Add QJsonModel. 2015-03-10 19:51:08 +01:00
Teo Mrnjavac
f00a557d07 Retranslate diagnostics button. 2015-03-10 19:51:08 +01:00
Teo Mrnjavac
00565d0f12 Stubs for DebugWindow. 2015-03-10 19:51:08 +01:00
rshipp
f3319e1ef4 Change local_install to localInstall 2015-03-04 08:19:26 -07:00
rshipp
880c19c195 Fix incorrect if statement 2015-03-01 17:34:44 -07:00
rshipp
995341e9be Allow local installs with the packages module.
Courtesy of @Inkane. Adds the ability to use pacman -U to install
local packages.
2015-03-01 16:31:40 -07:00
Ramon Buldó
fb3072bbbb /etc/mtab reports a file size of 0, so using .atEnd() may not work. Read the file until it doesn't return more data.
Use QTextStream because it takes care of the conversion between 8-bit and 16-bit.
http://doc.qt.io/qt-5/qfile.html#using-streams-to-read-files
2015-02-28 16:46:18 +01:00
Teo Mrnjavac
642b4be1f2 Keys are not necessarily unique, so use a QList< QPair > instead. 2015-02-27 20:43:21 +01:00
Teo Mrnjavac
20a8b222c6 Verbose debug output. 2015-02-27 20:31:17 +01:00
Teo Mrnjavac
b557961a32 New ClearTempMountsJob, to be executed before partitioning jobs. 2015-02-27 19:49:47 +01:00
Teo Mrnjavac
8a23d48d76 Merge pull request #201 from calamares/removeuser
removeuser job module, this time in Python.
2015-02-26 11:00:04 +01:00
Teo Mrnjavac
01e98f0c29 Merge pull request #199 from calamares/displaymanager-explicitautologin
[displaymanager] Explicitly unset autologin if not checked.
2015-02-26 10:59:14 +01:00
Gormogon
e2d05cb9f2 Align Pointers 2015-02-25 19:57:19 -05:00
Teo Mrnjavac
67ed53caeb Do not try to set the username if it's None. 2015-02-25 18:01:15 +01:00
Teo Mrnjavac
b319cc1da0 [displaymanager] Explicitly unset autologin if not checked. 2015-02-25 18:00:01 +01:00
Teo Mrnjavac
5a1567f4f5 removeuser job module, this time in Python. 2015-02-25 17:37:25 +01:00
Philip
e5eee1e4dd [unpackfs] proper sentence 2015-02-25 14:49:24 +01:00
Philip
82dc4c38f4 [unpackfs] add python doc strings 2015-02-25 14:49:24 +01:00
Philip
d22e194ee7 [umount] add python doc strings 2015-02-25 14:49:23 +01:00
Philip
be2353e54b [packages] add python doc strings 2015-02-25 14:49:23 +01:00
Philip
016dd71db4 [mount] add python doc strings 2015-02-25 14:49:23 +01:00
Philip
d7b36e9ff7 [machineid] add python doc strings 2015-02-25 14:49:23 +01:00
Philip
fc88f1a480 [initramfs] add python doc strings 2015-02-25 14:49:23 +01:00
Philip
d677fe9d01 [initcpiocfg] add python doc strings 2015-02-25 14:49:23 +01:00
Philip
98db0b3f59 [initcpio] add python doc strings 2015-02-25 14:49:23 +01:00
Philip
06be842cfa [grubcfg] add python doc strings 2015-02-25 14:49:23 +01:00
Philip
3d8ba2b088 [fstab] add python doc strings 2015-02-25 14:49:23 +01:00
Philip
e7a67b9c52 [dummypython] add python doc strings 2015-02-25 14:49:23 +01:00
Philip
3330df99f3 [dracut] add python doc strings 2015-02-25 14:49:23 +01:00
Philip
60927b9363 [displaymanager] add more python doc strings 2015-02-25 14:49:23 +01:00
Philip
0d8bdc6c4e [bootloader] add python doc strings 2015-02-25 14:49:23 +01:00
Gormogon
b4db9fe64b Fixing PEP – 257 Violations 2015-02-25 14:49:23 +01:00
Gormogon
113d9db7cb Python Better Docstrings 2015-02-25 14:49:23 +01:00
Teo Mrnjavac
b8b41bdfdd Fix execution environment and error reporting in ProcessJob. 2015-02-25 13:44:55 +01:00
Philip
0dadd19e51 [bootloader] use '--force' argument
- Note (Kevin Kofler): Grub will fall back to a LILO-style installation,
  using blocklists to reference the blocks inside a larger partition,
  with the same caveats LILO had (need to reinstall whenever you do
  anything to the partition that will move those blocks around).
- Setting flags (EF00, EF02) or creating grub boot partition should be
  handled within 'partition' module.
2015-02-23 02:35:50 +01:00
Philip
9ac0fc37b1 [bootloader] Modifications
- move fail-check out of loop
- add more debug lines
2015-02-22 18:06:15 +01:00
Philip
fe7c5bbe77 [bootloader] Modifications
- add more debug informations
- simplify gpt detection code
2015-02-22 17:34:12 +01:00
Philip
43ccfbd9bd [bootloader] Modifications
- add 'bios_grub' flag when gpt table got detected
- grub: add --recheck at installation
2015-02-22 15:26:29 +01:00
Teo Mrnjavac
abeb6d9172 Run urpme noninteractive (OpenMandriva).
Thanks Tomasz Paweł Gajc <tpgxyz@gmail.com> for the patch.
2015-02-22 13:38:37 +01:00
Philip
6ed8b1e4a4 [bootloader] actually use get_kernel_line() 2015-02-20 18:36:20 +01:00
Teo Mrnjavac
92eae47a1d Const correctness. 2015-02-20 16:21:30 +01:00
Teo Mrnjavac
71851ed274 Process user-visible strings in TimezoneWidget and LocalePage. 2015-02-20 16:21:30 +01:00
Gormogon
7989267e81 Unused Imports 2015-02-20 09:24:05 -05:00
Teo Mrnjavac
cf64b2ce27 Allow zone subdivisions in timezones list.
CAL-191 #close Please test and reopen if it's still broken.
2015-02-20 14:54:52 +01:00
Philip Müller
d55d1c2fca [bootloader] fix typos in conf 2015-02-20 09:59:02 +01:00
Philip Müller
cb271d13ed [bootloader] use bootloader.conf values for overrides 2015-02-19 18:10:31 +01:00
Philip Müller
035ad6cbf9 [bootloader] use bootloaderEntryName 2015-02-19 17:59:52 +01:00
Philip Müller
cf1e5a8b51 [bootloader] fix typo 2015-02-19 17:40:36 +01:00
Philip Müller
93f0de3f7f [bootloader] make gummiboot entries more generic (use branding) 2015-02-19 17:39:11 +01:00
Philip
df9a2e38a8 [bootloader] proper arrangement 2015-02-20 01:00:31 +01:00
Philip
4759279fab [bootloader] default to grub for efi installations 2015-02-20 00:40:24 +01:00
Philip
5043bb4e0d [bootloader] update note regarding efiBootLoader in conf 2015-02-20 00:37:21 +01:00
Philip
c649ed4729 [bootloader] add efiBootLoader to conf 2015-02-20 00:34:56 +01:00
Philip
ebce8335bd [bootloader] move efi_(boot_loader|directory) to proper place 2015-02-20 00:33:16 +01:00
Philip
cd3e6a97de [bootloader] move efi_(boot_loader|directory) to proper place 2015-02-20 00:32:46 +01:00
Philip
e3a7fca6f4 [bootloader] join grub module with bootloader 2015-02-20 00:28:44 +01:00
Philip
76bfc4d96f [grub] add sgdisk call 2015-02-19 22:40:55 +01:00
Philip
4f089185fd [bootloader] fix 'dict' object is not callable 2015-02-19 22:32:27 +01:00
Philip
1542107d22 [bootloader] proper kernel_line in conf 2015-02-19 21:01:38 +01:00
Philip
7a10e14161 [bootloader] move values kernel_line and fallback_kernel_line up 2015-02-19 20:56:18 +01:00
Philip
cb78e74ae9 [bootloader] add quotes to config 2015-02-19 20:48:39 +01:00
Philip
6877466e28 Merge branch 'master' of github.com:calamares/calamares 2015-02-19 20:46:50 +01:00
Philip
568dd9422c [bootloader] simplify code
- remove unneeded double code
- add kernel lines to config
2015-02-19 20:46:02 +01:00
Teo Mrnjavac
ee1a90d845 Add debug details to ClearMountsJob. 2015-02-19 20:25:28 +01:00
Philip
e0cccb892f [bootloader] fix typo 2015-02-19 20:24:07 +01:00
Philip
229b9b40cd [bootloader] make if statement more pythonic 2015-02-19 19:46:57 +01:00
Philip
b41ecf119d [bootloader] add meaningful debug lines 2015-02-19 19:42:09 +01:00
Philip
715112261d [bootloader] if boot_p or device is empty, break and throw an error 2015-02-19 19:09:13 +01:00
Teo Mrnjavac
d51b15a919 Fix typo. Please test your Python code, as CI won't catch it. 2015-02-18 18:46:13 +01:00
Teo Mrnjavac
23eca3db55 Only create a ClearMountsJob for dirty devices.
CAL-195
2015-02-18 17:41:48 +01:00
Gormogon
9ef5f581a3 Update 'kbd-model-map' from Upstream 2015-02-18 10:06:37 -05:00
Gormogon
5c1ee7bbcb [PEP 8] General Style Part 3 2015-02-18 10:03:57 -05:00
Gormogon
09dc6bb5d7 [PEP 8] General Style Part 2 2015-02-18 09:47:24 -05:00
Gormogon
d8df3d7a59 [PEP 8] General Style Part 1 2015-02-18 09:37:03 -05:00
Gormogon
5d5519b7b0 [PEP 8] Comparison to 'False' 2015-02-18 09:22:33 -05:00
Gormogon
ebf037f247 [PEP 8] Comparison to 'None' 2015-02-18 09:21:49 -05:00
Gormogon
1b7b999449 Quick Simplification 2015-02-18 09:13:39 -05:00
Gormogon
9419d07a98 Fixed Unclosed File 2015-02-18 09:09:15 -05:00
Gormogon
8e1480431a [PEP 263] Corrected Encoding Headers 2015-02-18 09:06:10 -05:00
Teo Mrnjavac
8ad507e379 Improve input validation in UsersPage.
CAL-190 #close
2015-02-17 20:20:20 +01:00
Philip Müller
ca5132f13e [python modules] use str.format() 2015-02-17 14:38:30 +01:00
Philip Müller
6906ba0b59 [bootloader] modifications
- use --target=i386-pc flag for grub installs
- use str.format()
2015-02-17 13:53:51 +01:00
demmm
294b030b99 correct swap in fallback too 2015-02-14 18:03:50 -05:00
Kevin Kofler
8c98aeb04a Make efiSystemPartition mount point configurable in partition.conf.
Copy the setting into the global storage. Make the EraseDiskPage in the
partition module and the grub and bootloader modules read it from there.
Do not hardcode /boot as the path anymore.

I set the default path to /boot/efi because I think that's the most
common setting. At least Fedora and Debian use that path. But we can
change the default setting if you think I'm wrong, as long as it remains
configurable.

There is no separate setting for efi_directory_firmware anymore. The EFI
firmwares expect that directory to always be in the "EFI" path in the
EFI System Partition. Distributions using /boot/efi actually have that
directory under /boot/efi/EFI.
2015-02-14 22:53:00 +01:00
Philip
92b6464f6e [grub] make efiDirectory(Firmware) hard-coded
- until we find a better solution
- efiDirectory should be managed by GlobalStorage
- efiDirectory is needed followed modules: bootloader, grub, partition
2015-02-14 13:45:46 +01:00
Philip
1f661a8b4b [partition] change efiPartition value to /boot
- we need to make it configurable not hard-coded
- some distributions need '/boot/efi' or '/boot/EFI', some work with '/boot'
2015-02-14 13:06:05 +01:00
Philip
75857971c4 [grub] replace chroot_call with check_chroot_call 2015-02-14 10:47:05 +01:00
Teo Mrnjavac
69c9d91aa6 Remove excessive debug output. 2015-02-13 14:03:55 +01:00
Teo Mrnjavac
8b753bd65f Reimplement ClearMountsJob without relying on PCM state. 2015-02-13 14:03:55 +01:00
Teo Mrnjavac
1eff260637 Add debug output to the ClearMountsJob code path. 2015-02-13 14:03:55 +01:00
Philip Müller
7ed0558471 [grub] add efi_directory_firmware 2015-02-10 18:30:07 +01:00
Philip Müller
1e1aa8151c [grub] make efi_directory configurable 2015-02-10 18:20:01 +01:00
Philip Müller
a6185027f7 [grub] create boot/efi dir
- in some cases this directory might not be present
2015-02-10 17:28:42 +01:00
Teo Mrnjavac
dabfb68a68 Avoid constructing more temporaries than necessary.
Thanks Winfried Kusgörd <w.kusgoerd@arcor.de> for the patch.
2015-02-09 19:16:47 +01:00
Teo Mrnjavac
42f0e653cc Install translator for pre-set locale if the UI language is not changed.
Thanks Winfried Kusgörd <w.kusgoerd@arcor.de> for the patch.
2015-02-09 19:16:46 +01:00
Teo Mrnjavac
d07dfc3eca More debug output in partition module. 2015-02-05 13:23:41 +01:00
Philip
35a235541f [finished] fix config file 2015-02-04 19:54:18 +01:00
Teo Mrnjavac
4e869b2211 Fix default restart command. 2015-02-04 11:26:24 +01:00
Teo Mrnjavac
047141a520 Update copyright header for file modified in 2015. 2015-02-02 12:01:20 +01:00
Philip Müller
49093c4b59 [grub] fix SyntaxError
<class 'SyntaxError'>
('invalid syntax', ('/usr/lib/calamares/modules/grub/main.py', 38, 76, ' chroot_call(["mkdir", "-p", "{!s}/EFI/boot".format(efi_directory)])])\n'))
2015-01-31 15:06:54 +00:00
Teo Mrnjavac
5b045dc72c Better window size constants for netbook displays. 2015-01-30 20:41:41 +01:00
Teo Mrnjavac
b5f9b5a66e New Finish view module, with restart capability. 2015-01-29 22:46:08 +01:00
Teo Mrnjavac
2782328036 Fix phase handling in ViewManager, to allow adding a Finished page. 2015-01-29 22:46:08 +01:00
Teo Mrnjavac
8a3ea7c8b1 Add lazy constructed ViewStepItems for Install and Finished. 2015-01-29 22:46:08 +01:00
Teo Mrnjavac
20bc34029d Copyright. 2015-01-29 22:46:07 +01:00
Teo Mrnjavac
a670de3035 Add currentPhase to ModuleManager. 2015-01-29 22:46:07 +01:00
Teo Mrnjavac
9d5ab4bf98 Add ViewStepItem ctor overload that takes a callback.
Needed when a ViewStep doesn't exist yet when the VSI is created.
2015-01-29 22:46:07 +01:00
Teo Mrnjavac
171248ad4f Add isBackEnabled checks to all ViewSteps. 2015-01-29 22:46:07 +01:00
Teo Mrnjavac
de406cef22 The Quit button is now Cancel, except on the last page. 2015-01-28 15:26:23 +01:00
Teo Mrnjavac
2cd9c7c0fa Improve urpmi call. Thanks Tomasz Paweł Gajc for the patch. 2015-01-27 18:38:11 +01:00
Daniel Hillenbrand
2b1a9c44fa grub: use uefi firmware workaround
Source: https://wiki.archlinux.org/index.php/GRUB#UEFI_firmware_workaround
2015-01-25 18:08:15 +01:00
Teo Mrnjavac
02641862c8 Copyright header. 2015-01-24 10:46:51 +01:00
Teo Mrnjavac
d0608ada90 Added loop property to Presentation in calamares.slideshow QML module. 2015-01-24 10:46:51 +01:00
Teo Mrnjavac
50a413d3c2 Only set the slideshow if the branding component has one. 2015-01-23 20:27:27 +01:00
Teo Mrnjavac
9622888d1d Load QML modules in a central place + dummy QML slideshow. 2015-01-23 20:24:45 +01:00
Teo Mrnjavac
14ddba70ef Initial commit for QML slideshow support. 2015-01-23 20:24:45 +01:00
Kevin Kofler
5c6a302112 packages: Ignore error code for "dnf remove".
Unfortunately, dnf treats it as an error if we try to remove a package
that already did not exist. This means that, e.g., if we try to remove
calamares itself, but calamares was not installed on the base image,
only in the overlay, we will fail with an error. So, as long as we do
not have a better solution, we ignore the exit code of "dnf remove"
entirely.

(yum does not show this behavior, it returns success when the package to
remove is already not installed.)
2015-01-19 03:06:12 +01:00
Kevin Kofler
412b959870 packages: Offline package removal for yum and dnf.
When removing packages with yum or dnf, pass the --disablerepo=*
(disable all online repositories) and -C (run from cache) arguments.
Package removals do not normally require network access, and this
measure saves time and bandwidth and prevents possible unnecessary
errors (e.g., if we do not have active network access, or if there is
some problem with the mirrors).
2015-01-19 02:57:29 +01:00
Ramon Buldó
854c19f305 Fix defaulting to first langauge in the list when language and country is not available.
- When it doesnt find a match for a language and a country, find the first value that only matches language.
- If this also fails, default to english.
2015-01-18 14:56:46 +01:00
demmm
2efd4aff5c Use swap mountpoint
Having swap set at "none" makes hibernating not possible.
AFAIK, no filesystem/partition sets mountpoint as "none" nor has any other besides swap an empty mountpoint at the stage where the fstab module is called.
Tests so far show this change creates a working fstab when using a swap partition.
2015-01-11 08:53:23 -05:00
Teo Mrnjavac
220ea34aeb Fix sgdisk call 2014-12-31 19:37:07 +01:00
Teo Mrnjavac
1f9e7b5ae9 Update main.py 2014-12-31 19:33:07 +01:00
Teo Mrnjavac
7638f80373 Use UUID in resume 2014-12-31 19:30:58 +01:00
Teo Mrnjavac
5742bbd074 Fix issue with partition selection preview not being updated. 2014-12-19 15:27:46 +01:00
Teo Mrnjavac
7cd382b39c Use osProber output in ReplacePage.
CAL-155 #close
2014-12-19 15:25:31 +01:00
Teo Mrnjavac
f8f005f53c Store osprober output in GlobalStorage. 2014-12-19 15:03:27 +01:00
Teo Mrnjavac
aa70a4b2dd Improve messages in Replace page.
Fixes CAL-155
2014-12-19 14:10:40 +01:00
Teo Mrnjavac
c21f426dee Don't rely on the activated signal in ReplacePage. 2014-12-19 13:53:05 +01:00
Teo Mrnjavac
a7b4c01ec0 GB -> GiB 2014-12-19 13:53:05 +01:00
Teo Mrnjavac
0da99d0866 Hook up ReplacePage in ChoicePage and PartitionViewStep. 2014-12-19 13:53:05 +01:00
Teo Mrnjavac
2f2ef73f20 Compile ReplacePage 2014-12-19 13:53:05 +01:00
Teo Mrnjavac
8f8e1ad6d4 New ReplacePage 2014-12-19 13:53:04 +01:00
Teo Mrnjavac
d3ea92ef3d Also in CalamaresUtilsGui 2014-12-19 13:53:04 +01:00
Teo Mrnjavac
2a5e8c8ee3 Add replace icon. 2014-12-19 13:53:04 +01:00
Daniel Hillenbrand
113812ad3d grub: add --target=i386-pc for bios systems
From Arch wiki:
--target=i386-pc instructs grub-install to install for BIOS systems only. It is recommended
to always use this option to remove ambiguity in grub-install.
2014-12-09 19:21:52 +00:00
Teo Mrnjavac
eb748cca8e Merge pull request #180 from calamares/displaymanager-cleanups
displaymanager: Various fixes and cleanups.
2014-12-06 10:07:54 +01:00
Kevin Kofler
75adfa03fc locale: timezonewidget: Use the system default font.
Don't hardcode the Cantarell font.
2014-12-06 00:15:55 +01:00
Kevin Kofler
2955c0a5a8 displaymanager: Also look for display managers in /usr/sbin. 2014-12-05 22:20:54 +01:00
Kevin Kofler
9b75999706 keyboard: Preselect the current keyboard layout variant. 2014-12-05 02:25:08 +01:00
Kevin Kofler
3d9116b80e grub: Add an optional efiBootloaderId setting.
If the efiBootloaderId is set, it is used as the --bootloader-id when
installing grub-efi. The rationale is pretty much the same as for the
Gummiboot case.

If the setting is not used, the --bootloader-id is determined from the
branding's bootloaderEntryName (as before).
2014-12-05 01:03:21 +01:00
Kevin Kofler
5209af0182 unpackfs: Fix error in list_excludes.
I accidentally removed the initialization of lst.
2014-12-05 00:27:59 +01:00
Kevin Kofler
e6d65d047b Fix unpackfs wrongly excluding separately-mounted partitions.
mount: Remember the extraMounts (and extraMountsEfi, if applicable) in
the global storage (as "extraMounts").

unpackfs: Read the extra mounts from the global storage to generate the
exclude list instead of trying to detect it from the "mount" command's
output, because the latter also includes normally-mounted destination
partitions.

This makes having separate partitions for non-/ mountpoints work again.
2014-12-05 00:17:33 +01:00
Kevin Kofler
20e6cd4ab0 grub/test.yaml: Simulate bootloaderEntryName instead of shortProductName.
That is what grub/main.py now expects in the global storage.
2014-12-05 00:08:08 +01:00
Kevin Kofler
727db05fdf grub: Use bootloaderEntryName instead of shortProductName.
Use bootloaderEntryName instead of shortProductName as the
--bootloader-id.
2014-12-04 23:08:27 +01:00
Teo Mrnjavac
3984bf0634 Merge pull request #156 from calamares/grub-efi-support-rfe-110
grub: Add EFI support (improved).
2014-12-02 14:24:41 +01:00
Kevin Kofler
b411a66baf displaymanager: Make the settings follow the naming convention.
Make the defaultDesktopEnvironment and desktopFile settings in
displaymanager.conf follow the naming convention used in the other .conf
files.
2014-12-01 03:30:42 +01:00
Kevin Kofler
a54067f709 displaymanager: Don't run xdg-icon-resource and update-desktop-database.
Don't run xdg-icon-resource and update-desktop-database in the basic
setup for KDM. These tools have absolutely nothing to do with KDM. KDM
does not ship any icons in the hicolor theme, nor a .desktop file (let
alone one that handles any MIME type, the only case in which
update-desktop-database is needed).

I know the original shell script from Manjaro called these when setting
up KDM, but this is really the wrong place. If you need to call these,
they need to go into another module, and you also have to call them
independently of the selected display manager.
2014-12-01 03:25:44 +01:00
Kevin Kofler
a0bb108486 displaymanager: Fix the use of getent in the basic setup.
This also matches what the original shell script from Manjaro did.
2014-12-01 03:20:55 +01:00
Kevin Kofler
90a25fdc62 displaymanager: Disable basic setup by default.
Add a "basicSetup" boolean setting and default to leaving this kind of
setup operations to the distribution packages (i.e., to
"basicSetup: false").
2014-12-01 03:14:33 +01:00
Kevin Kofler
95e39e05fa displaymanager: Use libcalamares.utils.debug instead of print.
Use libcalamares.utils.debug instead of print to output a debugging
message during SDDM autologin setup.
2014-12-01 03:03:20 +01:00
Kevin Kofler
524bcc15ea displaymanager: Fix default session setup for GDM.
The default session setting in GDM is per user. Therefore, it is not of
much use to set it for the gdm user. (Nobody will log in as "gdm".)
Unfortunately, there seems to be no systemwide setting for the default
session, the AccountsService provides no such setting, and GDM just
hardcodes the fallback to use if it is not set in the AccountsService.
(GDM first tries "gnome", and if that is not available, it picks the
first session in the alphabet.)

Therefore, the best we can do right now is to set the default session
for the autoLoginUser. This is the case where it matters the most
anyway. We would also need the username of a non-autologin user in the
global storage to do any better.
2014-12-01 03:01:39 +01:00
Kevin Kofler
5e14080891 displaymanager: Remove lightdm gdmflexiserver hack.
Remove the hack that symlinks /usr/lib/lightdm/lightdm/gdmflexiserver as
/usr/bin/gdmflexiserver.

Upstream LightDM removed their gdmflexiserver implementation in 1.9.4 in
2013:
http://bazaar.launchpad.net/~lightdm-team/lightdm/trunk/revision/1841

In addition, LightDM was already adding the path containing its
gdmflexiserver implementation to PATH, so there was no use symlinking it
into /usr/bin, potentially overwriting the original version from GDM.
This must have been a workaround for an ancient LightDM version that
didn't even do that.

And finally, the hardcoded /usr/lib/lightdm/lightdm/gdmflexiserver path
was wrong on Fedora to begin with (we had used
/usr/libexec/lightdm/gdmflexiserver, but now the file is completely gone
because upstream removed it).
2014-11-29 17:21:36 +01:00
Kevin Kofler
e78418b693 displaymanager: Don't error if a DM is not installed.
If a display manager is in the list, but not installed, do not return an
error message, but only print a debugging message and proceed.

This allows distributions that support multiple display managers to list
them all, independently of what the concrete live image will be using.
2014-11-29 17:14:17 +01:00
Kevin Kofler
2783f98615 displaymanager: Add my copyright to main.py.
I have already written a bunch of code in there.
2014-11-29 16:56:43 +01:00
Kevin Kofler
a525de8f11 displaymanager: Fix typos in displaymanager.conf. 2014-11-29 16:56:16 +01:00
Kevin Kofler
210685a15d mount: Fix /run mount.
It turns out that I had messed this up. Issue #173 was addressed anyway
by the followup fix to unpackfs to only exclude the directories that are
actually mounted (which does work), but with this fix, /run is now
handled as intended.

PS: Should the mount job not check the return value of
libcalamares.utils.mount instead of failing silently?
2014-11-29 05:07:40 +01:00
Manjaro Linux
eee54241d1 [umount] use lazy switch
in some rare cases you can't unmount your mountpoints. As it is the last step we can use lazy switch to force unmounting.
2014-11-28 22:32:38 +01:00
Manjaro Linux
0a6053dd82 Fix syntax error
This fixes e65d9c4f. Setting a variable can't end with :
This also fixes the issue with referenced before assignment
2014-11-28 22:12:19 +01:00
Daniel Hillenbrand
722e87fd00 packages: add --noconfirm arg for pacman, also remove unneeded deps 2014-11-28 20:54:35 +01:00
Daniel Hillenbrand
22a9fd86df localecfg: only restore locale.gen.bak if available 2014-11-28 20:05:54 +01:00
Kevin Kofler
6f78ecab3b displaymanager: Fix the default_desktop_environment option.
Do not use a YAML list when only a single entry actually works. (It was
just silently using the last one.)

Create the default_desktop_environment DesktopEnvironment tuple. Before,
the setting was silently ignored altogether.
2014-11-28 18:51:08 +01:00
Kevin Kofler
e65d9c4f4d Revert "Fix autologin-routine"
This reverts commit 9c799b32e9.

This was already right before. default_desktop_environment.desktop_file is not a
variable, it's a field of a variable. This commit is not valid Python:
"SyntaxError: invalid syntax".
2014-11-28 18:40:49 +01:00
Manjaro Linux
9c799b32e9 Fix autologin-routine
default_desktop_environment.desktop_file needs to been passed actually.
2014-11-28 18:36:18 +01:00
Kevin Kofler
36488583f7 unpackfs: Add a trailing '/' to the excludes. 2014-11-28 18:33:31 +01:00
Kevin Kofler
f0203a072c unpackfs: Automatically detect the exclude list from the mounts.
See issue #173.
2014-11-28 18:29:57 +01:00
Manjaro Linux
6a70029198 Fix commit d5d74fbdcd
We need to pass default_desktop_environment if we won't use automatic desktop detection.
2014-11-28 18:27:16 +01:00
Kevin Kofler
96d863b22b mount: Mount /run as a tmpfs in the rootMountPoint.
In particular, this also ensures that the directory gets created on the
target system so things can be mounted into it.

Fixes #173.
2014-11-28 18:03:58 +01:00
Teo Mrnjavac
6e98f63bf3 Merge pull request #171 from calamares/machineid-module
Add a machineid module.
2014-11-28 16:52:08 +01:00
Teo Mrnjavac
e85b2d164f Hook up ClearMountsJob in PartitionCoreModule. 2014-11-28 15:52:18 +01:00
Teo Mrnjavac
1de7b55c3b ClearMountsJob: umount all partitions before making changes to a device.
Fixes #169
2014-11-28 15:52:18 +01:00
Manjaro Linux
ddc7a6057d Update displaymanager.conf
Add an example to force Plasma5 desktop (commented out)
2014-11-28 09:11:27 +01:00
Manjaro Linux
d5d74fbdcd Add option to force desktop environment
This adds the function to force a desktop environment. We might think to add it also to global storage.
2014-11-28 09:06:33 +01:00
Manjaro Linux
b4b409243f [displaymanager] make openbox session have "less priority".
Fixes settings Session= when both lxqt and openbox are installed, it will first find lxqt an use put lxqt.desktop
This fixes also #170
2014-11-28 08:23:46 +01:00
Kevin Kofler
587e76aa56 machineid: Add modules.desc. 2014-11-27 22:18:34 +01:00
Kevin Kofler
5f99d51f80 machineid: Add missing import. 2014-11-27 21:11:56 +01:00
Kevin Kofler
0b0868822d Add a machineid module.
The module creates /etc/machine-id and/or /var/lib/dbus/machine-id. By
default, it is enabled and creates both files, making the latter a
symlink to the former.
2014-11-27 21:08:50 +01:00
Kevin Kofler
8591dcf731 unpackfs: Make rsync preserve everything, exclude special paths.
Add the following flags to rsync:
* `-H, --hard-links            preserve hard links`
* `-A, --acls                  preserve ACLs (implies --perms)`
* `-X, --xattrs                preserve extended attributes`
(i.e., the preservation options not already implied by -a).

Also exclude the special paths that do not make sense to rsync, because
reading the extended attributes from those can cause errors, at least
with SELinux enabled.

This fixes installation of Fedora systems with SELinux enabled.
2014-11-27 18:36:46 +01:00
Teo Mrnjavac
0c3f88077d More debug output in CreatePartitionTableJob 2014-11-27 14:22:00 +01:00
Rohan Garg
ac5cecee19 Clean up unused packages after installation
Fixes #166.
2014-11-27 11:03:12 +01:00
Teo Mrnjavac
5b864c5dc3 Make networkmanager service example optional. 2014-11-27 10:57:09 +01:00
Teo Mrnjavac
5bb7755925 Remove unnecessary debug output. 2014-11-26 19:10:17 +01:00
Teo Mrnjavac
52a1a28696 Fix focus handling in Keyboard page. 2014-11-26 18:56:09 +01:00
Teo Mrnjavac
5fdca37db5 Focus fix in Locale page. 2014-11-26 18:52:44 +01:00
Teo Mrnjavac
472590669f Adding stuff to GlobalStorage works much better it is actually executed. 2014-11-26 18:47:46 +01:00
Teo Mrnjavac
0738af04ca Reimplement onActivate in UsersViewStep for focus handling. 2014-11-26 18:41:35 +01:00
Teo Mrnjavac
e258f0b5a9 Use onActivate instead of focusInEvent for page focus control. 2014-11-26 18:41:35 +01:00
demmm
86c49fbc89 Use correct entry from global_storage 2014-11-26 12:15:39 -05:00
Teo Mrnjavac
925632800b Debug output for lcLocale 2014-11-26 17:47:06 +01:00
Kevin Kofler
b79618aa15 locale: Move the string processing out of the loop. 2014-11-26 17:12:18 +01:00
Teo Mrnjavac
88dfd7fa10 Fix system locale string + allow 3 letter language codes. 2014-11-26 11:30:06 +01:00
Kevin Kofler
e7d0f205a4 locale: Support distributions without locale-gen.
If /etc/locale.gen (or the configured localeGenPath) does not exist,
assume that all the supported languages are already built into the
locale archive, and retrieve the list from "locale -a".

The list will then contain lines with only the locale rather than
locale + space + encoding, but that should not affect any of the rest of
the code. UTF-8 locales will still contain the string "UTF-8" (as part
of the ".UTF-8" suffix), we will not write a locale.gen file if we don't
have locale-gen, and everything else just strips away the encoding.
2014-11-25 20:03:37 +01:00
Kevin Kofler
440b38addf locale: Optimize guessLCLocale by moving function calls out of loops. 2014-11-25 19:44:16 +01:00
Kevin Kofler
bcbe5103b9 locale: Don't assume 2-letter language codes.
Some languages have 3-letter codes. So instead of splitting the output
of QLocale::name, use QLocale::language and the static
QLocale::languageToString.
2014-11-25 19:41:01 +01:00
Teo Mrnjavac
d2288d0961 Write lc locale setting from GlobalStorage. 2014-11-25 17:56:38 +01:00
Teo Mrnjavac
6049267cf6 Load lcLocale value into GlobalStorage. Also allow localeGenPath setting
in locale.conf.
2014-11-25 17:43:12 +01:00
Teo Mrnjavac
2ca58c6f91 Massive cleanup in LocalePage. Add LCLocale setting, with autodetect. 2014-11-25 17:41:27 +01:00
Teo Mrnjavac
100f08518b Build LCLocale dialog. 2014-11-25 17:40:38 +01:00
Teo Mrnjavac
ddfb8dfbc5 Add relevant strings. 2014-11-25 17:40:24 +01:00
Teo Mrnjavac
6cb072acc4 New LC LOCALE picker dialog. 2014-11-25 17:40:24 +01:00
Teo Mrnjavac
f72f1ae5ca README.md for branding. 2014-11-25 17:40:24 +01:00
Teo Mrnjavac
da0afd6e55 Better error reporting in CreatePartitionTableJob.cpp 2014-11-23 11:46:45 +01:00
Teo Mrnjavac
0d64c849fd Unbreak build. Sorry. 2014-11-20 17:21:10 +01:00
Teo Mrnjavac
0d89ba761a Uic in GreetingPage. 2014-11-20 10:04:10 +01:00
Teo Mrnjavac
01c3244396 Merge pull request #155 from calamares/fix-issue-128
grubcfg: Create /etc/default/grub if missing.
2014-11-19 17:20:06 +01:00
Kevin Kofler
ab4d31f1a6 bootloader: Allow overriding the bootloaderEntryName setting.
Allow setting bootloaderEntryName in bootloader.conf. If not specified
there, the setting will be taken from branding.desc.
2014-11-19 17:01:02 +01:00
Kevin Kofler
462819060b branding: Add a dedicated bootloaderEntryName setting.
Use it in the bootloader and grubcfg modules instead of
shortProductName.
2014-11-19 16:50:15 +01:00
Kevin Kofler
4df754ef29 Move detect_firmware_type to the prepare module.
This avoids the duplication between the bootloader and grub modules.
2014-11-19 13:58:18 +01:00
Kevin Kofler
930a49677a grub/test.yaml: Define the shortProductName. 2014-11-18 20:56:41 +01:00
Kevin Kofler
132628c175 grub: Add EFI support.
Fixes #110.

This is based on Daniel Hillenbrand's submissions, but it makes the same
adjustments already done in the bootloader module that's already merged:

* Put detect_firmware_type into the grub module itself until a better
  place is found.

* Get the distribution name from the branding configuration and use the
  file_name_sanitizer on it.

* Get the grub-install executable name from the module configuration.

It also fixes a Python syntax error in the original submission.
2014-11-18 20:51:26 +01:00
Teo Mrnjavac
fb37a0bf2f Fix focus in UsersPage. 2014-11-18 15:57:07 +01:00
Kevin Kofler
00604a8bca PythonHelper: Add support for bool.
Convert Python bool type from/to C++/QVariant bool (QVariant::Bool) in
PythonHelper::variantToPyObject and PythonHelper::variantFromPyObject.

This fixes the "override" option and any booleans in the "defaults" list
in grubcfg.conf.
2014-11-18 05:34:01 +01:00
Kevin Kofler
1499963920 grubcfg: Create /etc/default/grub if missing.
Also adds a grubcfg.conf with the following settings:

* overwrite: If set to true, always creates /etc/default/grub from
  scratch even if the file already existed. If set to false, edits the
  existing file instead. The default is "false".

* defaults: Default entries to write to /etc/default/grub if it does not
  exist yet or if we are overwriting it. Note that in addition,
  GRUB_CMDLINE_LINUX_DEFAULT and GRUB_DISTRIBUTOR will always be
  written, with automatically detected values. The default in the code
  is empty. The shipped grubcfg.conf currently reproduces the default
  settings from the Fedora installer Anaconda.

Fixes #128.
2014-11-18 04:33:39 +01:00
Kevin Kofler
d5b95d79e5 grubcfg: Handle the case where expected lines are missing.
Check whether we actually had a GRUB_CMDLINE_LINUX_DEFAULT and a
GRUB_DISTRIBUTOR line, add any of them if it was missing.
2014-11-18 03:40:47 +01:00
Kevin Kofler
f58cca1bb2 grubcfg: Don't error if /etc/default is missing.
It is created later in the function.
2014-11-18 03:38:20 +01:00
Kevin Kofler
5cae4e0632 partition: Don't assume that an unknown OS is Windows 7.
Don't talk about "Windows 7 programs, documents, photos, music, and
other files" when we actually have no idea what the other operating
system is or when there are multiple ones.
2014-11-18 02:48:58 +01:00
Kevin Kofler
75921ec125 bootloader/test.yaml: Define the shortProductName. 2014-11-16 15:05:00 +01:00
Kevin Kofler
48eca95a26 grubcfg: Use shortProductName.
This is particularly useful if the full product name contains
"GNU/Linux" or "Linux", because e.g. "Generic GNU/Linux GNU/Linux" does
not make sense.
2014-11-16 05:18:11 +01:00
Kevin Kofler
e420341ba6 bootloader: Use shortProductName.
This is particularly useful if the full product name contains
"GNU/Linux" or "Linux", because e.g. "Generic GNU/Linux GNU/Linux" does
not make sense.
2014-11-16 05:17:06 +01:00
Kevin Kofler
538b457ea8 branding: Add a shortProductName entry.
This is what the bootloader modules really want, and it was also missing
for consistency with the other branding entries.
2014-11-16 05:14:57 +01:00
Kevin Kofler
cde7356f0d grubcfg: Quote the GRUB_DISTRIBUTOR value. 2014-11-16 04:58:00 +01:00
Kevin Kofler
76450b44a3 bootloader: Ensure that the file names are valid.
Change any '/' slashes to '-' dashes. Also change spaces to underscores
while we are at it.
2014-11-16 04:56:11 +01:00
Kevin Kofler
8f5b0585cb grubcfg: Get the distribution name from the branding.
Remove the redundant "distributor" setting from grubcfg.conf (and the
entire grubcfg.conf file that has no settings left for now).
2014-11-16 04:33:27 +01:00
Kevin Kofler
3cf5baadc1 bootloader: Get the distribution name from the branding.
Remove the redundant "distribution" setting from bootloader.conf.
2014-11-16 04:26:51 +01:00
Kevin Kofler
98f99fa5bf Introduce and use a Calamares::Branding::setGlobals method.
The method creates a map called "branding" in the global storage, and
inserts an entry for each of the branding strings. This makes the
branding information accessible to the Python modules.

The method is called by CalamaresApplication::initJobQueue.

This is necessary because the Branding class is in libcalamaresui, so
Python modules cannot access it directly.
2014-11-16 04:19:53 +01:00
Kevin Kofler
7478c1266b Point the lib/calamares/libcalamares.so symlink to the versioned so.
Point the lib/calamares/libcalamares.so symlink for the Python modules
directly to the versioned lib/libcalamares.so.VERSION library rather
than to the lib/libcalamares.so symlink. This allows distributions to
install the lib/libcalamares.so symlink to a development package and
only ship lib/libcalamares.so.VERSION and lib/calamares/libcalamares.so
in the runtime package. It is also marginally faster (because only one
level of symlinks has to be resolved instead of two).

(I know this works because I have been manually fixing up this symlink
in the Fedora specfile so far.)
2014-11-14 12:30:56 +01:00
Teo Mrnjavac
78de47eb8c Retranslate Users module. 2014-11-13 17:42:02 +01:00
Teo Mrnjavac
ecc2d27a18 Merge pull request #151 from calamares/localecfg
adding localecfg
2014-11-13 17:34:07 +01:00
Rohan Garg
60eb9cfae6 Use the correct file to write things into 2014-11-13 17:08:46 +01:00
Teo Mrnjavac
0f9496babe Finish up retranslation in PreparePage. 2014-11-13 16:52:32 +01:00
Teo Mrnjavac
280baf7326 Move PrepareCheckWidget text out of ctor. 2014-11-13 16:52:32 +01:00
Teo Mrnjavac
9b2dfdf1ec Use Retranslator in Prepare module (partial). 2014-11-13 16:52:32 +01:00
demmm
ff1383d7f5 adding localecfg
locale hardcoded to en_US until local globalstorage is available
run pep8 on bootloader main.py, plain switch from subprocess to chroot_call fails for gummiboot call
2014-11-12 23:10:20 -05:00
Kevin Kofler
7e1ec78d35 grub, bootloader: Make the grub-* and /boot/grub names configurable.
Some distributions (e.g. Fedora) use grub2-* (resp. /boot/grub2/) names.

Fixes #123.
2014-11-13 00:19:24 +01:00
Rohan Garg
d9187c25c7 check_chroot_call does not actually return a error code, use chroot_call
instead.

Thanks to Kevin Kofler for pointing this out.
2014-11-12 18:54:26 +01:00
Rohan Garg
1f6feb9417 Make sure we return a message when dracut or initramfs fail 2014-11-12 17:05:06 +01:00
Teo Mrnjavac
388363c1f2 Merge pull request #148 from calamares/gummibot
make gummiboot kernel/distro agnostic
2014-11-12 12:17:32 +01:00
Teo Mrnjavac
faa77d7f5e Use Retranslator in Partitioning module. 2014-11-11 17:09:33 +01:00
Teo Mrnjavac
8575240b95 Capture by-val in Retranslator macro. 2014-11-11 17:05:56 +01:00
Teo Mrnjavac
688cc8f798 Use Retranslator in KeyboardPage. 2014-11-11 15:46:49 +01:00
Rohan Garg
fb92697a93 Make sure our return value is correct 2014-11-11 15:33:03 +01:00
Teo Mrnjavac
99114e04d8 Merge pull request #147 from kkofler/fix-issue-31
keyboard: Write the keyboard model and layout settings to the root mount point.
2014-11-11 15:23:07 +01:00
Teo Mrnjavac
1d9535053a Use Retranslator in GreetingPage. 2014-11-11 15:17:46 +01:00
Teo Mrnjavac
e5c3888be2 Allow multiple CALAMARES_RETRANSLATE blocks in the same widget. 2014-11-11 15:12:44 +01:00
Teo Mrnjavac
945b59748a Add RETRANSLATE macro to CalamaresUtils::Retranslator. 2014-11-11 15:12:44 +01:00
Kevin Kofler
3e9de2a05a keyboard: Allow absolute paths for the xOrgConfFileName setting.
This should ensure it works on all distributions.
2014-11-11 14:59:30 +01:00
Rohan Garg
2c8aa950a3 Update README.md 2014-11-11 14:56:34 +01:00
Kevin Kofler
86d51b4a9c keyboard: Pass settings directly, not through GlobalStorage.
Pass the settings from keyboard.conf directly to the
SetKeyboardLayoutJob rather than through GlobalStorage.
2014-11-11 14:37:05 +01:00
Kevin Kofler
2fec6e3202 keyboard: kbd-model-map: Add link to the original.
In particular, to the upstream git log for the file.
2014-11-11 14:04:21 +01:00
Kevin Kofler
bfdcf0dbc0 keyboard: Coding style fixes. 2014-11-11 13:57:08 +01:00
Teo Mrnjavac
6f3898a73d Use Retranslator in LocalePage. 2014-11-11 12:44:32 +01:00
Teo Mrnjavac
08b90e975b Add retranslator class to CalamaresUtils. 2014-11-11 12:44:32 +01:00
demmm
53da965bb1 make gummiboot kernel/distro agnostic
add hibernate option to .conf
create a fallback entry in gummiboot menu
re-add firmware to globalstorage, simplifies this module, will be needed to add more OS to gummi
2014-11-11 00:13:15 -05:00
Kevin Kofler
4f9f7d7858 keyboard: Write the keyboard model and layout settings to the root mount point.
This is implemented as a new SetKeyboardLayout job that does the work.

Portions of the code are adapted from systemd-localed's source code,
which is under a compatible license (LGPLv2.1+, can be converted to our
GPLv3+ license). I ported it from C to to C++/Qt and made some minor
tweaks to the mapping logic (from X11 to vconsole layouts) though.

Fixes #31.

Tested on a Fedora Remix (Kannolo 21) with the default module settings
(finds the converted X11 keymaps for the virtual console) and with
convertedKeymapPath: "" (does the legacy keymap conversion as expected).
2014-11-11 04:48:03 +01:00
Rohan Garg
2b26be4162 Fix copyright holder 2014-11-10 15:45:40 +01:00
Rohan Garg
ce96b13c0d Add a initramfs module that updates the initramfs post install 2014-11-10 15:42:31 +01:00
Teo Mrnjavac
dec452f9b5 Make LocalePage retranslatable. 2014-11-10 14:56:29 +01:00
Teo Mrnjavac
2617ef369e Use retranslate pattern in GreetingPage. 2014-11-10 14:36:18 +01:00
Teo Mrnjavac
9e9a922498 Language selector + focus fix in GreetingPage. 2014-11-10 12:40:00 +01:00
Teo Mrnjavac
78075d7412 Use the new CalamaresUtils::installTranslator. 2014-11-10 12:26:39 +01:00
Teo Mrnjavac
058be8beb2 Ensure viewpages will have focus. To choose a focused widget inside it,
a viewpage should override void focusInEvent( QFocusEvent* ).
2014-11-10 12:26:03 +01:00
Teo Mrnjavac
8b343ace4a QTranslator switching in CalamaresUtils. 2014-11-10 12:26:03 +01:00
Teo Mrnjavac
fc4ce3d23b Make progress view unfocusable. 2014-11-10 12:26:03 +01:00
Teo Mrnjavac
0849a5983c Actually build translations qrc. 2014-11-07 17:58:47 +01:00
Rohan Garg
d3d9ea130c Fix build, last merge was a bit broken 2014-11-07 16:06:14 +01:00
Teo Mrnjavac
294d6a34ca Merge pull request #142 from shadeslayer/github_master
Make sure we also write to the /etc/hosts file
2014-11-07 15:23:52 +01:00
Rohan Garg
7a2fe5e647 Make sure we also write to the /etc/hosts file 2014-11-07 15:19:55 +01:00
Manjaro Linux
36e8ed5f46 adjust LXDE startup scripts
- add LXQT support
- add LXDE 0.5 changes in Archlinux
2014-11-07 14:04:15 +01:00
Teo Mrnjavac
7c89613332 Merge pull request #140 from kkofler/detect-sddm-session-type
displaymanager: Detect SDDM session type
2014-11-07 11:50:28 +01:00