summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@debian.org>2008-10-14 15:02:17 -0400
committermaximilian attems <maks@debian.org>2009-02-17 15:43:03 +0100
commit7812c98ccaf731b0d76909f924639af4e9554ed3 (patch)
treea683418e5d9a965c67f5d8990a7b1208b7362edc
parent13df18822a697053e10e8f42397e5237a15590f6 (diff)
downloadinitramfs-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.install1
-rwxr-xr-xdebian/rules2
-rwxr-xr-xkernel/postinst.d/initramfs-tools10
-rwxr-xr-xkernel/postrm.d/initramfs-tools10
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"