Changeset 2944 in MondoRescue for branches/3.0/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Feb 3, 2012, 2:12:47 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mondo/src/mondorestore/mondo-rstr-tools.c
r2904 r2944 1301 1301 backup_crucial_file(MNT_RESTORING, "/boot/grub/menu.lst"); 1302 1302 backup_crucial_file(MNT_RESTORING, "/boot/grub/grub.cfg"); 1303 backup_crucial_file(MNT_RESTORING, "/boot/grub2/grub.cfg"); 1303 1304 backup_crucial_file(MNT_RESTORING, "/etc/lilo.conf"); 1304 1305 backup_crucial_file(MNT_RESTORING, "/etc/elilo.conf"); 1305 1306 backup_crucial_file(MNT_RESTORING, "/boot/grub/device.map"); 1307 backup_crucial_file(MNT_RESTORING, "/boot/grub2/device.map"); 1306 1308 backup_crucial_file(MNT_RESTORING, "/etc/mtab"); 1307 1309 read_cfg_var(g_mondo_cfg_file, "bootloader.device", device); … … 1456 1458 } else if (does_file_exist(MNT_RESTORING"/boot/grub/grub.cfg")) { 1457 1459 sprintf(tmp, "chroot %s %s /boot/grub/grub.cfg", MNT_RESTORING, editor); 1460 } else if (does_file_exist(MNT_RESTORING"/boot/grub2/grub.cfg")) { 1461 sprintf(tmp, "chroot %s %s /boot/grub2/grub.cfg", MNT_RESTORING, editor); 1458 1462 } 1459 1463 paranoid_system(tmp); 1460 sprintf(tmp, "chroot %s %s /boot/grub/device.map", MNT_RESTORING, editor); 1464 if (does_file_exist(MNT_RESTORING"/boot/grub/device.map")) { 1465 sprintf(tmp, "chroot %s %s /boot/grub/device.map", MNT_RESTORING, editor); 1466 } else if (does_file_exist(MNT_RESTORING"/boot/grub2/device.map")) { 1467 sprintf(tmp, "chroot %s %s /boot/grub2/device.map", MNT_RESTORING, editor); 1468 } 1461 1469 paranoid_system(tmp); 1462 1470 if (!g_text_mode) {
Note:
See TracChangeset
for help on using the changeset viewer.