summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2010-08-02 15:58:48 +0200
committerHarald Hoyer <harald@redhat.com>2010-08-02 15:58:48 +0200
commitc492fe12c0fb0b2374131326bad565fe8f937085 (patch)
tree44fbaf01a0deba4b5d5fe73681045cb31f1677c0
parente0c1d4e79f5e2d2dcea60eed42044c0bedee8f83 (diff)
downloaddracut-c492fe12c0fb0b2374131326bad565fe8f937085.tar.gz
dracut-c492fe12c0fb0b2374131326bad565fe8f937085.tar.bz2
dracut-c492fe12c0fb0b2374131326bad565fe8f937085.zip
init: create /dev/.udev/rules.d with correct permissions
-rwxr-xr-xmodules.d/90dmsquash-live/dmsquash-live-genrules.sh1
-rwxr-xr-xmodules.d/95resume/resume-genrules.sh1
-rwxr-xr-xmodules.d/95rootfs-block/block-genrules.sh1
-rwxr-xr-xmodules.d/99base/init2
4 files changed, 2 insertions, 3 deletions
diff --git a/modules.d/90dmsquash-live/dmsquash-live-genrules.sh b/modules.d/90dmsquash-live/dmsquash-live-genrules.sh
index 5e5b27b7..c2aee3a2 100755
--- a/modules.d/90dmsquash-live/dmsquash-live-genrules.sh
+++ b/modules.d/90dmsquash-live/dmsquash-live-genrules.sh
@@ -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/}
diff --git a/modules.d/95resume/resume-genrules.sh b/modules.d/95resume/resume-genrules.sh
index 91e8a207..a2718b3e 100755
--- a/modules.d/95resume/resume-genrules.sh
+++ b/modules.d/95resume/resume-genrules.sh
@@ -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/};
diff --git a/modules.d/95rootfs-block/block-genrules.sh b/modules.d/95rootfs-block/block-genrules.sh
index 2d9fc43b..caafb650 100755
--- a/modules.d/95rootfs-block/block-genrules.sh
+++ b/modules.d/95rootfs-block/block-genrules.sh
@@ -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/}
diff --git a/modules.d/99base/init b/modules.d/99base/init
index 604eee6b..2a376ddc 100755
--- a/modules.d/99base/init
+++ b/modules.d/99base/init
@@ -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)