X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=rescue%2Flinux%2Fcdrom%2Fmakeinitrd;fp=rescue%2Flinux%2Fcdrom%2Fmakeinitrd;h=eb6a5b0d4705953b9d739dcb23f1b589c1b76590;hb=63b9fbf5e793e684e6d5004f0da426b7df3a1280;hp=f83e15ed7de01defea02b4c41145055da841bbce;hpb=645a52e795d4f70ef951c3fb1617f99425168a5d;p=bacula%2Frescue diff --git a/rescue/linux/cdrom/makeinitrd b/rescue/linux/cdrom/makeinitrd index f83e15e..eb6a5b0 100755 --- a/rescue/linux/cdrom/makeinitrd +++ b/rescue/linux/cdrom/makeinitrd @@ -10,6 +10,13 @@ mkdir -p $LOOP2 # RAM disk image (initrd) is is in the roottree directory. echo "Creating the Initial RAM disk image.... " +if test ! -b /dev/loop2; then + mknod /dev/loop2 b 7 2 + if [ $? != 0 ] ; then + echo "Cannot create /dev/loop2" + exit 1 + fi +fi # first find out how much space we need. ISIZE=`du -s -k roottree/ | awk '{print $1}'`