From fbd15dd6af1fe4db05ab0bb6d9295af1527ff648 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 4 Jul 2024 20:27:06 -0300 Subject: Fix: adds rootwait=5 to account for USB drives --- templates/grub.cfg | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'templates/grub.cfg') diff --git a/templates/grub.cfg b/templates/grub.cfg index 1124452..39c00a3 100644 --- a/templates/grub.cfg +++ b/templates/grub.cfg @@ -68,8 +68,10 @@ function bootfde { rmmod lvm insmod lvm + # Complete kernel params available at + # https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html echo "Loading ${volume}..." - linux ${kernel} root=/dev/mapper/${target} cryptopts=target=${target},source=${source} ro quiet apparmor=1 security=apparmor + linux ${kernel} root=/dev/mapper/${target} cryptopts=target=${target},source=${source} ro quiet rootwait=5 apparmor=1 security=apparmor echo 'Loading initial ramdisk ...' initrd ${initrd} } @@ -113,8 +115,10 @@ function bootimg { set initrd="/boot/custom/${distro}initrd.img-${version}" fi + # Complete kernel params available at + # https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html echo "Loading ${1}..." - linux ${kernel} root=/dev/mapper/${rootfs} cryptopts=target=${target},source=${volume} ro quiet apparmor=1 security=apparmor + linux ${kernel} root=/dev/mapper/${rootfs} cryptopts=target=${target},source=${volume} ro quiet rootwait=5 apparmor=1 security=apparmor echo 'Loading initial ramdisk ...' initrd ${initrd} } -- cgit v1.2.3