Package: libc6 Version: 2.11.2-2 Tags: patch hi, libc6 fails to install in a squeeze qemubuilder on a lenny host. There is no telinit -> postinst fails. See qemubuilder-bug 545691 for additional information. The postinst of package libselinux makes additional checks, could be better then my attached patch. thx Stefan
diff -uNrp eglibc-2.11.2.original//debian/debhelper.in/libc.postinst eglibc-2.11.2/debian/debhelper.in/libc.postinst
--- eglibc-2.11.2.original//debian/debhelper.in/libc.postinst 2010-07-13 14:39:45.000000000 +0200
+++ eglibc-2.11.2/debian/debhelper.in/libc.postinst 2010-07-13 15:01:17.724671379 +0200
@@ -216,7 +216,9 @@ then
if [ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i /proc/1/root 2>/dev/null)" ]; then
# the devicenumber/inode pair of / is the same as that of /sbin/init's
# root, so we're *not* in a chroot
- (telinit u ; sleep 1)
+ if [ -x /sbin/telinit ]; then
+ (telinit u ; sleep 1)
+ fi
fi
fi
fi
Attachment:
signature.asc
Description: OpenPGP digital signature