I found this patch in the ubuntu packages.  Obviously based on this
bug.  I suggest using this changelog:

 * [functions] Mount /sys if possible, and if /sys exist.  Patch from
   Cajus Pollmeier, Colin Watson and Ubuntu. (Closes: #289105)

diff -ur debootstrap-0.3.1.7/functions debootstrap-0.3.1.8/functions
--- debootstrap-0.3.1.7/functions       Sat Aug 13 07:40:54 2005
+++ debootstrap-0.3.1.8/functions       Tue Oct 18 17:00:52 2005
@@ -738,6 +738,11 @@
   on_exit "umount $TARGET/proc"
   umount $TARGET/proc 2>/dev/null || true
   in_target mount -t proc proc /proc
+  if [ -d "$TARGET/sys" ] && grep -q '[[:space:]]sysfs' /proc/filesystems; 
then+    on_exit "umount $TARGET/sys"
+    umount $TARGET/sys 2>/dev/null || true
+    in_target mount -t sysfs sysfs /sys
+  fi
 }

 setup_proc_fakechroot () {


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to