Changeset 518 in MondoRescue
- Timestamp:
- May 1, 2006, 1:42:39 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 5 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/documentation/Makefile.howto
r507 r518 34 34 @rm -fr $(TARGET) 35 35 @docbook2html -d $(TARGET).dsl'#html' -o $(TARGET) $(TARGET).sgml 36 @ ln -sf $(IMAGESDIR) $(TARGET)36 @(cd $(TARGET) ; ln -sf ../$(IMAGESDIR) .) 37 37 38 38 $(TARGET).html: $(SRC) $(DSL) $(IMAGES) -
trunk/mindi/mindi
r512 r518 132 132 CDROM_MODS="$TAPE_MODS $FLOPPY_MODS $IDE_MODS af_packet cdrom isocd isofs inflate_fs nls_iso8859-1 nls_cp437 sg sr_mod zlib_inflate $USB_MODS $PCMCIA_MODS" 133 133 NET_MODS="sunrpc nfs nfs_acl lockd loop mii 3c59x e100 bcm5700 e1000 eepro100 ne2k-pci tg3 pcnet32 8139cp 8139too 8390 vmxnet" 134 EXTRA_MODS="$CDROM_MODS vfat fat loop linear raid0 raid1raid5 lvm-mod dm-mod jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd"134 EXTRA_MODS="$CDROM_MODS vfat fat loop md-mod linear raid0 raid1 xor raid5 lvm-mod dm-mod jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd" 135 135 LOGFILE=/var/log/mindi.log 136 136 … … 1382 1382 [ "`echo "$c_p" | grep -x "/dev/cdroms.*"`" ] && continue 1383 1383 if [ -h "$c_p" ] && [ "`echo "$c_p" | fgrep "/dev/hd"`" = "" ] && [ "`echo "$c_p" | fgrep "/dev/sd"`" = "" ] && [ "`echo "$c_p" | fgrep "/dev/md"`" = "" ] ; then 1384 1384 current_partition=`ResolveSoftlink $c_p` 1385 1385 [ "`echo "$current_partition" | fgrep "/dev/mapper"`" != "" ] && current_partition="$c_p" 1386 1386 [ "`echo "/dev/scd0 /dev/scd1 /dev/sr0 /dev/sr1 /dev/cdrom /dev/cdrom1" | fgrep "$current_partition"`" ] && continue 1387 1387 else 1388 1388 current_partition="$c_p" 1389 1389 fi 1390 1390 [ "$c_p" = "none" ] && continue 1391 1391 absolute_partition=`ResolveSoftlink $c_p` 1392 1392 partition_mountpt=`tr -s '\t' ' ' < $MY_FSTAB | grep -w "$current_partition" | grep -vx " *#.*" | $AWK '{print $2}' | head -n1` 1393 1394 # This part tries to retrieve the correct device from a LABEL line in /etc/fstab 1395 # current_partition contains only first column of /etc/fstab 1393 1396 redhat_label="" 1394 if [ "`echo "$current_partition" | fgrep -i "LABEL=SWAP"`" != "" ] ; then 1395 redhat_label=`echo "$current_partition" | cut -d'=' -f2` 1396 actual_dev="/dev/`echo "$redhat_label" | cut -d '-' -f2`" 1397 current_partition=$actual_dev 1398 elif [ "`echo "$current_partition" | fgrep -i "LABEL="`" != "" ] ; then 1397 if [ "`echo "$current_partition" | /bin/grep -f -i "LABEL="`" != "" ] ; then 1399 1398 str_to_find_fmt_with=$current_partition 1400 redhat_label=`echo "$current_partition" | cut -d'=' -f2` 1401 actual_dev=`mount -l | fgrep " [$redhat_label]" | cut -d' ' -f1` 1402 # partition_mountpt=$redhat_label 1403 current_partition=$actual_dev 1399 redhat_label=`echo "$current_partition" | /bin/cut -d'=' -f2` 1400 actual_dev="" 1401 1402 # 1st try : blkid, the good way 1403 if [ -x "/sbin/blkid" ] ; then 1404 actual_dev=`/sbin/blkid | grep "$current_partition" | /bin/cut -d':' -f1` 1405 fi 1406 # 2nd try, which works on a standard partition (ext2/3), but not on swap 1407 if [ $actual_dev="" ] ; then 1408 actual_dev=`/bin/mount -l | /bin/grep " [$redhat_label]" | /bin/cut -d' ' -f1` 1409 fi 1410 # 3rd try, with vol_id (which works with swap) 1411 if [ $actual_dev="" -a -x "/sbin/vol_id" ] ; then 1412 list_swaps=`cat /proc/swaps | /bin/grep "/dev/" | /bin/awk '{ print $1 }' ` 1413 for dev_swap in $list_swaps ; do 1414 dev_exists=`/sbin/vol_id $dev_swap | /bin/grep -f "$redhat_label"` 1415 if [ -n "$dev_exists" ] ; then 1416 actual_dev=$dev_swap 1417 break; 1418 fi 1419 done 1420 fi 1421 # 4th try : pre-formated LABEL. Format is : LABEL=SWAP-mydevice. e.g. : LABEL=SWAP-hda5 1422 if [ $actual_dev="" -a "`echo "$current_partition" | /bin/grep -f -i "LABEL=SWAP"`" != ""] ; then 1423 actual_dev="/dev/`echo "$redhat_label" | /bin/cut -d '-' -f2`" 1424 fi 1425 # Check if one of all those tries has known success 1426 if [ $actual_dev != "" ] ; then 1427 current_partition=$actual_dev 1428 else 1429 Die "Your system uses a labelled swap partition, but you lack the tool to su 1430 pport it.\nPlease replace swap labels with their correct devices in /etc/fstab\n" 1431 fi 1404 1432 else 1405 1433 str_to_find_fmt_with=$current_partition 1406 1434 fi 1435 1407 1436 partition_format=`$AWK '$1 == "'"$str_to_find_fmt_with"'" {print $3}' $MY_FSTAB` 1408 1437 if [ -d "/proc/lvm" ] && [ "`lvdisplay $current_partition 2> /dev/null`" ] ; then -
trunk/mondo/mondo/common/mondostructures.h
r300 r518 460 460 * If you do nothing, "/" will be used. 461 461 */ 462 char include_paths[MAX_STR_LEN ];462 char include_paths[MAX_STR_LEN*4]; 463 463 464 464 /** … … 467 467 * the scratchdir, and the tempdir are automatically excluded. 468 468 */ 469 char exclude_paths[MAX_STR_LEN ];469 char exclude_paths[MAX_STR_LEN*4]; 470 470 471 471 /** -
trunk/mondo/mondo/common/my-stuff.h
r512 r518 225 225 /** 226 226 * @c growisofs command to generate a bootable DVD using LILO, except for the directory to image. 227 227 */// -b images/mindi-boot.2880.img 228 228 #define MONDO_GROWISOFS_REGULAR_ELILO "growisofs -use-the-force-luke -no-emul-boot -b images/mindi-boot.2880.img -c boot.cat -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v" 229 229 230 230 /** 231 231 * @c growisofs command to generate a bootable DVD using LILO, except for the directory to image. 232 232 */// -b images/mindi-boot.2880.img 233 233 #define MONDO_GROWISOFS_REGULAR_LILO "growisofs -no-emul-boot -b isolinux.bin -c boot.cat -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v" 234 234 -
trunk/tools/livwww
r448 r518 16 16 TESTDIR=/mondo/www/html/test 17 17 18 force= 018 force=1 19 19 nodoc=0 20 20 21 if [ "$1" = "- f" ]; then22 force= 121 if [ "$1" = "--keep" ]; then 22 force=0 23 23 optsvn="" 24 24 shift … … 35 35 DESTMACH=mondo.hpintelco.org 36 36 else 37 DESTMACH=www 1.mondorescue.org37 DESTMACH=www.mondorescue.org 38 38 fi 39 39
Note:
See TracChangeset
for help on using the changeset viewer.