]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
initqueue: add online queue
authorHarald Hoyer <harald@redhat.com>
Tue, 25 Aug 2015 09:13:23 +0000 (11:13 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 11 Nov 2015 14:20:36 +0000 (15:20 +0100)
(cherry picked from commit d3f61fb5cdaa56053ae8de0203a13722a7fe717a)

modules.d/99base/initqueue.sh

index 193cc5c6c62c9ce29419a23b499da70eb2e6a5de..c301638387993847aa9bf193e733c24c27394a44 100755 (executable)
@@ -13,6 +13,8 @@ while [ $# -gt 0 ]; do
     case "$1" in
         --onetime)
             onetime="yes";;
+        --online)
+            qname="/online";;
         --settled)
             qname="/settled";;
         --finished)
@@ -50,7 +52,7 @@ fi
 {
     [ -n "$onetime" ] && echo '[ -e "$job" ] && rm -f -- "$job"'
     [ -n "$env" ] && echo "$env"
-    echo "$exe $@"
+    echo "$exe" "$@"
 } > "/tmp/$$-${job}.sh"
 
 mv -f "/tmp/$$-${job}.sh" "$hookdir/initqueue${qname}/${job}.sh"