25 Commits (f080e3ccedcabdf310c8a9f58238d4372798e048)

Author SHA1 Message Date
Gormogon beb911863b A little more PEP 10 years ago
Teo Mrnjavac 8625b8c5a9 Fix up regex in grubcfg to work with single quotes. 10 years ago
Teo Mrnjavac debd4bc352 Fix regexp in grubcfg.
CAL-205 #comment Done some fixing, please retest when you can.
10 years ago
Teo Mrnjavac a977b1ea40 Make sure we write the kernel config line anyway. 10 years ago
Teo Mrnjavac 41e7a9ae3c Preserve kernel parameters that aren't handled by grubcfg. 10 years ago
Teo Mrnjavac 5a24916fd0 Make which plymouth execute in chroot. 10 years ago
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.
10 years ago
Philip 06be842cfa [grubcfg] add python doc strings 10 years ago
Gormogon 113d9db7cb Python Better Docstrings 10 years ago
Gormogon d8df3d7a59 [PEP 8] General Style Part 1 10 years ago
Gormogon 8e1480431a [PEP 263] Corrected Encoding Headers 10 years ago
Philip Müller ca5132f13e [python modules] use str.format() 10 years ago
Teo Mrnjavac 01c3244396 Merge pull request #155 from calamares/fix-issue-128
grubcfg: Create /etc/default/grub if missing.
11 years ago
Kevin Kofler 462819060b branding: Add a dedicated bootloaderEntryName setting.
Use it in the bootloader and grubcfg modules instead of
shortProductName.
11 years ago
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.
11 years ago
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.
11 years ago
Kevin Kofler f58cca1bb2 grubcfg: Don't error if /etc/default is missing.
It is created later in the function.
11 years ago
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.
11 years ago
Kevin Kofler cde7356f0d grubcfg: Quote the GRUB_DISTRIBUTOR value. 11 years ago
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).
11 years ago
Rohan Garg b8b2c2b735 Properly break lines in Python 11 years ago
Rohan Garg eed387f7a4 Make sure to check things exist before actually modifying them
This fixes crashes when a system does not have squashfs-tools or
a grub dir does not exist.
11 years ago
Philip 82237d1bd1 grubcfg: group variables 11 years ago
Philip 0c4e8863cf grubcfg: set swap_uuid variable 11 years ago
Philip 5b336fc3c5 New grubcfg module, ported from Thus. 11 years ago