Changeset 964 in MondoRescue
- Timestamp:
- Nov 23, 2006, 5:00:10 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r963 r964 422 422 mkdir -p $mountpoint 423 423 dd if=/dev/zero of=$imagefile bs=1k count=1440 &> /dev/null || LogIt "Cannot dd (CODI)" 424 mke2fs -N 12 -F $imagefile > $MINDI_TMP/mke2fs.$$ 2>> $MINDI_TMP/mke2fs.$$ 425 [ "$?" -ne "0" ] && cat $MINDI_TMP/mke2fs.$$ 426 rm -f $MINDI_TMP/mke2fs.$$ 424 mke2fs -N 12 -F $imagefile >> $LOGFILE 2>> $LOGFILE 427 425 mount -t ext2 -o loop $imagefile $mountpoint || Die "Can't loopmount $imagefile to $mountpoint! The reason may be missing support for loopfs or ext2 (or both) in the running kernel." 428 426 mv $tarball $mountpoint/ … … 1678 1676 mtpt=$MINDI_TMP/$rand1.$rand2.mtpt 1679 1677 dd if=/dev/zero of=$image bs=1k count=$disksize &> /dev/null 1680 mke2fs -N 26 -F $image > /dev/null1678 mke2fs -N 26 -F $image &> /dev/null 1681 1679 mkdir -p $mtpt 1682 1680 mount -o loop $image $mtpt … … 1815 1813 dd if=/dev/zero of=$imagefile bs=1k count=$disksize &> /dev/null || Die "Cannot dd blank file" 1816 1814 if [ "$ARCH" = "ia64" ] ; then 1817 mkdosfs $imagefile > $MINDI_TMP/mke2fs.log 2>> $MINDI_TMP/mke2fs.log 1818 t=vfat 1819 else 1820 mke2fs -N 26 -m 0 -F $imagefile > $MINDI_TMP/mke2fs.log 2>> $MINDI_TMP/mke2fs.log 1821 t=ext2 1822 fi 1823 [ "$?" -ne "0" ] && cat $MINDI_TMP/mke2fs.log 1824 rm -f $MINDI_TMP/mke2fs.log 1815 mkdosfs $imagefile >> $LOGFILE 2>> $LOGFILE 1816 t=vfat 1817 else 1818 mke2fs -N 26 -m 0 -F $imagefile >> $LOGFILE 2>> $LOGFILE 1819 t=ext2 1820 fi 1825 1821 mount -t $t -o loop $imagefile $mountpoint || LogIt "Cannot mount (PBDI)" 1826 # copy Mindi's skeleton fs & lilo/syslinux/whatever stuff into it1822 # copy Mindi's skeleton fs & lilo/syslinux/whatever stuff into it 1827 1823 mkdir -p $mountpoint/etc 1828 1824 if [ "$ARCH" != "ia64" ] ; then … … 1973 1969 else 1974 1970 dd if=/dev/zero of=$imagefile bs=1k count=$disksize &> /dev/null || Die "Cannot dd blank file" 1975 mkfs.vfat $imagefile 2>> $LOGFILE1976 syslinux $imagefile 2>> $LOGFILE1971 mkfs.vfat $imagefile >> $LOGFILE 2>> $LOGFILE 1972 syslinux $imagefile >> $LOGFILE 2>> $LOGFILE 1977 1973 fi 1978 1974 mount -t vfat -o loop $imagefile $mountpoint || LogIt "Cannot mount (PBDI)" … … 2167 2163 cp -f $MINDI_TMP/mountlist.txt $minidir_root/$noof_disks/tmp/mountlist.txt 2> /dev/null || Die "Cannot copy mountlist.txt from $MINDI_TMP to data disk" 2168 2164 [ "`DidMondoCallMe`" ] && cp -f $minidir_root/$noof_disks/tmp/mountlist.txt $MINDI_TMP/. 2>> $LOGFILE 2169 [ $LVM != "false" ] && $MINDI_LIB/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm 2165 [ $LVM != "false" ] && $MINDI_LIB/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm || LVM="false" 2170 2166 cat $minidir_root/$noof_disks/tmp/mountlist.txt >> $LOGFILE 2171 2167 ZipMinidirsIntoTarballs $minidir_root $tardir $noof_disks … … 2539 2535 echo -en "..." 2540 2536 mke2fs -b 1024 -m 1 -i 2048 -F $tempfile >> $LOGFILE 2>> $LOGFILE 2541 2542 [ "$?" -ne "0" ] && cat $MINDI_TMP/mke2fs.log2543 rm -f $MINDI_TMP/mke2fs.log2544 2537 echo -en "..." 2545 2538 mkdir -p $mountpoint … … 2991 2984 else 2992 2985 if ! PrepareBootDiskImage_LILO $CACHE_LOC 1722 $kernelpath $ramdisk_size ; then 2993 LogIt "WARNING - failed to create 1.72MB boot image. Please reduce your kernel's size"2994 LogIt " if you want to make a 1.72MB floppy disk."2986 LogIt "WARNING - failed to create 1.72MB boot image." 2987 LogIt "Please reduce your kernel's size if you want to make a 1.72MB floppy disk." 2995 2988 fi 2996 2989 if ! PrepareBootDiskImage_LILO $CACHE_LOC 2880 $kernelpath $ramdisk_size ; then 2997 2990 LogIt "WARNING - failed to create 2.88MB floppy disk image." 2998 LogIt "Please reduce your kernel's size" 2999 LogIt "if you want to make a 2.88MB floppy disk." 2991 LogIt "Please reduce your kernel's size if you want to make a 2.88MB floppy disk." 3000 2992 PrepareBootDiskImage_LILO $CACHE_LOC 5760 $kernelpath $ramdisk_size || Die "Failed to create 2.88MB floppy disk image." 3001 2993 fi … … 3003 2995 else 3004 2996 if ! PrepareBootDiskImage_SYSLINUX $CACHE_LOC 1722 $kernelpath $ramdisk_size ; then 3005 LogIt "WARNING - failed to create 1.72MB boot image. Please reduce your kernel's size"3006 LogIt " if you want to make a 1.72MB floppy disk."2997 LogIt "WARNING - failed to create 1.72MB boot image." 2998 LogIt "Please reduce your kernel's size if you want to make a 1.72MB floppy disk." 3007 2999 if ! PrepareBootDiskImage_SYSLINUX $CACHE_LOC 2880 $kernelpath $ramdisk_size ; then 3008 3000 LogIt "WARNING - failed to create 2.88MB floppy disk image." 3009 LogIt "Please reduce your kernel's size" 3010 LogIt "if you want to make a 2.88MB floppy disk." 3001 LogIt "Please reduce your kernel's size if you want to make a 2.88MB floppy disk." 3011 3002 PrepareBootDiskImage_SYSLINUX $CACHE_LOC 5760 $kernelpath $ramdisk_size || Die "Failed to create 5.76MB floppy disk image." 3012 3003 fi
Note:
See TracChangeset
for help on using the changeset viewer.