24 Commits (8e1480431aa754a78d24d9ffc70487cbd6405713)

Author SHA1 Message Date
Gormogon 8e1480431a [PEP 263] Corrected Encoding Headers 11 years ago
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.
11 years ago
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
11 years ago
Philip 75857971c4 [grub] replace chroot_call with check_chroot_call 11 years ago
Philip Müller 7ed0558471 [grub] add efi_directory_firmware 11 years ago
Philip Müller 1e1aa8151c [grub] make efi_directory configurable 11 years ago
Philip Müller a6185027f7 [grub] create boot/efi dir
- in some cases this directory might not be present
11 years ago
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'))
11 years ago
Daniel Hillenbrand 2b1a9c44fa grub: use uefi firmware workaround
Source: https://wiki.archlinux.org/index.php/GRUB#UEFI_firmware_workaround
11 years ago
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.
11 years ago
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).
11 years ago
Kevin Kofler 727db05fdf grub: Use bootloaderEntryName instead of shortProductName.
Use bootloaderEntryName instead of shortProductName as the
--bootloader-id.
11 years ago
Kevin Kofler 4df754ef29 Move detect_firmware_type to the prepare module.
This avoids the duplication between the bootloader and grub modules.
11 years ago
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.
11 years ago
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.
11 years ago
Aurélien Gâteau 6131ed212a Import check_chroot_call separately 11 years ago
Aurélien Gâteau 43c88567af Use check_chroot_call 11 years ago
Aurélien Gâteau d175d199eb Rough chroot call failure check 11 years ago
Teo Mrnjavac a311770e2f Use libcalamares.utils.chroot_call in grub jobmodule. 11 years ago
Aurélien Gâteau 0946789f9e Move mounting of special partitions from grub to mount 11 years ago
Teo Mrnjavac 1c984c7bf9 PEPify grub 11 years ago
Teo Mrnjavac 4fc2efb7fa Correctly report exit status from Python modules. 11 years ago
Teo Mrnjavac beafcd9cc4 Consistency: calamares_main ==> run; global_storage => globalStorage 12 years ago
Aurélien Gâteau 0f23b8ad5c Add basic grub module. Not enabled for now because it requires a rootfs to work
Fixes #26
12 years ago