RE: Upgrade kernel from kickstart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have not been able to get grub to work on this system.  I have
tried manually installing RedHat 7.3 and choosing grub instead of
lilo.  After the system is booted, the kernel loads, but then it is
unable to pass control to init.  I get a message saying it could not
mount the ext3 file system and then it cannot find /sbin/init.  From
what I can tell, grub is installed and configured correctly.  

- -----Original Message-----
From: Buro, Nicholas F [mailto:nicholas_buro@xxxxxxxxx] 
Sent: Thursday, July 18, 2002 4:04 PM
To: 'kickstart-list@xxxxxxxxxx'
Subject: RE: Upgrade kernel from kickstart


Is there any specific reason you need to use LILO? I have run into a
similar issue, and my solution with GRUB was to run the following in
the post
install:

"perl -pi -e 's/default=.*/default=0/g' /boot/grub/grub.conf"

Good luck
- --N

- -----Original Message-----
From: Beattie, Chad [mailto:Chad.Beattie@xxxxxx] 
Sent: Thursday, July 18, 2002 3:24 PM
To: kickstart-list@xxxxxxxxxx
Subject: Upgrade kernel from kickstart



- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am working on automating a RedHat 7.3 setup on a couple of DL380
servers. I have built a custom kernel and made an rpm package from
the original src rpm for the generic kernel. After installing the
base os, I copy over some additional rpm files in the %post section
of the script. I then install the rpm packages. After the rpm's are
done, I copy over a pre-made lilo.conf file for the new kernel, the
last command I run from kickstart is /sbin/lilo -v. From watching the
install, everything works fine, even the lilo command works without
any errors. After server is rebooted, it still boots to the old
kernel. If I log into the server and run lilo again and reboot, it
boots to the new kernel. Anything I am missing here?

Here are the messages I get. This one is what I see when watching the
kickstart install via the virtual terminal:

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

Chad C. Beattie
Network Engineer
Work 402-758-7744
Cell 402-203-6437


- - -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGPfreeware 7.0.3 for non-commercial use


mQGiBDz+W6gRBADCge5O+na+vLWOoI5V/lKsSxrCdYsHNO/n8rkhhDJFwu0abvkc
GeNJiLWVBY5mMtNrQFsBmS2uNy3zZeLTjRuxn1U863/Sr7TZwoHQbSfUYRl5OL65
/XbvXNu/UtdZTTlsukElrsApQm80T8rSrQJTkF7vTL7S4ia9q4rv/Ia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Dk+gzpQb4h/N8sWuPuxhJYEwat9m8OdEPZQFem7Oxq
iET0Nt9LXvU/50d8C6jn23ol+Mh/s0a0LA3Vyq2b42oBAM1yjr0WrUHXu1fkLKum
IP5nAPmUpizSBitaEko0ki45ClLIbbHsMQ+vGCkjdXr/kuRXf//Gj3VpLnHsb4iL
fBV5jayTFHaoOnaxG1QSJ3tnc/vn7kCJAEwEGBECAAwFAjz+W6gFGwwAAAAACgkQ
EzzfaMyIuPmYMgCff3/uqYIXVyZUxeymzx27LweMQFcAn2oFSRiEbOfWIhYMxez+
pUUkqKmm
=MSi0
- - -----END PGP PUBLIC KEY BLOCK----- 

- -----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use 

iQA/AwUBPTcV0xM832jMiLj5EQKN0ACdF40DVjG/LAOtT8+nLd3O+lBTb0IAoPZc
f+bgQ/f6Cp2FItIi8U58JNzU
=w4JJ
- -----END PGP SIGNATURE-----


- ----------------------------------------------------------------------
- --------
Notice: This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (Whitehouse Station, New Jersey,
USA) that may be confidential, proprietary copyrighted and/or legally
privileged, and is intended solely for the use of the individual or
entity named on this message.  If you are not the intended recipient,
and have received this message in error, please immediately return
this by e-mail and then delete it.

======================================================================
========



_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/kickstart-list

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use 

iQA/AwUBPTcufRM832jMiLj5EQL4DgCdHTnoGPD86t789umwNA+QyZeaAEYAoIgi
sFcuRny+uJGf/BALSnFhNRLy
=A2YL
-----END PGP SIGNATURE-----

Attachment: PGPexch.htm.asc
Description: PGPexch.htm.asc


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux