From: Jonas Meurer Date: Sun, 20 Sep 2009 21:56:02 +0000 (-0600) Subject: provide initramfs-tools hook to copy /sbin/blkid into initramfs X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=554eec278eb0e02da3a88f10101144a9ed0b3c09;p=util-linux provide initramfs-tools hook to copy /sbin/blkid into initramfs Addresses-Debian-Bug: 544669 Signed-off-by: LaMont Jones --- diff --git a/debian/rules b/debian/rules index 94625d71..55d64ec3 100755 --- a/debian/rules +++ b/debian/rules @@ -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 diff --git a/debian/util-linux.dirs b/debian/util-linux.dirs index 16ef4dd1..5bf27820 100644 --- a/debian/util-linux.dirs +++ b/debian/util-linux.dirs @@ -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 index 00000000..ea1e1653 --- /dev/null +++ b/debian/util-linux.initramfs @@ -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