summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-01-26 18:39:26 +0000
committerIgor Pashev <pashev.igor@gmail.com>2013-01-26 18:39:26 +0000
commit66db23e591f34d5c66e126ba1d56b877a16df47b (patch)
tree5ddec0e55cfa066d0610e10e9e79bb1ab72000e6 /functions
parentcfb0cd8440a9d2670aeeba1b8c3876a5c010e7c0 (diff)
downloaddebootstrap-66db23e591f34d5c66e126ba1d56b877a16df47b.tar.gz
Revert "Device major number can vary, even for null-device, illumos sucks even here"
This reverts commit 55e6e13dcc6b6603e695137e1d6bf44bb68ee5b2. Conflicts: functions
Diffstat (limited to 'functions')
-rw-r--r--functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/functions b/functions
index 9c2ef5b..c3fd387 100644
--- a/functions
+++ b/functions
@@ -1274,6 +1274,12 @@ check_sane_mount () {
*freebsd*|hurd*)
;;
illumos*|solaris*)
+ mknod "$1/test-dev-null" c 67 2 || return 1
+ if ! echo test > "$1/test-dev-null"; then
+ rm -f "$1/test-dev-null"
+ return 1
+ fi
+ rm -f "$1/test-dev-null"
;;
*)
mknod "$1/test-dev-null" c 1 3 || return 1