Commit Graph

754 Commits

Author SHA1 Message Date
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