Changeset 1621 in MondoRescue for branches/stable
- Timestamp:
- Sep 7, 2007, 11:56:50 AM (18 years ago)
- Location:
- branches/stable
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/rootfs/etc/syslog.conf
r30 r1621 1 1 # Various entry 2 *.* /tmp/mondo -restore.log2 *.* /tmp/mondorestore.log -
branches/stable/mindi/rootfs/sbin/init
r1581 r1621 322 322 LogIt "$i is started already; no need to run 'mdadm $i'" 1 323 323 else 324 LogIt "Running 'mdadm $i'" 1 325 mdadm -Ac partitions -m dev $i 324 if [ -f /etc/mdadm.conf ] ; then 325 LogIt "Running 'mdadm $i' with user supplied /etc/mdadm.conf" 1 326 mdadm -A $i -c /etc/mdadm.conf 327 elif [ -f /etc/mdadm/mdadm.conf ] ; then 328 LogIt "Running 'mdadm $i' with user supplied /etc/mdadm/mdadm.conf" 1 329 mdadm -A $i -c /etc/mdadm/mdadm.conf 330 else 331 LogIt "Running 'mdadm $i'" 1 332 mdadm -Ac partitions -m dev $i 333 fi 326 334 fi 327 335 done … … 558 566 LogIt "I think this media has no archives on it." 559 567 fi 560 echo -en "Type 'exit' to reboot the PC\n" 561 umount /mnt/cdrom 2> /dev/null 562 mount / -o rw,remount > /dev/null 2> /dev/null 563 LogIt "Launching Shell" 564 sh 568 if grep "RESTORE" /proc/cmdline > /dev/null 2> /dev/null ; then 569 echo "Rebooting in 10 seconds automatically as per reboot order" 570 echo -en "Press ^C to interrupt if you have to ..." 571 for i in 1 2 3 4 5 6 7 8 9 10 ; do 572 sleep 1 573 echo -en "." 574 done 575 echo "Boom." 576 sleep 1 577 else 578 echo -en "Type 'exit' to reboot the PC\n" 579 umount /mnt/cdrom 2> /dev/null 580 mount / -o rw,remount > /dev/null 2> /dev/null 581 LogIt "Launching Shell" 582 sh 583 fi 565 584 CaughtSoftReset 566 585 # reboot -
branches/stable/mindi/rootfs/sbin/post-init
r1339 r1621 121 121 mondorestore --nuke 122 122 else 123 mondorestore; # MR will detect & access the tape123 mondorestore; # MR will detect & access the tape 124 124 fi 125 125 fi … … 138 138 fi 139 139 else 140 LogIt "------------------EXPERT MODE------------------" 1141 LogIt "You do all the work. :-)" 1142 if which mondorestore > /dev/null 2> /dev/null ; then140 LogIt "------------------EXPERT MODE------------------" 1 141 LogIt "You do all the work. :-)" 1 142 if which mondorestore > /dev/null 2> /dev/null ; then 143 143 LogIt "Type 'mondorestore' to begin the restore/compare process." 1 144 loc=`which ISO 2> /dev/null`144 loc=`which ISO 2> /dev/null` 145 145 fi 146 146 fi -
branches/stable/mondo-doc/mondorescue-howto.sgml
r1591 r1621 1990 1990 <itemizedlist> 1991 1991 <listitem> 1992 <para>If it did not work then please copy /tmp/mondo -restore.log to1992 <para>If it did not work then please copy /tmp/mondorestore.log to 1993 1993 your hard disk, USB key, ..., gzip it and e-mail it to the 1994 1994 &ML;.</para> … … 2025 2025 wait.</para> 2026 2026 <para>Now, should something go wrong, you will be able to examine 2027 /tmp/mondo -restore.log to see what happened. All is not lost. You2027 /tmp/mondorestore.log to see what happened. All is not lost. You 2028 2028 can fdisk and format the partitions yourself, using the tools that 2029 2029 come with the CD. You can then run mondorestore in Interactive Mode -
branches/stable/mondo/src/common/libmondo-archive.c
r1609 r1621 741 741 } 742 742 if (!does_file_exist("/etc/elilo.conf") 743 && does_file_exist("/boot/ /efi/debian/elilo.conf")) {743 && does_file_exist("/boot/efi/debian/elilo.conf")) { 744 744 run_program_and_log_output 745 745 ("ln -sf /boot/efi/debian/elilo.conf /etc/elilo.conf", -
branches/stable/mondo/src/mondorestore/mondorestore.c
r1594 r1621 712 712 tmp1 = call_program_and_get_last_line_of_output("cat /proc/cmdline"); 713 713 #endif 714 if ((strstr(tmp1,"restore") == NULL) || 715 (strstr(tmp1,"RESTORE") == NULL)) { 714 if (strstr(tmp1,"RESTORE") == NULL) { 716 715 /* -H option */ 717 716 mr_asprintf(&tmp, -
branches/stable/mondo/src/restore-scripts/mondo/ISO
r30 r1621 1 1 #!/bin/sh 2 2 3 mondo -restore --iso3 mondorestore --iso 4 4 exit $?
Note:
See TracChangeset
for help on using the changeset viewer.