Commit a0785d54 authored by Joey Hess's avatar Joey Hess

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.
parent 82ab9349
debootstrap (1.0.36) UNRELEASED; urgency=low
* Guess host OS based on uname for non-Debian systems. Closes: #637363
* Fix support for running debootstrap on a FreeBSD host to create a kFreeBSD
chroot or jail.
-- Joey Hess <joeyh@debian.org> Mon, 15 Aug 2011 14:14:29 -0400
......
......@@ -413,6 +413,9 @@ if [ -z "$HOST_OS" ]; then
GNU)
HOST_OS=hurd
;;
FreeBSD*)
HOST_OS=freebsd
;;
esac
fi
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment