RHEL5 kickstart overwrites USB

Hajducko, Steven steven.hajducko at digitalinsight.com
Fri Oct 12 17:32:02 UTC 2007


Thanks,

I was trying to get around the clearpart with the 'ignoredisk'
statement, but I think I have the wrong format ( specified sda1 rather
than sda ).  If that doesn't work, I'll use the clearpart and part
--ondrive statements.

However, this still doesn't explain why anaconda doesn't see the USB
device the first time, but once I hit enter after it complains, it
locates it fine.

--
sh 

-----Original Message-----
From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of mups.cp
Sent: Friday, October 12, 2007 7:07 AM
To: Discussion list about Kickstart
Subject: Re: RHEL5 kickstart overwrites USB

Your USB was formated due to the clearpart --all This instruct the
kicstart to clean all the partitions that are available on your system.
I think that you could avoid this by instructing clearpart to only clear
your hardrive with clearpart --drives=sdX.
The kickstart is recognizing all your hard disks as part of your system.
The docs from redhat warns about part:
"All partitions created are formatted as part of the installation
process unless --noformat and --onpart are used. "
You could use part with --onpart to specify where you want you partition
be installed. If you don't, the system will try by himself and chose
your USB because it was clean.



On 10/11/07, Hajducko, Steven <steven.hajducko at digitalinsight.com>
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
>

_______________________________________________
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