debian: disable GRUB timeout
This commit is contained in:
parent
e4e74168eb
commit
b01e17e853
1 changed files with 8 additions and 0 deletions
|
@ -81,6 +81,11 @@ install_packages() {
|
|||
$cmd apt-file update
|
||||
}
|
||||
|
||||
grub_disable_timeout() {
|
||||
$cmd sed -i.original -e 's/^GRUB_TIMEOUT=.*/GRUB_TIMEOUT=0/' /etc/default/grub
|
||||
$cmd update-grub
|
||||
}
|
||||
|
||||
tweak_filesystem() {
|
||||
# Make `fd` available with the correct name.
|
||||
if [ -x /usr/bin/fdfind ]; then
|
||||
|
@ -215,6 +220,9 @@ execute() {
|
|||
heading "Install packages"
|
||||
install_packages
|
||||
|
||||
heading "Disable GRUB timeout"
|
||||
grub_disable_timeout
|
||||
|
||||
heading "Filesystem tweaks"
|
||||
tweak_filesystem
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue