tags 395889 patch pending thanks This is the patch I applied to the pending NMU:
diff -u udev-0.100/debian/changelog udev-0.100/debian/changelog
--- udev-0.100/debian/changelog
+++ udev-0.100/debian/changelog
@@ -1,3 +1,13 @@
+udev (0.100-2.3) unstable; urgency=high
+
+ * Non-maintainer upload.
+ * Fix chroot detection for 2.6.18 kernels and beyond (c.f. kernel commit
+ 778c1144771f0064b6f51bee865cceb0d996f2f9). The fix was suggested to me by
+ the maintainer himself on 18 Oct 2006. Urgency high for it closes: #395889,
+ which is RC.
+
+ -- martin f. krafft <[EMAIL PROTECTED]> Wed, 15 Nov 2006 14:29:45 +0100
+
udev (0.100-2.2) unstable; urgency=high
* Non-maintainer upload.
diff -u udev-0.100/debian/udev.postinst udev-0.100/debian/udev.postinst
--- udev-0.100/debian/udev.postinst
+++ udev-0.100/debian/udev.postinst
@@ -69,7 +69,10 @@
}
chrooted() {
- if [ -r /proc/1/root ]; 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 and hence return false.
return 1
fi
echo "A chroot environment has been detected, udev not started."
--
.''`. martin f. krafft <[EMAIL PROTECTED]>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~madduck - http://debiansystem.info
`- Debian - when you have better things to do than fixing systems
signature.asc
Description: Digital signature (GPG/PGP)

