]> git.pld-linux.org Git - projects/geninitrd.git/blobdiff - mod-nfs.sh
Timeout here is not a good idea. rootfs cannot be mounted and kernel oopses due to...
[projects/geninitrd.git] / mod-nfs.sh
index d74dc852f2116e1af079035dec7dffa76f2c8863..8158ece749079f0965c648755ec5bd8258b35257 100644 (file)
@@ -1,5 +1,4 @@
 #!/bin/sh
-#
 # geninitrd mod: nfs
 
 # if we should init NFS at boot
@@ -55,8 +54,8 @@ initrd_gen_nfs() {
 
        # use root=/dev/ram0 init=/linuxrc when starting kernel or you will
        # have problems like init(XX) being child process of swapper(1).
-       debug "Adding rootfs on NFS support to initrd (dhcp)"
-       mknod "$DESTDIR/dev/urandom" c 1 9
+       verbose "Adding rootfs on NFS support to initrd (dhcp)"
+       mknod -m 644 "$DESTDIR/dev/urandom" c 1 9
        mkdir "$DESTDIR/newroot"
        add_linuxrc <<-'EOF'
                ifconfig lo 127.0.0.1 up
This page took 0.080213 seconds and 4 git commands to generate.