summaryrefslogtreecommitdiff
path: root/usr/src/cmd/allocate/mkdevalloc.c
diff options
context:
space:
mode:
authorllai1 <none@none>2006-08-25 17:24:25 -0700
committerllai1 <none@none>2006-08-25 17:24:25 -0700
commitfacf4a8d7b59fde89a8662b4f4c73a758e6c402c (patch)
tree4e0024c5508351006df1496ec4be6e7b564c3ce8 /usr/src/cmd/allocate/mkdevalloc.c
parentadcafb0fe4c49c4d46c0b393dfba36d4e1b55c0e (diff)
downloadillumos-joyent-facf4a8d7b59fde89a8662b4f4c73a758e6c402c.tar.gz
PSARC/2003/246 Filesystem Driven Device Naming
5050715 logical device names not created during early boot 6292952 devfsadm mishandles optarg 6362924 devfsadm secondary link generation is not zones aware 6413127 Integrate the Devname Project 6464196 bfu should remove pt_chmod, obsoleted by /dev filesystem --HG-- rename : usr/src/cmd/pt_chmod/Makefile => deleted_files/usr/src/cmd/pt_chmod/Makefile rename : usr/src/cmd/pt_chmod/pt_chmod.c => deleted_files/usr/src/cmd/pt_chmod/pt_chmod.c
Diffstat (limited to 'usr/src/cmd/allocate/mkdevalloc.c')
-rw-r--r--usr/src/cmd/allocate/mkdevalloc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/src/cmd/allocate/mkdevalloc.c b/usr/src/cmd/allocate/mkdevalloc.c
index e423e3727a..e4533f1673 100644
--- a/usr/src/cmd/allocate/mkdevalloc.c
+++ b/usr/src/cmd/allocate/mkdevalloc.c
@@ -180,6 +180,16 @@ main(int argc, char **argv)
exit(1);
system_labeled = is_system_labeled();
+
+ /* test hook: see also devfsadm.c and allocate.c */
+ if (!system_labeled) {
+ system_labeled = is_system_labeled_debug(&tx_stat);
+ if (system_labeled) {
+ fprintf(stderr, "/ALLOCATE_FORCE_LABEL is set,\n"
+ "forcing system label on for testing...\n");
+ }
+ }
+
if (system_labeled == 0) {
/*
* is_system_labeled() will return false in case we are