From 554eec278eb0e02da3a88f10101144a9ed0b3c09 Mon Sep 17 00:00:00 2001 From: Jonas Meurer Date: Sun, 20 Sep 2009 15:56:02 -0600 Subject: [PATCH] provide initramfs-tools hook to copy /sbin/blkid into initramfs Addresses-Debian-Bug: 544669 Signed-off-by: LaMont Jones --- debian/rules | 1 + debian/util-linux.dirs | 2 ++ debian/util-linux.initramfs | 16 ++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 debian/util-linux.initramfs 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 -- 2.39.5