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