public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH 1/2] core168: Add rd.auto to kernel command line
@ 2022-05-19  8:56 Michael Tremer
  2022-05-19  8:56 ` [PATCH 2/2] core168: Add script to automatically repair MDRAID arrays Michael Tremer
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Tremer @ 2022-05-19  8:56 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 738 bytes --]

This parameter will enable dracut to automatically launch any MDRAID
arrays at boot time.

Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
---
 config/rootfiles/core/168/update.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/config/rootfiles/core/168/update.sh b/config/rootfiles/core/168/update.sh
index e11e08b7f..c4005dba9 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
-- 
2.30.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-19  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19  8:56 [PATCH 1/2] core168: Add rd.auto to kernel command line Michael Tremer
2022-05-19  8:56 ` [PATCH 2/2] core168: Add script to automatically repair MDRAID arrays Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox