RHEL5 kickstart overwrites USB

Hajducko, Steven steven.hajducko at digitalinsight.com
Thu Oct 11 23:54:44 UTC 2007


Excuse the spam, this is just bizarre.
 
Here's the snippet of the anaconda.log showing that on first pass,
anaconda cannot find sda1:/gremlin1b.cfg, but once I hit enter again,
without changing the path, it finds it successfully.
 
18:49:25 INFO    : modules to insert bnx2 cciss
18:49:25 INFO    : loaded bnx2 from /modules/modules.cgz
18:49:25 INFO    : loaded cciss from /modules/modules.cgz
18:49:25 INFO    : going to rmmod usb-storage
18:49:25 INFO    : inserted /tmp/bnx2.ko
18:49:26 INFO    : inserted /tmp/cciss.ko
18:49:26 INFO    : modules to insert usb-storage
18:49:26 INFO    : loaded usb-storage from /modules/modules.cgz
18:49:27 INFO    : inserted /tmp/usb-storage.ko
18:49:27 INFO    : removed usb-storage from modprobe.conf
18:49:27 INFO    : load module set done
18:49:34 INFO    : load module set done
18:49:34 INFO    : getting kickstart file
18:49:34 INFO    : getting kickstart file from harddrive
18:49:34 INFO    : Loading ks from device sda1 on path /gremlin1b.cfg
18:49:34 INFO    : getFileFromBlockDevice(sda1, /gremlin1b.cfg)
18:49:34 ERROR   : failed to mount /dev/sda1: No such device or address
18:49:40 INFO    : getting kickstart file from harddrive
18:49:40 INFO    : Loading ks from device sda1 on path /gremlin1b.cfg
18:49:40 INFO    : getFileFromBlockDevice(sda1, /gremlin1b.cfg)
18:49:40 INFO    : Searching for file on path /tmp/mnt//gremlin1b.cfg
18:49:40 INFO    : file copied to /tmp/ks.cfg
18:49:40 INFO    : setting up kickstart
18:49:40 INFO    : kickstartFromCD

 
--
sh

________________________________

From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of Hajducko, Steven
Sent: Thursday, October 11, 2007 3:57 PM
To: Discussion list about Kickstart
Subject: RE: RHEL5 kickstart overwrites USB


Yeah, we're sure.  The only thing on the USB drive is the kickstart file
and you can see the kickstart successfully locate and pick up the
configuration file off the USB stick.
 
I'll add the sleep to the %pre and see if there is anything else I can
watch but I'm positive that anaconda is picking up the configuration
file from sda1.
 
--
sh

________________________________

From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of Shabazian, Chip
Sent: Thursday, October 11, 2007 3:53 PM
To: Discussion list about Kickstart
Subject: RE: RHEL5 kickstart overwrites USB



Are you sure the system is seeing the USB as sd(a,b,c)1?  Add a sleep to
your %pre, get a shell, and take a look.

 

________________________________

From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of Hajducko, Steven
Sent: Thursday, October 11, 2007 3:47 PM
To: kickstart-list at redhat.com
Subject: RHEL5 kickstart overwrites USB

 

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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20071011/698d06f6/attachment.htm>


More information about the Kickstart-list mailing list