Changes between Initial Version and Version 1 of Documentation


Ignore:
Timestamp:
Feb 4, 2010, 4:49:14 PM (10 years ago)
Author:
Bruno Cornec
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation

    v1 v1  
     1= Boot parameters =
     2
     3The file README.bootparam of the mindi package provides all the parameters one can use at boot time during a MondoRescue restoration.
     4
     5== pre and post parameters ==
     6
     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.
     9
     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.
     11
     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:
     13{{{
     14cat >> /etc/mindi/mindi.conf << EOF
     15MINDI_ADDITIONAL_BOOT_PARAMS="devfs=nomount noresume selinux=0 barrier=off udevtimeout=10 pre=/tmp/isodir/pre.sh post=/mnt/RESTORING/tmp/post.sh"
     16EOF
     17}}}
     18Of course, these params can be passed at the boot prompt.
     19
     20And the scripts could contain as an example:
     21{{{
     22cat > /path/to/nfs/pre.sh << EOF
     23sed -i -e "/vg02/ d" /tmp/mountlist.txt
     24sed -i -e "/vg03/ d" /tmp/mountlist.txt
     25EOF
     26cat > /tmp/post.sh << 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
     32EOF
     33}}}
     34
     35Of course, those scripts couls makemore dynamic requests to improve the resulting deployment.