Commit Graph

575 Commits

Author SHA1 Message Date
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
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
b5f9b5a66e New Finish view module, with restart capability. 2015-01-29 22:46:08 +01:00
Teo Mrnjavac
171248ad4f Add isBackEnabled checks to all ViewSteps. 2015-01-29 22:46:07 +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
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
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