]> err.no Git - util-linux/commitdiff
provide initramfs-tools hook to copy /sbin/blkid into initramfs
authorJonas Meurer <jonas@freesources.org>
Sun, 20 Sep 2009 21:56:02 +0000 (15:56 -0600)
committerLaMont Jones <lamont@debian.org>
Sun, 20 Sep 2009 21:57:12 +0000 (15:57 -0600)
Addresses-Debian-Bug: 544669
Signed-off-by: LaMont Jones <lamont@debian.org>
debian/rules
debian/util-linux.dirs
debian/util-linux.initramfs [new file with mode: 0644]

index 94625d7119d74b07870a89030a5f3b2813bd2178..55d64ec3d2e3f2a88d14cab021b5fbfac722610d 100755 (executable)
@@ -67,6 +67,7 @@ install: build
        $(MAKE) install DESTDIR=`pwd`/debian/util-linux INSTALL_STRIP_FLAG=""
        dh_installdocs -i -s
        install -m 644 login-utils/README.modems-with-agetty debian/util-linux/usr/share/doc/util-linux/README.modems-with-getty
+       install -m 755 debian/util-linux.initramfs debian/util-linux/usr/share/initramfs-tools/hooks/util-linux
        dh_installexamples -i -s
        dh_installmenu -i -s
        dh_installcron -i -s
index 16ef4dd17102a3d9dc3ea0bae970255fa19c7492..5bf278205c5e2010baf828eb964f5b77e69405e4 100644 (file)
@@ -16,6 +16,8 @@ usr/share/info/
 usr/share/doc/
 usr/share/doc/util-linux/
 usr/share/doc/util-linux/examples/
+usr/share/initramfs-tools/
+usr/share/initramfs-tools/hooks/
 usr/share/lintian/
 usr/share/lintian/overrides/
 lib/
diff --git a/debian/util-linux.initramfs b/debian/util-linux.initramfs
new file mode 100644 (file)
index 0000000..ea1e165
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+PREREQ=""
+
+prereqs()
+{
+       echo "$PREREQ"
+}
+
+case $1 in
+    prereqs)   prereqs; exit 0;;
+esac
+
+. /usr/share/initramfs-tools/hook-functions
+
+copy_exec /sbin/blkid