From 63b9fbf5e793e684e6d5004f0da426b7df3a1280 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 29 Dec 2007 18:19:05 +0000 Subject: [PATCH] Create /dev/loop2 if it doesn't exist --- rescue/linux/cdrom/makeinitrd | 7 +++++++ 1 file changed, 7 insertions(+) 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}'` -- 2.39.5