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

Bug#344641: please add means to run hooks/install scripts only for specific versions



Package: initramfs-tools
Version: 0.44
Severity: wishlist

I have a hook added by a kernel-patch, so it should only run with
a very specific version of linux-image.

Right now I have to do this at the top of the script:

case $0 in
  *_${version}) :;;
  *) exit 0;;
esac

This causes the script to exit if its name does not correspond to
the $version for which the initramfs is being created. It would be
nice if I could add the hooks or scripts to .../${version}.d/ and
expect them to only be executed/install to images for ${version}.

Please also refer to #298120.

-- System Information:
Debian Release: testing/unstable
  APT prefers stable
  APT policy: (700, 'stable'), (600, 'testing'), (98, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-686
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages initramfs-tools depends on:
ii  busybox                       1:1.01-4   Tiny utilities for small and embed
ii  cpio                          2.6-9      GNU cpio -- a program to manage ar
ii  klibc-utils                   1.1.1-6    small statically-linked utilities 
ii  udev                          0.076-6    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- debconf-show failed

-- 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer and author: http://debiansystem.info
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP (sub)keys? Use subkeys.pgp.net as keyserver!
 
"vulgarity is simply the conduct of other people."
                                                        
                                                        -- oscar wilde

Attachment: signature.asc
Description: Digital signature (GPG/PGP)


Reply to: