summaryrefslogtreecommitdiff
path: root/hurd/running/chroot.mdwn
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2016-12-04 13:20:31 +0100
committerThomas Schwinge <thomas@codesourcery.com>2016-12-04 13:20:31 +0100
commit79677204760502b2fdd0e06958a999b1fad0f940 (patch)
treeb5c3eff1f13a9655ea13e9faba0c387a562fb278 /hurd/running/chroot.mdwn
parentaef463c050add77d72259c5c9b630adbfb0409bb (diff)
parent45e529318e9963a4df0a900bd7b5bd29a6412183 (diff)
Merge commit '45e529318e9963a4df0a900bd7b5bd29a6412183'
Diffstat (limited to 'hurd/running/chroot.mdwn')
-rw-r--r--hurd/running/chroot.mdwn27
1 files changed, 21 insertions, 6 deletions
diff --git a/hurd/running/chroot.mdwn b/hurd/running/chroot.mdwn
index 699f05a..eac6728 100644
--- a/hurd/running/chroot.mdwn
+++ b/hurd/running/chroot.mdwn
@@ -1,4 +1,5 @@
-[[!meta copyright="Copyright © 2012, 2013 Free Software Foundation, Inc."]]
+[[!meta copyright="Copyright © 2012, 2013, 2016 Free Software Foundation,
+Inc."]]
[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
id="license" text="Permission is granted to copy, distribute and/or modify this
@@ -40,8 +41,22 @@ socket creation
will actually happen in the root filesystem. To make things work correctly the
programs inside the chroot need to be able to access them:
- # settrans -kp chroot/servers /hurd/firmlink /servers
- # settrans -kp chroot/dev /hurd/firmlink /dev
- # settrans chroot/tmp /hurd/firmlink /tmp
- # settrans -c chroot/var/lib/dbus /hurd/firmlink /var/lib/dbus
- # settrans -c chroot/run/dbus /hurd/firmlink /run/dbus
+ # CHROOT=$PWD/chroot
+ # settrans -kp $CHROOT/servers /hurd/firmlink /servers
+ # settrans -kp $CHROOT/dev /hurd/firmlink /dev
+ # settrans $CHROOT/tmp /hurd/firmlink /tmp
+ # settrans -c $CHROOT/var/lib/dbus /hurd/firmlink /var/lib/dbus
+ # settrans -c $CHROOT/run/dbus /hurd/firmlink /run/dbus
+ # settrans -kp $CHROOT/proc /hurd/firmlink /proc
+ # settrans -c $CHROOT/$HOME/.dbus /hurd/firmlink /$HOME/.dbus
+
+# Buildds
+
+Debian build daemons use a specialized script instead of debootstrap:
+
+ # mkdir ~/chroots
+ # /usr/share/sbuild/create-chroot unstable
+
+They also use sbuild to start the build:
+
+ # sbuild foo_1.2.3-1