> 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
pgpRnz82VOFWi.pgp
Description: PGP signature
