diff options
| author | Igor Pashev <pashev.igor@gmail.com> | 2012-10-16 23:08:18 +0400 |
|---|---|---|
| committer | Igor Pashev <pashev.igor@gmail.com> | 2012-10-16 23:08:18 +0400 |
| commit | cfb0cd8440a9d2670aeeba1b8c3876a5c010e7c0 (patch) | |
| tree | 35af2d10f838e34782839c4979c2cf52af7677d7 | |
| parent | 55e6e13dcc6b6603e695137e1d6bf44bb68ee5b2 (diff) | |
| download | debootstrap-cfb0cd8440a9d2670aeeba1b8c3876a5c010e7c0.tar.gz | |
Support solaris (itself or other dpkg-based distros)
| -rwxr-xr-x | debootstrap | 3 | ||||
| -rw-r--r-- | functions | 6 |
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 @@ -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 |
