- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Upgrading kernel from Kickstart script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2002 09:33 AM
тАО07-17-2002 09:33 AM
Upgrading kernel from Kickstart script
Sorry, my first post here, so hopefully I included enough information.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2002 03:21 PM
тАО07-17-2002 03:21 PM
Re: Upgrading kernel from Kickstart script
You might want to have a look at http://www.redhat.com/mailing-lists/kickstart-list/, and see if the people on the list can help you further though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2002 06:27 PM
тАО07-17-2002 06:27 PM
Re: Upgrading kernel from Kickstart script
According to your post, your %post script could install your original kernel RPM, but failed to re-write your MBR...right?
As you know, lilo command use /etc/lilo.conf. During the install session, your installer working on RAM disk. Which have /etc directory.
But your filesystems on HD are mounted under /mnt/sysimage.
So I think lilo command have to use /mnt/sysimage/etc/lilo.conf.
You have 2 choices.
use -C /mnt/sysimage/etc/lilo.conf
or
chroot the system on HD then issue /sbin/lilo -v
I do "chroot" when ever I do this kind of troubleshoot.
Or, if you use grub, you don't need to update MBR like lilo.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2002 07:35 PM
тАО07-17-2002 07:35 PM
Re: Upgrading kernel from Kickstart script
All %post commands are run in a 'chroot' environment, so the /etc/lilo.conf file is indeed the one on his HDD, not that stored in the RAM disk image.
What I would also suggest is for Chad to watch the output from the %post commands (I think it's on the 4th VTY) during the installation, and see if it spits out any error messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 11:12 AM
тАО07-18-2002 11:12 AM
Re: Upgrading kernel from Kickstart script
Message when lilo is run at the end of
kickstart.
LILO version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger
'lba32' extensions Copyright (C) 1999,2000 John Coffman
Reading boot sector from /dev/cciss/c1d0p1
Merging with /boot/boot.b
Mapping message file /boot/message
Boot image: /boot/vmlinuz-2.4.18-3
Mapping RAM disk /boot/initrd-2.4.18-3.img
Added linux-old
Boot image: /boot/vmlinuz-2.4.18-3.netmgr.v01
Mapping RAM disk /boot/initrd-2.4.18-3.netmgr.v01.img
Added linux *
Backup copy of boot sector in /boot/boot.6901
Writing boot sector.
Now, after kickstart, the boot menu only
shows linux and it still points to old kernel.
After reboot, I run lilo again. Here is the output.
LILO version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger
'lba32' extensions Copyright (C) 1999,2000 John Coffman
Reading boot sector from /dev/cciss/c1d0p1
Merging with /boot/boo.b
ide-floppy driver 0.99.newide
hda: ATAPI 24x CD-ROM drive, 128kb Cache
Mapping message file /boot/message
Boot image: /boot/vmlinuz-2.4.18-3
Mapping RAM disk /boot/initrd-2.4.28-3.img
Added linux-old
Boot image: /boot/vmlinuz-2.4.18-3.netmgr.v01
Mapping RAM disk /boot/initrd-2.4.18-3.netmgr.v01.img
Added linux *
/boo/boot.6901 exists - no backup copy made
Writing boot sector
After this, when I reboot, I see both linux and linux-old as an option and linux boots to my new kernel.
Here is my lilo.conf file that I copy over during the kickstart install:
prompt
timeout=50
default=linux
boot=/dev/cciss/c1d0p1
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-2.4.18-3
label=linux-old
initrd=/boot/initrd-2.4.18-3.img
read-only
root=/dev/cciss/c1d0p2
image=/boot/vmlinuz-2.4.18-3.netmgr.v01
label=linux
initrd=/boot/initrd-2.4.18-3.netmgr.v01.img
read-only
root=/dev/cciss/c1d0p2
As far as using grub, I have had no luck with that either. When I install grub instead of lilo, it won't boot past the kernel load. It says it cannot mount the ext3 file system and is unable to find /sbin/init.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 03:25 PM
тАО07-18-2002 03:25 PM
Re: Upgrading kernel from Kickstart script
You aren't using a '%post --nochroot' are you?
It looks as if everything is doing what it's supposed to be doing :(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 06:24 PM
тАО07-18-2002 06:24 PM
Re: Upgrading kernel from Kickstart script
thanks for the comment.
BTW, one thing I can not get it.
>Backup copy of boot sector in /boot/boot.6901
What is 6901?
I think this number is 69=major, 01=minor number of the device file.
If the system disk is scsi, it should be /boot/boot.0800.
But your system returned 6901.
What is the device, 6901 pointing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2002 02:54 PM
тАО07-21-2002 02:54 PM
Re: Upgrading kernel from Kickstart script
*goes docco hunting* Nope, I was wrong..
quote (man lilo):
-s save-file
When lilo overwrites the boot sector, it preserves the old contents in a file, by default /boot/boot.NNNN where NNNN depends on the device. This option specifies an alternate save file for the boot sector. (Or, together with the -u option, specifies from where to restore the boot sector.)
quote (/usr/share/doc/lilo-21.4.4/README):
Whenever the map installer updates a boot sector, the original boot sector is copied to /boot/boot.
Still doesn't really explain 6901 though :P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2002 11:30 AM
тАО07-29-2002 11:30 AM