<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Upgrading kernel from Kickstart script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766427#M1990</link>
    <description>Actually (without looking at any references), I thought it was the PID of the calling Lilo process..&lt;BR /&gt;&lt;BR /&gt;*goes docco hunting*  Nope, I was wrong..&lt;BR /&gt;&lt;BR /&gt;quote (man lilo):&lt;BR /&gt;&lt;BR /&gt;-s save-file&lt;BR /&gt;   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.)&lt;BR /&gt;&lt;BR /&gt;quote (/usr/share/doc/lilo-21.4.4/README):&lt;BR /&gt;&lt;BR /&gt;Whenever the map installer updates a boot sector, the original boot sector is copied to /boot/boot.&lt;NUMBER&gt;, where &lt;NUMBER&gt; is the hexadecimal device number. If such a file already exists, no backup copy is made.&lt;BR /&gt;&lt;BR /&gt;Still doesn't really explain 6901 though :P&lt;/NUMBER&gt;&lt;/NUMBER&gt;</description>
    <pubDate>Sun, 21 Jul 2002 21:54:30 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2002-07-21T21:54:30Z</dc:date>
    <item>
      <title>Upgrading kernel from Kickstart script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766420#M1983</link>
      <description>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?&lt;BR /&gt;&lt;BR /&gt;Sorry, my first post here, so hopefully I included enough information.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 17 Jul 2002 16:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766420#M1983</guid>
      <dc:creator>Chad C. Beattie</dc:creator>
      <dc:date>2002-07-17T16:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading kernel from Kickstart script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766421#M1984</link>
      <description>Unfortunately, this is one thing that I've never tried to do using Kickstart.  Assuming it's the last thing in the %post, I can't see why it wouldn't be working.&lt;BR /&gt;&lt;BR /&gt;You might want to have a look at &lt;A href="http://www.redhat.com/mailing-lists/kickstart-list/," target="_blank"&gt;http://www.redhat.com/mailing-lists/kickstart-list/,&lt;/A&gt; and see if the people on the list can help you further though.</description>
      <pubDate>Wed, 17 Jul 2002 22:21:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766421#M1984</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2002-07-17T22:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading kernel from Kickstart script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766422#M1985</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;According to your post, your %post script could install your original kernel RPM, but failed to re-write your MBR...right?&lt;BR /&gt;&lt;BR /&gt;As you know, lilo command use /etc/lilo.conf. During the install session, your installer working on RAM disk. Which have /etc directory.&lt;BR /&gt;But your filesystems on HD are mounted under /mnt/sysimage.&lt;BR /&gt;So I think lilo command have to use /mnt/sysimage/etc/lilo.conf.&lt;BR /&gt;&lt;BR /&gt;You have 2 choices.&lt;BR /&gt;&lt;BR /&gt;use -C /mnt/sysimage/etc/lilo.conf&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;chroot the system on HD then issue /sbin/lilo -v&lt;BR /&gt;&lt;BR /&gt;I do "chroot" when ever I do this kind of troubleshoot.&lt;BR /&gt;&lt;BR /&gt;Or, if you use grub, you don't need to update MBR like lilo.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jul 2002 01:27:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766422#M1985</guid>
      <dc:creator>I_M</dc:creator>
      <dc:date>2002-07-18T01:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading kernel from Kickstart script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766423#M1986</link>
      <description>Masanari,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Thu, 18 Jul 2002 02:35:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766423#M1986</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2002-07-18T02:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading kernel from Kickstart script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766424#M1987</link>
      <description>Ok, here are the messages I get.  This one is what I see when watching the kickstart install via the virtual terminal:&lt;BR /&gt;&lt;BR /&gt;Message when lilo is run at the end of&lt;BR /&gt;kickstart.&lt;BR /&gt;&lt;BR /&gt;LILO version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger&lt;BR /&gt;'lba32' extensions Copyright (C) 1999,2000 John Coffman&lt;BR /&gt;&lt;BR /&gt;Reading boot sector from /dev/cciss/c1d0p1&lt;BR /&gt;Merging with /boot/boot.b&lt;BR /&gt;Mapping message file /boot/message&lt;BR /&gt;Boot image: /boot/vmlinuz-2.4.18-3&lt;BR /&gt;Mapping RAM disk /boot/initrd-2.4.18-3.img&lt;BR /&gt;Added linux-old&lt;BR /&gt;Boot image: /boot/vmlinuz-2.4.18-3.netmgr.v01&lt;BR /&gt;Mapping RAM disk /boot/initrd-2.4.18-3.netmgr.v01.img&lt;BR /&gt;Added linux *&lt;BR /&gt;Backup copy of boot sector in /boot/boot.6901&lt;BR /&gt;Writing boot sector.&lt;BR /&gt;&lt;BR /&gt;Now, after kickstart, the boot menu only&lt;BR /&gt;shows linux and it still points to old kernel.&lt;BR /&gt;After reboot, I run lilo again.  Here is the output.&lt;BR /&gt;&lt;BR /&gt;LILO version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger&lt;BR /&gt;'lba32' extensions Copyright (C) 1999,2000 John Coffman&lt;BR /&gt;&lt;BR /&gt;Reading boot sector from /dev/cciss/c1d0p1&lt;BR /&gt;Merging with /boot/boo.b&lt;BR /&gt;ide-floppy driver 0.99.newide&lt;BR /&gt;hda:  ATAPI 24x CD-ROM drive, 128kb Cache&lt;BR /&gt;Mapping message file /boot/message&lt;BR /&gt;Boot image: /boot/vmlinuz-2.4.18-3&lt;BR /&gt;Mapping RAM disk /boot/initrd-2.4.28-3.img&lt;BR /&gt;Added linux-old&lt;BR /&gt;Boot image: /boot/vmlinuz-2.4.18-3.netmgr.v01&lt;BR /&gt;Mapping RAM disk /boot/initrd-2.4.18-3.netmgr.v01.img&lt;BR /&gt;Added linux *&lt;BR /&gt;/boo/boot.6901 exists - no backup copy made&lt;BR /&gt;Writing boot sector&lt;BR /&gt;&lt;BR /&gt;After this, when I reboot, I see both linux and linux-old as an option and linux boots to my new kernel.&lt;BR /&gt;&lt;BR /&gt;Here is my lilo.conf file that I copy over during the kickstart install:&lt;BR /&gt;&lt;BR /&gt;prompt&lt;BR /&gt;timeout=50&lt;BR /&gt;default=linux&lt;BR /&gt;boot=/dev/cciss/c1d0p1&lt;BR /&gt;map=/boot/map&lt;BR /&gt;install=/boot/boot.b&lt;BR /&gt;message=/boot/message&lt;BR /&gt;linear&lt;BR /&gt;&lt;BR /&gt;image=/boot/vmlinuz-2.4.18-3&lt;BR /&gt;        label=linux-old&lt;BR /&gt;        initrd=/boot/initrd-2.4.18-3.img&lt;BR /&gt;        read-only&lt;BR /&gt;        root=/dev/cciss/c1d0p2&lt;BR /&gt;&lt;BR /&gt;image=/boot/vmlinuz-2.4.18-3.netmgr.v01&lt;BR /&gt;        label=linux&lt;BR /&gt;        initrd=/boot/initrd-2.4.18-3.netmgr.v01.img&lt;BR /&gt;        read-only&lt;BR /&gt;        root=/dev/cciss/c1d0p2&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Thu, 18 Jul 2002 18:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766424#M1987</guid>
      <dc:creator>Chad C. Beattie</dc:creator>
      <dc:date>2002-07-18T18:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading kernel from Kickstart script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766425#M1988</link>
      <description>Is '/boot' it's own filesystem and is it mounted at the time you issue the 'lilo' command from the %post?&lt;BR /&gt;&lt;BR /&gt;You aren't using a '%post --nochroot' are you?&lt;BR /&gt;&lt;BR /&gt;It looks as if everything is doing what it's supposed to be doing :(</description>
      <pubDate>Thu, 18 Jul 2002 22:25:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766425#M1988</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2002-07-18T22:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading kernel from Kickstart script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766426#M1989</link>
      <description>Stuart, &lt;BR /&gt;thanks for the comment.&lt;BR /&gt;&lt;BR /&gt;BTW, one thing I can not get it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Backup copy of boot sector in /boot/boot.6901 &lt;BR /&gt;&lt;BR /&gt;What is 6901?&lt;BR /&gt;I think this number is 69=major, 01=minor number of the device file.&lt;BR /&gt;If the system disk is scsi, it should be /boot/boot.0800.  &lt;BR /&gt;But your system returned 6901.&lt;BR /&gt;What is the device, 6901 pointing?&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jul 2002 01:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766426#M1989</guid>
      <dc:creator>I_M</dc:creator>
      <dc:date>2002-07-19T01:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading kernel from Kickstart script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766427#M1990</link>
      <description>Actually (without looking at any references), I thought it was the PID of the calling Lilo process..&lt;BR /&gt;&lt;BR /&gt;*goes docco hunting*  Nope, I was wrong..&lt;BR /&gt;&lt;BR /&gt;quote (man lilo):&lt;BR /&gt;&lt;BR /&gt;-s save-file&lt;BR /&gt;   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.)&lt;BR /&gt;&lt;BR /&gt;quote (/usr/share/doc/lilo-21.4.4/README):&lt;BR /&gt;&lt;BR /&gt;Whenever the map installer updates a boot sector, the original boot sector is copied to /boot/boot.&lt;NUMBER&gt;, where &lt;NUMBER&gt; is the hexadecimal device number. If such a file already exists, no backup copy is made.&lt;BR /&gt;&lt;BR /&gt;Still doesn't really explain 6901 though :P&lt;/NUMBER&gt;&lt;/NUMBER&gt;</description>
      <pubDate>Sun, 21 Jul 2002 21:54:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766427#M1990</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2002-07-21T21:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading kernel from Kickstart script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766428#M1991</link>
      <description>Just an FYI:  I tried this same install on our other DL380, and it worked just fine.  So I did the smartstart system erase on the system I was having problems and reconfigured it all.  After doing the ks install again, it worked fine.  Thanks everyone for all of your help.</description>
      <pubDate>Mon, 29 Jul 2002 18:30:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/upgrading-kernel-from-kickstart-script/m-p/2766428#M1991</guid>
      <dc:creator>Chad C. Beattie</dc:creator>
      <dc:date>2002-07-29T18:30:03Z</dc:date>
    </item>
  </channel>
</rss>

