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

Re: Installing a custom kernel on Debian S/390(wheezy/sid)



On Sun, 05 Aug 2012 15:08:23 -0400 (EDT), Sampsa Laine wrote:
> 
> I copied the two scripts into the /etc/kernel dirs.

Good.  Make sure the attributes are set properly.  In particular,
it's very important that the scripts be marked executable.  Otherwise,
they won't get run.
> 
> Am in the progress of re-reading it for the third time now,
> I think I've got most of it.
> 
> I also looked in the /etc/kernel/post* dirs, I take it the dpkg
> command will invoke zipl to add the relevant entries to the boot
> loader?

Yes.  When dpkg installs the .deb package, the scripts in
/etc/kernel/postinst.d will get run in alphabetical order.
The three most important scripts in this directory are

(1) initramfs-tools, which will build an initial RAM file system for
    the new kernel
(2) zy-symlinks, which will maintain the symbolic links.  (In particular,
    the most recently installed kernel will get the vmlinuz symbolic link,
    and the initial RAM file system which goes with it will get the
    initrd.img symbolic link.)
(3) zz-zipl, which will run zipl to re-create the map file.  The newly
    installed kernel will now be the default kernel.

-- 
  .''`.     Stephen Powell    
 : :'  :
 `. `'`
   `-


Reply to: