RHEL5 kickstart overwrites USB

Harry Hoffman hhoffman at ip-solutions.net
Thu Oct 11 22:53:59 UTC 2007


hmm, it looks like it's sticking /boot on the usb drive.

If you switch to console f2 can you find out what device the usb drive 
is during install?

My guess is that the usb/cd combo has something like
/dev/sda1 == cdrom
/dev/sda2 == rest of disk

and so when you say clearpart --all it repartitions the drive and then 
the /boot partition is placed on there.

I've not used the ignoredisk option before so I don't know if it's not 
working.


HTH,
Harry


Hajducko, Steven wrote:
> Hi,
> 
> So we're running into a strange issue where a kickstart from a USB/CDROM 
> combo on an HP DL385 G5 system is actually installing and reformatting 
> the USB stick.
> 
> We place the kickstart file on the USB drive, drop in a RHEL5 DVD and run:
> 
> linux ks=hd:sda1:/hostname.cfg
> 
> The installation goes fine and our packages are installed, but upon 
> reboot and examining the USB stick, it has been reformatted to ext3 FS 
> and contains :
> 
> stha3155 at ghost:/media/usb$ ls
> config-2.6.18-8.el5  grub  initrd-2.6.18-8.el5.img  lost+found  
> symvers-2.6.18-8.el5.gz  System.map-2.6.18-8.el5  vmlinuz-2.6.18-8.el5
> 
> Upon reboot of the system, it crashes with a bunch of OPCODE errors.
> 
> The relevant part of our kickstart looks like this ( we don't do 
> anything tricky in our packages or post install, just touch a few config 
> files.. )
> 
> install
> cdrom
> lang en_US
> langsupport --default=en_US en_US
> keyboard us
> skipx
> text
> ignoredisk --drives=sda1,sdb1,sdc1
> network --device eth0 --bootproto static --ip 192.168.27.17 --netmask 
> 255.255.255.0 --hostname hostname.domain.com
> network --device eth1 --onboot no
> rootpw --iscrypted #####
> firewall --disabled
> authconfig --enableshadow --enablemd5
> timezone America/Los_Angeles
> selinux --disabled
> zerombr yes
> bootloader --location=mbr --append="rhgb quiet"
> reboot
> clearpart --all
> part /boot --fstype ext3 --size=128 --asprimary
> part swap --size=6912 --asprimary
> part pv.01 --size=100 --grow
> volgroup rootvg pv.01
> logvol / --fstype ext3 --vgname=rootvg --size=512 --name=rootlv
> logvol /tmp --fstype ext3 --vgname=rootvg --size=1024 --name=tmplv
> logvol /var --fstype ext3 --vgname=rootvg --size=1024 --name=varlv
> logvol /opt --fstype ext3 --vgname=rootvg --size=2048 --name=optlv
> logvol /home --fstype ext3 --vgname=rootvg --size=2048 --name=homelv
> logvol /usr --fstype ext3 --vgname=rootvg --size=2048 --name=usrlv
> logvol /usr/local --fstype ext3 --vgname=rootvg --size=2048 --name=locallv
> 
> %packages
> 
> Tried putting the 'ignoredisk' option in order to ignore the sda1 disk 
> that the USB shows up as, but no luck.  As a side note, the disks on the 
> HP show up as /dev/cciss/c0d0.
> 
> Any input would be appreciated.
> 
> Thanks.
> 
> -- 
> sh
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list




More information about the Kickstart-list mailing list