]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Delay argument "-d" requires number
authormasem <matej.semian@gmail.com>
Tue, 13 Nov 2018 23:48:39 +0000 (00:48 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 15 Nov 2018 09:44:37 +0000 (10:44 +0100)
Arguments "-f -d -n" fails with "invalid number -n", because -d delay expects number of seconds.

modules.d/99shutdown/shutdown.sh

index f21cc811b512f457efe7bc33c84b73926af100ef..e3884a88274db5b215a6b13e28253b6886fcdc4e 100755 (executable)
@@ -112,17 +112,17 @@ getarg 'rd.break=shutdown' && emergency_shell --shutdown shutdown "Break before
 
 case "$ACTION" in
     reboot|poweroff|halt)
-        $ACTION -f -d -n
+        $ACTION -f -n
         warn "$ACTION failed!"
         ;;
     kexec)
         kexec -e
         warn "$ACTION failed!"
-        reboot -f -d -n
+        reboot -f -n
         ;;
     *)
         warn "Shutdown called with argument '$ACTION'. Rebooting!"
-        reboot -f -d -n
+        reboot -f -n
         ;;
 esac