Confirming predefined partition layout using kickstart

Peter Åstrand astrand at cendio.se
Mon Dec 10 08:30:04 UTC 2007


On Fri, 7 Dec 2007, Jason Kohles wrote:

> >I've discovered one major problem: When booting from a USB stick with
> >diskboot.img, a kickstart file like this erases the USB stick! How can

> ignoredisk line from %pre.  This is the code I use to ignore the usb stick
> regardless of where it shows up...

> %pre
> # This one looks for disks smaller than a given size, and if any are found,
> ignores them
> TINY=`awk 'BEGIN { ORS="," } $2 < 2000 { print $1 }' /tmp/disks | sed
> 's/,$//'`
> if [ -n "$TINY" ]; then
>    echo "ignoredisk --drives=$TINY" >> /tmp/generated-configuration
> fi

Thanks. In our case, however, I don't think this will work. Our 
target disk requirement is only 1.5 GB and 2 GB USB sticks are not 
uncommon. 

We ended up with another method that disables all SCSI devices that 
contains the ISOLINUX splash file. 


Regards, 
---
Peter Åstrand		ThinLinc Chief Developer
Cendio AB		http://www.cendio.se
Wallenbergs gata 4
583 30 Linköping	Phone: +46-13-21 46 00


More information about the Kickstart-list mailing list