summaryrefslogtreecommitdiffstats
path: root/modules.d/98dracut-systemd/dracut-cmdline-ask.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/98dracut-systemd/dracut-cmdline-ask.sh')
-rwxr-xr-xmodules.d/98dracut-systemd/dracut-cmdline-ask.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules.d/98dracut-systemd/dracut-cmdline-ask.sh b/modules.d/98dracut-systemd/dracut-cmdline-ask.sh
new file mode 100755
index 0000000..13c4f20
--- /dev/null
+++ b/modules.d/98dracut-systemd/dracut-cmdline-ask.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+type getarg > /dev/null 2>&1 || . /lib/dracut-lib.sh
+
+getarg "rd.cmdline=ask" || exit 0
+
+sleep 0.5
+echo
+sleep 0.5
+echo
+sleep 0.5
+echo
+echo
+echo
+echo
+echo "Enter additional kernel command line parameter (end with ctrl-d or .)"
+while read -r -p "> " ${BASH:+-e} line || [ -n "$line" ]; do
+ [ "$line" = "." ] && break
+ [ -n "$line" ] && printf -- "%s\n" "$line" >> /etc/cmdline.d/99-cmdline-ask.conf
+done
+
+exit 0