From: Michael Tremer Date: Thu, 19 May 2022 08:56:33 +0000 (+0000) Subject: core168: Add rd.auto to kernel command line X-Git-Tag: v2.27-core170~152^2~1 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=69aac83da960bc89783aa8dc5373b907cccc60f8 core168: Add rd.auto to kernel command line This parameter will enable dracut to automatically launch any MDRAID arrays at boot time. Signed-off-by: Michael Tremer --- diff --git a/config/rootfiles/core/168/update.sh b/config/rootfiles/core/168/update.sh index e11e08b7f7..c4005dba9c 100644 --- a/config/rootfiles/core/168/update.sh +++ b/config/rootfiles/core/168/update.sh @@ -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