Package: debhelper
Version: 7.0.15
Severity: wishlist

debhelper should have a script for adding initramfs stuff more easily.
I thought of the following functions:
1. add package.initramfs-hook as /usr/share/initramfs-tools/hooks/package
2. add the following snippet to postinst:
case "$1" in
  configure)
        if [ -x /usr/sbin/update-initramfs \
            -a -e /etc/initramfs-tools/initramfs.conf ]; then
                update-initramfs -u
        fi
    ;;
esac
3. add the following snippet to postrm:
case "$1" in
  remove)
        if [ -x /usr/sbin/update-initramfs \
            -a -e /etc/initramfs-tools/initramfs.conf ]; then
                update-initramfs -u
        fi
    ;;
esac

Regards
Evgeni

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-rc9-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debhelper depends on:
ii  binutils            2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii  dpkg-dev            1.14.20              Debian package development tools
ii  file                4.24-4               Determines file type using "magic"
ii  html2text           1.3.2a-3             An advanced HTML to text converter
ii  man-db              2.5.2-2              on-line manual pager
ii  perl                5.10.0-11            Larry Wall's Practical Extraction 
ii  po-debconf          1.0.15               manage translated Debconf template

debhelper recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to