Patches item #688526, was opened at 2003-02-18 09:47 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=313751&aid=688526&group_id=13751
Category: Release/Branch: Bering Group: None Status: Open Resolution: None Priority: 5 Submitted By: Przmyslaw Rudy (prudy) Assigned to: Jacques Nilo (jnilo) Summary: safe boot/backup Initial Comment: Originally when you do the backup of the lrp files they will overwrite the original files from the floppy. In the case of any mistake (e.g. wrong firewall settings) it is possible that you will prevent yourself from remote access to the system. The four files below are modified to add the test boot/backup option: root.linuxrc - from the initrd.lrp package lrcfg - from the root.lrp package lrcfg.back.script - from the root.lrp package lrcfg.back - from the root.lrp package How does it work? After enable test backup/boot in the backup menu all packages will be created in the testbkp directory and original files will not be overwritten. As well the lrpkg.cfg file can be manually created in this directory. Finally, the tbmark file is created on the floppy to indicate the next boot is the test boot. If the test boot is fine, the system will be rebooted to the original configuration automatically after 5 min. Additional menu option allows to disable automatic reboot. As well there are three options in the backup menu to decide what to do with the tested files (including use them during the next boot as the default files, etc.) In the case of any problem during the test boot time, original configuration will be used instead. Reboot depends on the /sbin/shutdown which must be uncompressed correctly. Note: From the obvious reason the test backup option does not work for the initrd.lrp package. Note: I have noticed that in the root.linuxrc the gunzip does not return error code if the *.lrp is corrupted (I tested it on 0 size file), so I changed the lines: gunzip -c $mnt/$f.lrp > /dev/null if [ $? -eq 0 ]; then to: RVAL=`gunzip -c $mnt/$f.lrp 2>&1 > /dev/null` if [ $? -eq 0 -a "x$RVAL" = "x" ]; then ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=313751&aid=688526&group_id=13751 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel