[tautschn at model.in.tum.de: Re: FAI partitioning question]

Michael Tautschnig tautschn at model.in.tum.de
Wed Mar 12 00:10:42 CET 2008


> Sorry, I think I may have confused things a little:
> 
> the -D is an option to setup_harddisks (you can see it by looking at the
> setup_harddisks script) - but how do we get fai to call seup_harddisks
> with the -D option, which then allows sfdisk to run properly?
>

Ah, yes, could have thought of that too (as we are experiencing the same
problems here...). It has been resolved as follows: For MY_CLASS, add the
following hook partition.MY_CLASS:


echo "Partitioning local harddisks"
[ ! -s $LOGDIR/disk_var.sh ] && setup_harddisks -X | tee $LOGDIR/format.log 2>&1
# setup_harddisks must create $LOGDIR/disk_var.sh file
if [ ! -s $LOGDIR/disk_var.sh ]; then
cat $LOGDIR/format.log
sendmon "TASKERROR partition 21"
die "setup_harddisks did not create $LOGDIR/disk_var.sh file."
fi
# now define variable for root and boot partition and boot device
. $LOGDIR/disk_var.sh
touch $LOGDIR/skip.partition


Well, actually you may then need to put the proper options in there (-D, if you
will), but I guess you get the idea.

Best,
Michael


-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : nicht verfügbar
Dateityp    : application/pgp-signature
Dateigröße  : 194 bytes
Beschreibung: nicht verfügbar
URL         : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20080312/73c55381/attachment.bin 


More information about the linux-fai mailing list