Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Help with a ks.cfg problem

Help with a ks.cfg problem

2005-06-28       - By Anthony Lynch

 Back
Hey all,

I am kind of new to Linux, and I am attempting to fix a kernel panic with my
kickstart. I am trying to fix an apm problem on our laptops. We manually do
the fix now by running the grub editor when the system is loaded and add
apm=off to the second line. Once the system is loaded we add that to the
grub.conf. This fixes the kernel panic. What I am trying to do is add
something to the %post script section of my kickstart. The kickstart works
perfectly except for the %post scripts. I cannot figure out how to either

a. copy a new grub.conf from my cdrom to the /boot/grub/ directory

or

b. write to the current grub.conf file

I have tried it a couple of different ways, but none seem to work.
First I tried this:

#########################################################
#This will allow the computer to turn off the APM support
#########################################################
cp /boot/grub/grub.conf /boot/grub/grub.conf.orig
cp /mnt/cdrom/grub/grub.conf /boot/grub/grub.conf

It didn't work, then I tried this:

#######################################################
#fix the /boot/grub/grub.conf file - it defaults to a
#apm which causes a kernel panic
#######################################################
if ( ! -e /boot/grub/grub.conf.orig ) then
cp /boot/grub/grub.conf /boot/grub/grub.conf.orig
sed -e 's/ide-scsi/ide-scsi apm=off/' /boot/grub/grub.conf.orig >
/boot/grub/grub.conf
endif

It did not work, finally I am trying this:

#######################################################
#fix the /boot/grub/grub.conf file - it defaults to a
#apm which causes a kernel panic
#######################################################
if ( ! -e /boot/grub/grub.conf.orig ) then
cp /boot/grub/grub.conf /mnt/sysimage/boot/grub/grub.conf.orig
sed -e 's/ide-scsi/ide-scsi apm=off/' /mnt/sysimage/boot/grub/grub.conf.orig
> /mnt/sysimage/boot/grub/grub.conf
endif

The system is loading right now.

Thanks

Tony




--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Earn $52 per hosting referral at Lunarpages.