diff options
author | Andres Salomon <dilinger@debian.org> | 2008-10-14 15:02:17 -0400 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2009-02-17 15:43:03 +0100 |
commit | 7812c98ccaf731b0d76909f924639af4e9554ed3 (patch) | |
tree | a683418e5d9a965c67f5d8990a7b1208b7362edc | |
parent | 13df18822a697053e10e8f42397e5237a15590f6 (diff) | |
download | initramfs-tools-7812c98ccaf731b0d76909f924639af4e9554ed3.tar.gz initramfs-tools-7812c98ccaf731b0d76909f924639af4e9554ed3.zip |
initramfs-tools: Readd support for linux-2.6 make deb-pkg target.
..via /etc/kernel
Signed-off-by: Andres Salomon <dilinger@debian.org>
(closes: #504551)
[ fixed update-initramfs postinst call s/-u/-c/ -maks ]
Signed-off-by: maximilian attems <maks@debian.org>
-rw-r--r-- | debian/initramfs-tools.install | 1 | ||||
-rwxr-xr-x | debian/rules | 2 | ||||
-rwxr-xr-x | kernel/postinst.d/initramfs-tools | 10 | ||||
-rwxr-xr-x | kernel/postrm.d/initramfs-tools | 10 |
4 files changed, 22 insertions, 1 deletions
diff --git a/debian/initramfs-tools.install b/debian/initramfs-tools.install index fb1c088..71670ef 100644 --- a/debian/initramfs-tools.install +++ b/debian/initramfs-tools.install @@ -10,3 +10,4 @@ conf/modules usr/share/initramfs-tools update-initramfs usr/sbin debian/script usr/share/bug/initramfs-tools debian/lintian/initramfs-tools usr/share/lintian/overrides +kernel etc diff --git a/debian/rules b/debian/rules index 2a5ae55..1376aa9 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,6 @@ include /usr/share/cdbs/1/rules/debhelper.mk pre-build:: chmod +x init mkinitramfs chmod +x hooks/* - for x in `find scripts/ -maxdepth 1 -type d | tail -n+2`; do \ + for x in `find scripts/ kernel/ -maxdepth 1 -type d | tail -n+2`; do \ chmod -R +x $$x; \ done diff --git a/kernel/postinst.d/initramfs-tools b/kernel/postinst.d/initramfs-tools new file mode 100755 index 0000000..1cb72a8 --- /dev/null +++ b/kernel/postinst.d/initramfs-tools @@ -0,0 +1,10 @@ +#!/bin/sh + +# passing the kernel version is required +[ -z "$1" ] && exit 0 + +# kernel-package passes an extra arg; hack to not run under kernel-package +[ -z "$2" ] || exit 0 + +# we're good - create initramfs. update runs do_bootloader +update-initramfs -c -t -k "$1" diff --git a/kernel/postrm.d/initramfs-tools b/kernel/postrm.d/initramfs-tools new file mode 100755 index 0000000..278a6fc --- /dev/null +++ b/kernel/postrm.d/initramfs-tools @@ -0,0 +1,10 @@ +#!/bin/sh + +# passing the kernel version is required +[ -z "$1" ] && exit 0 + +# kernel-package passes an extra arg; hack to not run under kernel-package +[ -z "$2" ] || exit 0 + +# delete initramfs +update-initramfs -d -k "$1" |