Adding in a default timeout to systemd-boot, but only if no other timeout was specified. Also fixes a regression bug with line endings in the loader configuration.
This commit is contained in:
parent
3edb33c439
commit
4b6a7514c9
|
|
@ -397,8 +397,11 @@ class Installer():
|
||||||
for line in loader_data:
|
for line in loader_data:
|
||||||
if line[:8] == 'default ':
|
if line[:8] == 'default ':
|
||||||
loader.write(f'default {self.init_time}\n')
|
loader.write(f'default {self.init_time}\n')
|
||||||
|
elif line[:8] == '#timeout' and 'timeout 5' not in loader_data:
|
||||||
|
# We add in the default timeout to support dual-boot
|
||||||
|
loader.write(f"{line[1:]}\n")
|
||||||
else:
|
else:
|
||||||
loader.write(f"{line}")
|
loader.write(f"{line}\n")
|
||||||
|
|
||||||
## For some reason, blkid and /dev/disk/by-uuid are not getting along well.
|
## For some reason, blkid and /dev/disk/by-uuid are not getting along well.
|
||||||
## And blkid is wrong in terms of LUKS.
|
## And blkid is wrong in terms of LUKS.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue