Philip
06be842cfa
[grubcfg] add python doc strings
2015-02-25 14:49:23 +01:00
Gormogon
113d9db7cb
Python Better Docstrings
2015-02-25 14:49:23 +01:00
Gormogon
d8df3d7a59
[PEP 8] General Style Part 1
2015-02-18 09:37:03 -05:00
Gormogon
8e1480431a
[PEP 263] Corrected Encoding Headers
2015-02-18 09:06:10 -05:00
Philip Müller
ca5132f13e
[python modules] use str.format()
2015-02-17 14:38:30 +01:00
Teo Mrnjavac
01c3244396
Merge pull request #155 from calamares/fix-issue-128
...
grubcfg: Create /etc/default/grub if missing.
2014-11-19 17:20:06 +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
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 .
2014-11-18 04:33:39 +01:00
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.
2014-11-18 03:40:47 +01:00
Kevin Kofler
f58cca1bb2
grubcfg: Don't error if /etc/default is missing.
...
It is created later in the function.
2014-11-18 03:38:20 +01:00
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.
2014-11-16 05:18:11 +01:00
Kevin Kofler
cde7356f0d
grubcfg: Quote the GRUB_DISTRIBUTOR value.
2014-11-16 04:58:00 +01:00
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).
2014-11-16 04:33:27 +01:00
Rohan Garg
b8b2c2b735
Properly break lines in Python
2014-10-16 19:00:44 +02:00
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.
2014-10-14 15:09:38 +02:00
Philip
82237d1bd1
grubcfg: group variables
2014-08-19 15:46:36 +02:00
Philip
0c4e8863cf
grubcfg: set swap_uuid variable
2014-08-19 15:28:12 +02:00
Philip
5b336fc3c5
New grubcfg module, ported from Thus.
2014-08-19 14:57:22 +02:00