summaryrefslogtreecommitdiff
path: root/kernel/postrm.d
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2008-09-16 14:51:30 +0200
committermaximilian attems <maks@debian.org>2008-09-16 14:54:06 +0200
commitc5a45496b9c72e41333e213979d43fbcff34da9f (patch)
tree33da7d4f1ff4fea939b6dda77aa8b28195827f1f /kernel/postrm.d
parent203f66bd11db9ab01e49cd4b496391e95d3eb34f (diff)
downloadinitramfs-tools-c5a45496b9c72e41333e213979d43fbcff34da9f.tar.gz
initramfs-tools-c5a45496b9c72e41333e213979d43fbcff34da9f.zip
initramfs-tools: Add support for linux-2.6 make deb-pkg target
it generates linux images that look into this directories for maintainer script action. make sure to generate an intramfs and also to remove it.
Diffstat (limited to 'kernel/postrm.d')
-rwxr-xr-xkernel/postrm.d/update-initramfs7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/postrm.d/update-initramfs b/kernel/postrm.d/update-initramfs
new file mode 100755
index 0000000..432d672
--- /dev/null
+++ b/kernel/postrm.d/update-initramfs
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+
+[ -z "$1" ] && exit 0
+
+# delete initramfs
+update-initramfs -d -k "$1"