Changeset 3008 in MondoRescue
- Timestamp:
- May 15, 2012, 6:13:10 PM (13 years ago)
- Location:
- branches/3.0
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/deplist.d/fs.conf
r2943 r3008 37 37 /sbin/btrfsck 38 38 39 # ext2/3 39 # ext2/3/4 40 40 # 41 41 /sbin/e2label 42 /sbin/e4label 42 43 /sbin/tune2fs 44 /sbin/tune4fs 43 45 /etc/mke2fs.conf 44 46 -
branches/3.0/mindi/mindi
r3007 r3008 2724 2724 gvFileSystem=`GetInitrdFilesystemToUse ${kernelpath}` 2725 2725 [ -z gvFileSystem ] && Die "GetFilesystemToUse() failed. Terminating." 2726 if [ "$gvFileSystem" = "ext2fs" ] || [ "$gvFileSystem" = "ext3fs" ] ; then2726 if [ "$gvFileSystem" = "ext2fs" ] || [ "$gvFileSystem" = "ext3fs" ] || [ "$gvFileSystem" = "ext4fs" ]; then 2727 2727 # say what will be used 2728 2728 LogFile "INFO: Creating an $gvFileSystem initrd image..." … … 2732 2732 umount $mountpoint || Die "Cannot unmount $tempfile" 2733 2733 dd if=$tempfile bs=1k 2> /dev/null > ${rdz_fname}.tmp 2> /dev/null 2734 bs=`tune2fs -l ${rdz_fname}.tmp | grep -E '^Block size:' | cut -d: -f2 | sed 's/^ *//'` 2734 if [ "$gvFileSystem" = "ext4fs" ] && [ -x "/sbin/tune4fs" ]; then 2735 bs=`/sbin/tune4fs -l ${rdz_fname}.tmp | grep -E '^Block size:' | cut -d: -f2 | sed 's/^ *//'` 2736 else 2737 bs=`tune2fs -l ${rdz_fname}.tmp | grep -E '^Block size:' | cut -d: -f2 | sed 's/^ *//'` 2738 fi 2735 2739 MINDI_ADDITIONAL_BOOT_PARAMS="$MINDI_ADDITIONAL_BOOT_PARAMS ramdisk_blocksize=$bs" 2736 2740 gzip -c9 ${rdz_fname}.tmp > $rdz_fname -
branches/3.0/mondo/src/mondorestore/mondorestore.c
r3002 r3008 653 653 ("Label/Identify your ext2/ext3/ext4 partitions if necessary?")) { 654 654 mvaddstr_and_log_it(g_currentY, 0, 655 "Using tune2fs to identify your ext2,3,4 partitions");655 "Using tune2fs/tune4fs to identify your ext2,3,4 partitions"); 656 656 if (does_file_exist("/tmp/fstab.new")) { 657 657 strcpy(fstab_fname, "/tmp/fstab.new"); … … 888 888 mvaddstr_and_log_it(g_currentY, 889 889 0, 890 "Using tune2fs to identify your ext2,3 partitions");890 "Using tune2fs/tune4fs to identify your ext2,3 partitions"); 891 891 892 892 sprintf(tmp, "label-partitions-as-necessary %s < /tmp/fstab >> %s 2>> %s", g_mountlist_fname, MONDO_LOGFILE, MONDO_LOGFILE); -
branches/3.0/mondo/src/restore-scripts/mondo/label-partitions-as-necessary
r2172 r3008 28 28 else 29 29 if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] || [ "$format" = "ext4" ]; then 30 command="tune2fs $opttun $label $mountpt" 30 if [ "$format" = "ext4" ] && [ -x "/sbin/tune4fs" ]; then 31 command="/sbin/tune4fs $opttun $label $mountpt" 32 else 33 command="tune2fs $opttun $label $mountpt" 34 fi 31 35 LogIt "Running $command" 32 36 $command … … 45 49 fi 46 50 else 47 LogIt "I am NOT going to run tune2 fs/reiserfstune: the partition is format '$format', which doesn't like tune2fs/reiserfstune anyway"51 LogIt "I am NOT going to run tune2|4fs/reiserfstune: the partition is format '$format', which doesn't like tune2|4fs/reiserfstune anyway" 48 52 fi 49 53 fi … … 53 57 # --------------------------------------------- 54 58 55 LogIt "Identifying your drives with tune2fs"59 LogIt "Identifying your drives with FS tune tool" 56 60 if [ "$#" -ne "1" ] ; then 57 61 LogIt "label-partitions-as-necessary /tmp/mountlist.txt < /tmp/fstab.new" 1
Note:
See TracChangeset
for help on using the changeset viewer.