Changes between Initial Version and Version 1 of Documentation

Feb 4, 2010, 4:49:14 PM (10 years ago)
Bruno Cornec



  • Documentation

    v1 v1  
     1= Boot parameters =
     3The file README.bootparam of the mindi package provides all the parameters one can use at boot time during a MondoRescue restoration.
     5== pre and post parameters ==
     7In 2.2.9, mindi introduced 2 new parameters at boot prompt, pre and post.
     8They are used to respectively launch a script just before launching mondorestore, and after its execution.
     10The main goal is to allow for the pre option to configure for example the HDD layout differently, and to re-configure the systems (static IP address e.g.) for the post option.
     12If the mastering of the target systems is regular, you can even create a /etc/mindi/mindi.conf configuration file on the master, which could redefine the MINDI_ADDITIONAL_BOOT_PARAMS variable of mindi like this:
     14cat >> /etc/mindi/mindi.conf << EOF
     15MINDI_ADDITIONAL_BOOT_PARAMS="devfs=nomount noresume selinux=0 barrier=off udevtimeout=10 pre=/tmp/isodir/ post=/mnt/RESTORING/tmp/"
     18Of course, these params can be passed at the boot prompt.
     20And the scripts could contain as an example:
     22cat > /path/to/nfs/ << EOF
     23sed -i -e "/vg02/ d" /tmp/mountlist.txt
     24sed -i -e "/vg03/ d" /tmp/mountlist.txt
     26cat > /tmp/ << EOF
     27mount /proc
     28mount /sys
     29vgcfgrestore vg02
     30vgcfgrestore vg03
     31sed -i -e "s/IPADDR=.*/IPADDR=x.y.z.t/" /mnt/RESTORING/etc/sysconfig/network-scripts/ifcfg-eth0
     35Of course, those scripts couls makemore dynamic requests to improve the resulting deployment.