]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Create mapper control device only when not using udev.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 23 Sep 2005 23:14:16 +0000 (23:14 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 23 Sep 2005 23:14:16 +0000 (23:14 +0000)
svn-id: @6406

geninitrd

index 000086bc9735c60bdcd3e5e2af40ce73b3322ad2..7d5dd6b1d9d234874c1ac24a4f458d495b65cecb 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -1194,8 +1194,10 @@ initrd_gen_lvm() {
        mkdir -p $MNTIMAGE/tmp
        mkdir -p $MNTIMAGE/proc
        mkdir -p $MNTIMAGE/newroot
-       mkdir -p $MNTIMAGE/dev/mapper
-       mknod $MNTIMAGE/dev/mapper/control c 10 62
+       if ! is_yes "$USE_UDEV"; then
+               mkdir -p $MNTIMAGE/dev/mapper
+               mknod $MNTIMAGE/dev/mapper/control c 10 62
+       fi
        echo "mount -t proc none /proc" >> "$s"
        echo "mount -t tmpfs none /tmp" >> "$s"
        if [ "$LVMTOOLSVERSION" = "1" ] ; then
This page took 0.045947 seconds and 4 git commands to generate.