]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core168: Add rd.auto to kernel command line
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 19 May 2022 08:56:33 +0000 (08:56 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Mon, 30 May 2022 18:59:33 +0000 (18:59 +0000)
This parameter will enable dracut to automatically launch any MDRAID
arrays at boot time.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/168/update.sh

index e11e08b7f73936507128688559235444b132b339..c4005dba9c1b9e8422d1ac9a04324f0b08e54b69 100644 (file)
@@ -120,6 +120,10 @@ case "$(uname -m)" in
                 ;;
 esac
 
+# Add rd.auto to kernel command line
+if ! grep -q rd.auto /etc/default/grub; then
+       sed -e "s/panic=10/& rd.auto/" -i /etc/default/grub
+fi
 
 # Start services
 /etc/init.d/fcron restart