Ignore:
Timestamp:
Jun 9, 2007, 2:05:52 AM (17 years ago)
Author:
Bruno Cornec
Message:
  • ChangeLog updated
  • Attempt to fix completely #159
  • Improve ESX+vmfs support - needs testing
  • Attempt to fix #136 (without floppy mondorestore may hang due to a mount command blocked)
  • man page fixed as mindi images are now under /var/cache/mindi
  • Support Web page now includes all the latest supported distributions
  • mondorestore supports now the -p option so man page fixed.
  • Fix my email address in mindi man page
  • Fix a typo on the support Web page
  • Improve isolinux.bin detection on x86_64 system by looking also in /usr/lib64
  • Stricter POSIX conformance for all shell scripts (== replaced by = in compare)

(merge -r 1488:1499 $SVN_M/branches/2.2.4)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c

    r1419 r1500  
    14341434                newtSuspend();
    14351435            }
    1436             mr_asprintf(&tmp, "%s " MNT_RESTORING "/etc/fstab", editor);
     1436            mr_asprintf(&tmp, "chroot %s %s /etc/fstab", MNT_RESTORING, editor);
    14371437            paranoid_system(tmp);
    14381438            mr_free(tmp);
    14391439
    1440             mr_asprintf(&tmp, "%s " MNT_RESTORING "/etc/grub.conf", editor);
     1440            mr_asprintf(&tmp, "chroot %s %s /etc/grub.conf", MNT_RESTORING, editor);
    14411441            paranoid_system(tmp);
    14421442            mr_free(tmp);
     
    21232123    mr_free(tmp);
    21242124
    2125     mr_asprintf(&command, "mount /dev/fd0u1722 %s", mountpt);
    2126     mr_asprintf(&tmp,
     2125    mr_asprintf(&tmp, "%s", call_program_and_get_last_line_of_output("dmesg | grep -i floppy"));
     2126    if (strcmp(tmp, "")) {
     2127        mr_asprintf(&command, "mount /dev/fd0u1722 %s", mountpt);
     2128        mr_asprintf(&tmp,
    21272129            "(sleep 15; kill `ps | grep \"%s\" | cut -d' ' -f1` 2> /dev/null) &",
    21282130            command);
    2129     mr_msg(1, "tmp = '%s'", tmp);
    2130     system(tmp);
    2131     mr_free(tmp);
    2132 
    2133     res = run_program_and_log_output(command, FALSE);
    2134     mr_free(command);
    2135 
    2136     if (res) {
    2137         mr_asprintf(&command, "mount /dev/fd0H1440 %s", mountpt);
     2131        mr_msg(1, "tmp = '%s'", tmp);
     2132        system(tmp);
     2133        mr_free(tmp);
     2134
    21382135        res = run_program_and_log_output(command, FALSE);
    21392136        mr_free(command);
     2137
     2138        if (res) {
     2139            mr_asprintf(&command, "mount /dev/fd0H1440 %s", mountpt);
     2140            res = run_program_and_log_output(command, FALSE);
     2141            mr_free(command);
     2142        }
     2143    } else {
     2144        res = 1;
    21402145    }
    21412146    if (res) {
Note: See TracChangeset for help on using the changeset viewer.