From: Kern Sibbald Date: Sat, 29 Dec 2007 18:19:05 +0000 (+0000) Subject: Create /dev/loop2 if it doesn't exist X-Git-Tag: Release-5.0.3~2539 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=63b9fbf5e793e684e6d5004f0da426b7df3a1280;p=bacula%2Frescue Create /dev/loop2 if it doesn't exist --- 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}'`