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

Bug#594127: Fix for bug number 590028 is incomplete



On Fri, 27 Aug 2010 14:02:13 -0400 (EDT), Stephen Powell wrote:

> The alternative, obviously, is a separate hook script to maintain symlinks.
> That immediately raises two more questions: (1) How do we make sure that
> it executes *after* the initramfs hook and *before* the boot loader hook, and
> (2) which (required) package will own and maintain it?  Your thoughts?

I just thought of something else.  Currently, the default value for
"do_symlinks" in /etc/kernel-img.conf is "yes", if I'm not mistaken.
But in Squeeze, that will only apply to stock kernels.  In order to take
care of symlinks for kernels created by make-kpkg and "make deb-pkg",
a symlink hook script will be needed.  But then, for stock kernels,
symlinks will be maintained twice, which is duplication of effort.
So the default value for do_symlinks should change to "no", once the
hook script is in place.

As for the hook script itself, it doesn't need to examine /etc/kernel-img.conf.
The logic could say, for example, if /vmlinuz exists and is a symbolic
link, or if /boot/vmlinuz exists and is a symbolic link, then maintain
symbolic links.  Otherwise don't.  Or maybe you want to check for all
four of the standard symlink names (vmlinuz, vmlinuz.old, initrd.img,
initrd.img.old) instead of just vmlinuz.  Your thoughts?

All of this still leaves zipl without a (required) initramfs hook, though.

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



Reply to: