where to insert a pre-partioning script

Alexander Swen alex at swen.nu
Tue Apr 5 11:33:36 CEST 2011


thanks! 

----- Oorspronkelijk bericht -----

> Hi,

> [...]
> > 1. where can I call this script so that it has done it's tricks
> > before any partitioning is done?

> Keep your script as hooks/partition.SOMECLASS and FAI will execute
> that
> automatically. As you seem to do all the LVM building as well (you
> could have
> setup-storage do that for you ...) you want to skip any default
> partition
> commands you need to add

> touch $LOGDIR/skip.partition

> at the end of your script.

that's cool, thanks 

> > 2. should I mount the fs's I created in my script to /target or is
> > fai looking for available paritions to mount?
> >
> [...]

> You will have to make your script build an fstab file in $LOGDIR.
> Then FAI will
> mount whatever is defined in this file.

At what point will this happen? and is the fstab file on the target machine updated with those fs's (incl options) as well? 

> Hope this helps,
> Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20110405/fc4d8e88/attachment.html>


More information about the linux-fai mailing list