[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#570172: initramfs hooks are not executed



Package: brltty
Version: 4.1-4
Severity: important
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu lucid ubuntu-patch

Hi,

It seems that initramfs hooks must be executable for them to be run during
an initramfs rebuild.  brltty's hook is not executable:

$ mkinitramfs -v -o /tmp/test.initrd
/usr/share/initramfs-tools/hooks/brltty ignored: not executable

The following patch to debian/rules should solve the problem:

diff -uNrp brltty-4.1~/debian/rules brltty-4.1/debian/rules
--- brltty-4.1~/debian/rules	2010-02-16 16:58:26.000000000 -0800
+++ brltty-4.1/debian/rules	2010-02-16 17:12:20.114336652 -0800
@@ -139,6 +139,7 @@ ifneq ($(DISABLE_JAVA_SUPPORT),1)
 	chmod 0644 debian/libbrlapi-java/usr/share/java/brlapi.jar
 endif
 	cp build-brltty/Documents/brltty.conf debian/brltty/etc/brltty.conf
+	chmod +x debian/$@/usr/share/initramfs-tools/hooks/brltty
 	dh_lisp -pcl-brlapi
 	dh_link -p$@ -plibbrlapi0.5 -plibbrlapi-dev
 	dh_strip

Thanks!

-Kees

-- 
Kees Cook                                            @debian.org



Reply to: