]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
mkinitramfs: Fix --action=add flags for newer version of udev.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 May 2010 13:58:08 +0000 (15:58 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 May 2010 13:58:08 +0000 (15:58 +0200)
tools/mkliveramfs

index 4a1a80aa3b37de09a5782edfbfaa770ec1e58cdd..5584dc017c4e60998d0f2f875765068325e97c7f 100755 (executable)
@@ -1002,7 +1002,7 @@ vecho "Starting udevd..."
 udevd --daemon
 
 vecho "Creating devices..."
-udevadm trigger
+udevadm trigger --action=add
 
 if [ "${type}" = "download" ]; then
        # Wait 30 seconds for network to appear.
@@ -1088,7 +1088,7 @@ if [ "${type}" = "block" ]; then
                # where we were unable to read the volume id.  so trigger
                # another run through the block devs
                if [ "x$COUNTDOWN" = "x30" ]; then
-                       udevadm trigger --subsystem-match=block
+                       udevadm trigger --action=add --subsystem-match=block
                fi
        
                COUNTDOWN=$(($COUNTDOWN - 1))