Changeset 26 in MondoRescue for trunk


Ignore:
Timestamp:
Sep 19, 2005, 7:50:34 PM (19 years ago)
Author:
bcornec
Message:

Corrects bug 005083 (PXE and -p option incompatible)

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi/README.pxe

    r1 r26  
    99mondo
    1010        kernel vmlinuz-mondo
    11         initrd initrd-mondo pxe ...
     11        initrd initrd-mondo pxe [prefix="machine"] ...
    1212
    1313Thus the PXE ROM will boot mondo's kernel and mondo's initrd in memory and will append all the right configuration options (as you find in syslinux.cfg on the mindi's floppy image) to which you need to add the keyword pxe.
    1414(You need to have backup your data using the NFS option of mondoarchive)
     15If you used the -p option of mondoarchive, you'll have to specify the real name of mondo images to use during restore. To do that use prefix=machine on the initrd line, after the pxe keyword, to load the ISO images saved with -p machine.
     16Without prefix keyword, images name mondorescue-1.iso, ... will be used.
    1517
    1618During boot mondorestore will start your NFS configuration and mount mondo's content from the network rather than from a physical media.
  • trunk/mindi/rootfs/sbin/init

    r1 r26  
    625625    HandleTape
    626626else
    627     if [ "`cat /proc/cmdline | grep -i "pxe"`" ] ; then
     627    if [ "`cat /proc/cmdline | grep -i pxe`" ] ; then
    628628        LogIt "PXE boot found"
    629         LogIt "Mounting NFS image 1.iso on /mnt/cdrom in loopback"
    630         losetup /dev/loop7 /tmp/isodir/1.iso
     629        imgname="mondorescue"
     630        if [ "`cat /proc/cmdline | grep -i prefix`" ] ; then
     631            for i in "`cat /proc/cmdline`" do
     632                if [ "`echo $i | grep -i prefix`" ] ; then
     633                    imgname=`echo $i | cut -d'=' -f2`
     634                fi
     635            done
     636        fi
     637        LogIt "Mounting NFS image $imgname.iso on /mnt/cdrom in loopback"
     638        losetup /dev/loop7 /tmp/isodir/$imgname.iso
    631639        mount -t iso9660 /dev/loop7 /mnt/cdrom
    632640        # Simulate a local CD
  • trunk/mondo/ChangeLog

    r25 r26  
    44v2.04_berlios (Bruno Cornec <bcornec@users.berlios.de)
    55- Add -p option to generate ISO images file names with prefix. The new default
    6   name for ISO images is mondorescue-1.iso, ...
     6  name for ISO images is mondorescue-1.iso, ... For PXE environment, you have
     7  to use the prefix option on the command line (read README.pxe)
    78- Mandrake 2005 support
    89- NFS patches (Yann Aubert <technique@alixen.fr>)
Note: See TracChangeset for help on using the changeset viewer.