Version: 2.8.1-1
i ran into this issue when installing ltsp, which builds a chroot with udev
installed, but not active, as it typically just needs udev when booting from
the network.
postinst apparently just checks if udev is active, and assumes MAKEDEV is
present if udev is not active. this patch does nothing if /dev/MAKEDEV is not
present and udev is installed but not active:
--- postinst.orig 2009-10-30 14:11:51.000000000 -0700
+++ postinst 2009-10-30 14:16:39.000000000 -0700
@@ -18,8 +18,12 @@
# Create device node with the right perms
if [ ${udev} -eq 0 ]; then
# Call makedev and fix perms
- cd /dev && ./MAKEDEV fuse
- chgrp fuse /dev/fuse
+ if [ -e /dev/MAKEDEV ]; then
+ cd /dev && ./MAKEDEV fuse
+ chgrp fuse /dev/fuse
+ else
+ echo "MAKEDEV not installed, skipping device node creation."
+ fi
else
# Udev is active, nothing to do.
echo "udev active, skipping device node creation."
there are probably some corner cases where this is insufficient.
live well,
vagrant
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]