Changeset 1141 in MondoRescue
- Timestamp:
- Feb 12, 2007, 2:16:00 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r1124 r1141 2243 2243 2244 2244 # master boot record, too 2245 i=`grep bootloader.device $MONDORESTORECFG | cut -d' ' -f2 2> /dev/null` 2246 if [ "$i" ] ; then 2247 LogIt "Backing up $i's MBR" 2248 dd if=$i of=$bigdir/BOOTLOADER.MBR bs=446 count=1 >> $LOGFILE 2>> $LOGFILE 2249 sleep 1 2250 sync 2251 j=$i 2252 [ -h "$j" ] && j=`readlink -f $j` 2253 LogIt "Creating /dev/boot_device ($j)" 2254 mkdir -p $bigdir/dev 2255 cp -pRdf $j $bigdir/dev/boot_device 2> /dev/null || Die "Unable to create /dev/boot_device on ramdisk" 2245 if [ _"$MONDORESTORECFG" != _"" ]; then 2246 i=`grep bootloader.device $MONDORESTORECFG | cut -d' ' -f2 2> /dev/null` 2247 if [ "$i" ] ; then 2248 LogIt "Backing up $i's MBR" 2249 dd if=$i of=$bigdir/BOOTLOADER.MBR bs=446 count=1 >> $LOGFILE 2>> $LOGFILE 2250 sleep 1 2251 sync 2252 j=$i 2253 [ -h "$j" ] && j=`readlink -f $j` 2254 LogIt "Creating /dev/boot_device ($j)" 2255 mkdir -p $bigdir/dev 2256 cp -pRdf $j $bigdir/dev/boot_device 2> /dev/null || Die "Unable to create /dev/boot_device on ramdisk" 2257 fi 2256 2258 fi 2257 2259
Note:
See TracChangeset
for help on using the changeset viewer.