chore: set GRUB_TIMEOUT to 0 for automatic partitioning
This commit is contained in:
parent
9449804070
commit
6d243ee7f6
1 changed files with 3 additions and 0 deletions
|
@ -262,6 +262,9 @@ def inst_bootloader(config):
|
|||
else:
|
||||
exec_chroot(
|
||||
['bash', '-c', 'echo -e \'\\nGRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT} vt.global_cursor_default=0 splash"\' >> /etc/default/grub'])
|
||||
if config['partition']['mode'] == 'Auto':
|
||||
exec_chroot(
|
||||
['bash', '-c', 'echo -e \'\\nGRUB_TIMEOUT=0\' >> /etc/default/grub'])
|
||||
if config['bootloader']['type'] == 'grub-efi':
|
||||
exec_chroot(['grub-install', '--target=x86_64-efi', f'--efi-directory={config["bootloader"]["location"]}',
|
||||
'--bootloader-id=blend', '--removable'])
|
||||
|
|
Loading…
Reference in a new issue