summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-10-16 23:08:18 +0400
committerIgor Pashev <pashev.igor@gmail.com>2012-10-16 23:08:18 +0400
commitcfb0cd8440a9d2670aeeba1b8c3876a5c010e7c0 (patch)
tree35af2d10f838e34782839c4979c2cf52af7677d7
parent55e6e13dcc6b6603e695137e1d6bf44bb68ee5b2 (diff)
downloaddebootstrap-cfb0cd8440a9d2670aeeba1b8c3876a5c010e7c0.tar.gz
Support solaris (itself or other dpkg-based distros)
-rwxr-xr-xdebootstrap3
-rw-r--r--functions6
2 files changed, 6 insertions, 3 deletions
diff --git a/debootstrap b/debootstrap
index 6130829..6af3689 100755
--- a/debootstrap
+++ b/debootstrap
@@ -420,6 +420,9 @@ if [ -z "$HOST_OS" ]; then
FreeBSD*)
HOST_OS=freebsd
;;
+ SunOS*)
+ HOST_OS=illumos
+ ;;
esac
fi
diff --git a/functions b/functions
index f94056f..9c2ef5b 100644
--- a/functions
+++ b/functions
@@ -976,7 +976,7 @@ setup_proc () {
;;
hurd*)
;;
- illumos*)
+ illumos*|solaris*)
umount_on_exit /proc
umount "$TARGET/proc" 2>/dev/null || true
mount -F proc - "$TARGET/proc"
@@ -1018,7 +1018,7 @@ setup_devices () {
mount -t devfs devfs $TARGET/dev ;;
hurd*)
setup_devices_hurd ;;
- illumos*)
+ illumos*|solaris*)
umount_on_exit /devices
umount_on_exit /dev/fd
umount "$TARGET/devices" 2>/dev/null || true
@@ -1273,7 +1273,7 @@ check_sane_mount () {
case "$HOST_OS" in
*freebsd*|hurd*)
;;
- illumos*)
+ illumos*|solaris*)
;;
*)
mknod "$1/test-dev-null" c 1 3 || return 1