summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-08-15 18:34:24 (GMT)
committerJoey Hess <joey@kitenet.net>2011-08-15 18:34:24 (GMT)
commita0785d5497a1971834764e11662d915647d7da14 (patch)
tree1bc05af124cd36b8d668839cc85293bf7a85204e /functions
parent82ab93491c86fa45abc7f4a4b0d18827807244be (diff)
downloaddebootstrap-a0785d5497a1971834764e11662d915647d7da14.zip
debootstrap-a0785d5497a1971834764e11662d915647d7da14.tar.gz
debootstrap-a0785d5497a1971834764e11662d915647d7da14.tar.bz2
Fix support for running debootstrap on a FreeBSD host to create a kFreeBSD chroot or jail.
This worked in squeeze, as documented here: http://blog.vx.sk/archives/22-Updated-Tutorial-Debian-GNUkFreeBSD-in-a-FreeBSD-jail.html But recent changes to differentiate between the host and target ARCH/OS broke it. All that's needed to get it back is to detect FreeBSD's uname output. Untested.
Diffstat (limited to 'functions')
-rw-r--r--functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions b/functions
index 67f0c65..d33939e 100644
--- a/functions
+++ b/functions
@@ -939,7 +939,7 @@ clear_mtab () {
setup_proc () {
case "$HOST_OS" in
- kfreebsd*)
+ *freebsd*)
umount_on_exit /dev
umount_on_exit /proc
umount "$TARGET/proc" 2>/dev/null || true
@@ -978,7 +978,7 @@ setup_devices () {
fi
case "$HOST_OS" in
- kfreebsd*)
+ *freebsd*)
in_target mount -t devfs devfs /dev ;;
hurd*)
setup_devices_hurd ;;
@@ -1199,7 +1199,7 @@ check_sane_mount () {
mkdir -p "$1"
case "$HOST_OS" in
- kfreebsd*|hurd*)
+ *freebsd*|hurd*)
;;
*)
mknod "$1/test-dev-null" c 1 3 || return 1