
6 changed files with 68 additions and 0 deletions
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
# This file is part of systemd. |
||||
# |
||||
# systemd is free software; you can redistribute it and/or modify it |
||||
# under the terms of the GNU Lesser General Public License as published by |
||||
# the Free Software Foundation; either version 2.1 of the License, or |
||||
# (at your option) any later version. |
||||
|
||||
# See systemd.special(7) for details |
||||
|
||||
[Unit] |
||||
Description=dracut ask for additional cmdline parameters |
||||
DefaultDependencies=no |
||||
Before=dracut-cmdline.service |
||||
After=systemd-journald.socket |
||||
Wants=systemd-journald.socket |
||||
ConditionPathExists=/etc/initrd-release |
||||
ConditionKernelCommandLine=rd.cmdline=ask |
||||
|
||||
[Service] |
||||
Environment=DRACUT_SYSTEMD=1 |
||||
Environment=NEWROOT=/sysroot |
||||
Type=oneshot |
||||
ExecStart=-/bin/dracut-cmdline-ask |
||||
StandardInput=tty |
||||
StandardOutput=inherit |
||||
StandardError=inherit |
||||
RemainAfterExit=yes |
||||
KillMode=process |
||||
IgnoreSIGPIPE=no |
||||
|
||||
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash |
||||
# terminates cleanly. |
||||
KillSignal=SIGHUP |
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash |
||||
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- |
||||
# ex: ts=8 sw=4 sts=4 et filetype=sh |
||||
|
||||
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 -e -p "> " line; do |
||||
[[ "$line" == "." ]] && break |
||||
[[ "$line" ]] && printf -- "%s\n" "$line" >> /etc/cmdline.d/99-cmdline-ask.conf |
||||
done |
||||
|
||||
exit 0 |
Loading…
Reference in new issue