Changeset 3472


Ignore:
Timestamp:
Sep 29, 2015, 2:26:05 AM (2 years ago)
Author:
bruno
Message:
  • Fix #778: Use fatlabel to recreate labelled FAT or VFAT FS when that command is available
Location:
branches/3.2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/deplist.d/fs.conf

    r3040 r3472  
    3737/sbin/badblocks
    3838/sbin/btrfsck
     39
     40# FAT
     41/sbin/fatlabel
    3942
    4043# ext2/3/4
  • branches/3.2/mondo/src/mondorestore/mondorestore.c

    r3469 r3472  
    20362036
    20372037    /*  if (restore_some || restore_all || */
    2038     if (ask_me_yes_or_no
    2039         ("Label/Identify your ext2/ext3/ext4 partitions if necessary?")) {
     2038    if (ask_me_yes_or_no("Label/Identify your ext2/ext3/ext4 partitions if necessary?")) {
    20402039        mvaddstr_and_log_it(g_currentY, 0,
    20412040                            "Using tune2fs/tune4fs to identify your ext2,3,4 partitions");
     
    20482047        mr_free(fstab_fname);
    20492048
    2050         res = system(tmp1);
     2049        res = run_program_and_log_output(tmp1, TRUE);
    20512050        mr_free(tmp1);
    20522051        if (res) {
  • branches/3.2/mondo/src/restore-scripts/mondo/label-partitions-as-necessary

    r3437 r3472  
    5656            LogIt "Running $command"
    5757            $command
     58        elif [ "$format" = "fat" ] || [ "$format" = "vfat" ]; then
     59            if [ -x "/sbin/fatlabel" ]; then
     60                command="/sbin/fatlabel $mountpt $label"
     61                LogIt "Running $command"
     62                $command
     63            else
     64                LogIt "No fatlabel command available to label a FAT/VFAT FS"
     65            fi
    5866        elif [ "$format" = "swap" ] ; then
    5967            if [ "$opttun" = "-U" ]; then
Note: See TracChangeset for help on using the changeset viewer.