Commit Graph

101 Commits

Author SHA1 Message Date
Gormogon
113d9db7cb Python Better Docstrings 2015-02-25 14:49:23 +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
Philip
6ed8b1e4a4 [bootloader] actually use get_kernel_line() 2015-02-20 18:36:20 +01:00
Gormogon
7989267e81 Unused Imports 2015-02-20 09:24:05 -05: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
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
568dd9422c [bootloader] simplify code
- remove unneeded double code
- add kernel lines to config
2015-02-19 20:46:02 +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
Gormogon
5c1ee7bbcb [PEP 8] General Style Part 3 2015-02-18 10:03:57 -05:00
Gormogon
8e1480431a [PEP 263] Corrected Encoding Headers 2015-02-18 09:06:10 -05: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
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
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
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
75921ec125 bootloader/test.yaml: Define the shortProductName. 2014-11-16 15:05:00 +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
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
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
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
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
Teo Mrnjavac
97867af2aa Autopep8 pass on bootloader module. 2014-10-16 21:08:18 +02:00
demmm
58bc7c86c1 remove globalstorage entry for efi 2014-10-14 10:47:21 -04:00
demmm
7a310ef27b rename grub to bootloader calls 2014-10-12 18:21:28 -04:00
demmm
c1a1399958 adding new bootloader job
options are to use grub for BIOS, gummiboot for efi
set extra mountpoint when efi is found
2014-10-12 13:45:02 -04:00