Hi,

Here's a new patch with the changes you requested via IRC.

-- 
Robert Millan
diff -ur debootstrap-0.3.1.7.old/functions debootstrap-0.3.1.7/functions
--- debootstrap-0.3.1.7.old/functions   2005-08-13 07:40:54.000000000 +0200
+++ debootstrap-0.3.1.7/functions       2005-10-13 10:09:50.000000000 +0200
@@ -732,12 +732,21 @@
 }
 
 setup_proc () {
-  on_exit "umount $TARGET/dev/pts"
-  on_exit "umount $TARGET/dev/shm"
-  on_exit "umount $TARGET/proc/bus/usb"
+  case "$ARCH" in
+    kfreebsd-*)
+      on_exit "umount $TARGET/dev"
+      procfs="linprocfs"
+    ;;
+    *)
+      on_exit "umount $TARGET/dev/pts"
+      on_exit "umount $TARGET/dev/shm"
+      on_exit "umount $TARGET/proc/bus/usb"
+      procfs="proc"
+    ;;
+  esac
   on_exit "umount $TARGET/proc"
   umount $TARGET/proc 2>/dev/null || true
-  in_target mount -t proc proc /proc
+  in_target mount -t ${procfs} proc /proc
 }
 
 setup_proc_fakechroot () {
@@ -746,15 +755,21 @@
 }
 
 setup_devices () {
-  if [ -e $DEVICES_TARGZ ]; then
-    (cd "$TARGET"; zcat $DEVICES_TARGZ | tar -xf -)
-  else
-    if [ -e /dev/.devfsd ]; then
-      in_target mount -t devfs devfs /dev
-    else
-      error 1 NODEVTGZ "no %s. cannot create devices" "$DEVICES_TARGZ"
-    fi
-  fi
+  case "$ARCH" in
+    kfreebsd-*)
+      in_target mount -t devfs devfs /dev ;;
+    *)
+      if [ -e $DEVICES_TARGZ ]; then
+        (cd "$TARGET"; zcat $DEVICES_TARGZ | tar -xf -)
+      else
+        if [ -e /dev/.devfsd ] ; then
+          in_target mount -t devfs devfs /dev
+        else
+          error 1 NODEVTGZ "no %s. cannot create devices" "$DEVICES_TARGZ"
+        fi
+      fi
+    ;;
+  esac
 }
 
 setup_devices_fakechroot () {

Reply via email to