On Wed, Nov 02, 2005 at 12:21:22PM +0100, Michael Banck wrote:
> Here is a new patch, a bit cleaner now that kfreebsd support is in and
> we just do stuff according to $ARCH.
> 
> Is this one good to go in?  I just successfully created a buildd chroot
> with current debootstrap, this patch and the one in #314304.

Erm, attached this time, pressed the wrong button.


Michael
--- functions.orig      2005-11-02 14:17:38.000000000 +0100
+++ functions   2005-11-02 14:17:43.000000000 +0100
@@ -766,6 +766,8 @@
       umount $TARGET/proc 2>/dev/null || true
       in_target mount -t linprocfs proc /proc
     ;;
+    hurd-*)
+    ;;
     *)
       on_exit "umount $TARGET/dev/pts"
       on_exit "umount $TARGET/dev/shm"
@@ -791,6 +793,8 @@
   case "$ARCH" in
     kfreebsd-*)
       in_target mount -t devfs devfs /dev ;;
+    hurd-*)
+      setup_devices_hurd ;;
     *)
       if [ -e $DEVICES_TARGZ ]; then
         (cd "$TARGET"; zcat $DEVICES_TARGZ | tar -xf -)
@@ -805,6 +809,22 @@
   esac
 }
 
+setup_devices_hurd () {
+  mkdir -p $TARGET/servers/socket
+  /bin/settrans -cfk $TARGET/servers/socket/1 /hurd/pflocal
+  /bin/settrans -cf $TARGET/servers/socket/2 /hurd/pfinet
+  /bin/settrans -cfk $TARGET/servers/exec /hurd/exec
+  /bin/settrans -cf $TARGET/servers/crash-suspend /hurd/crash --suspend
+  /bin/settrans -cf $TARGET/servers/crash-kill /hurd/crash --kill
+  /bin/settrans -cf $TARGET/servers/crash-dump-core /hurd/crash --dump-core
+  /bin/settrans -cf $TARGET/servers/password /hurd/password
+  /bin/settrans -cf $TARGET/servers/default-pager /hurd/proxy-defpager
+  ln -fs crash-kill $TARGET/servers/crash
+  ln -fs 1 $TARGET/servers/socket/local
+  ln -fs 2 $TARGET/servers/socket/inet
+  (cd $TARGET/dev; /sbin/MAKEDEV fd std ptyp ptyq vcs tty1 tty2 tty3 tty4 tty5 
tty6)
+}
+
 setup_devices_fakechroot () {
   rm -rf "$TARGET/dev"
   ln -s /dev "$TARGET"

Reply via email to