]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
init: create /dev/.udev/rules.d with correct permissions
authorHarald Hoyer <harald@redhat.com>
Mon, 2 Aug 2010 13:58:48 +0000 (15:58 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 2 Aug 2010 13:58:48 +0000 (15:58 +0200)
modules.d/90dmsquash-live/dmsquash-live-genrules.sh
modules.d/95resume/resume-genrules.sh
modules.d/95rootfs-block/block-genrules.sh
modules.d/99base/init

index 5e5b27b7c613e6d27910758eb37c3bcf91f16cc4..c2aee3a2e0f6e49c10d505c6c9b2a506c84780fe 100755 (executable)
@@ -1,5 +1,4 @@
 if [ "${root%%:*}" = "live" ]; then
-    [ -d /dev/.udev/rules.d ] || mkdir -m 0755 -p /dev/.udev/rules.d
     {
     printf 'KERNEL=="%s", SYMLINK+="live"\n' \
        ${root#live:/dev/} 
index 91e8a207bcc131c5dcd0838972beff24dbac09b1..a2718b3e990431ae8554fd5b6a3021e53b16097c 100755 (executable)
@@ -1,5 +1,4 @@
 if [ -n "$resume" ]; then
-    [ -d /dev/.udev/rules.d ] || mkdir -m 0755 -p /dev/.udev/rules.d
     {
     printf "KERNEL==\"%s\", ACTION==\"add|change\", SYMLINK+=\"/dev/resume\"\n" \
                ${resume#/dev/};
index 2d9fc43ba4837895386d1c5018d54418f80ab83d..caafb650203620b57d96c11731c7f8a28c77c75b 100755 (executable)
@@ -1,5 +1,4 @@
 if [ "${root%%:*}" = "block" ]; then
-    [ -d /dev/.udev/rules.d ] || mkdir -m 0755 -p /dev/.udev/rules.d
     {
     printf 'KERNEL=="%s", SYMLINK+="root"\n' \
        ${root#block:/dev/} 
index 604eee6b600e826ac53b39719ba60057cbc072cd..2a376ddc3aeaf4954324295fefc9f54bb44481ed 100755 (executable)
@@ -105,6 +105,8 @@ mkdir /dev/shm
 mkdir /dev/pts
 mount -t devpts -o gid=5,mode=620 devpts /dev/pts >/dev/null 2>&1
 mount -t tmpfs tmpfs /dev/shm >/dev/null 2>&1
+mkdir -m 0755 /dev/.udev
+mkdir -m 0755 /dev/.udev/rules.d
 
 UDEVVERSION=$(udevadm --version)