From 1d06c5547520b4e21fe8470352b37dd142e4ea15 Mon Sep 17 00:00:00 2001 From: Alexandru Pirvulescu Date: Sat, 19 Dec 2015 01:48:51 +0200 Subject: [PATCH 1/2] disable SSH service during zoneinit --- includes/999-cleanup.sh | 4 ++++ zoneinit | 3 +++ 2 files changed, 7 insertions(+) diff --git a/includes/999-cleanup.sh b/includes/999-cleanup.sh index 935e58a..c3d8d31 100644 --- a/includes/999-cleanup.sh +++ b/includes/999-cleanup.sh @@ -1,5 +1,9 @@ # Copyright 2013, Joyent. Inc. All rights reserved. +log "making sure that SSH service is enabled" + +/usr/sbin/svcadm enable ssh + log "cleaning up" svccfg -s zoneinit 'setprop application/done = true' diff --git a/zoneinit b/zoneinit index a5f0642..d113f8e 100755 --- a/zoneinit +++ b/zoneinit @@ -63,6 +63,9 @@ trap 'exit_handler "received exit status" $?' EXIT START_TIME=$(date +%s) log "(start)" +log "disabling SSH service" +/usr/sbin/svcadm disable ssh + # Pull in and execute all operations from the 'includes' directory for INC in ${ZONEINIT_INCLUDES}/*.sh do From fc774f7dfc5f5c0ee203f49639217f6c5591e651 Mon Sep 17 00:00:00 2001 From: Alexandru Pirvulescu Date: Sat, 19 Dec 2015 01:57:52 +0200 Subject: [PATCH 2/2] disable SSH service during zoneinit --- zoneinit | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zoneinit b/zoneinit index a5f0642..cad5772 100755 --- a/zoneinit +++ b/zoneinit @@ -63,6 +63,10 @@ trap 'exit_handler "received exit status" $?' EXIT START_TIME=$(date +%s) log "(start)" +log "temporarily disabling SSH" + +/usr/sbin/svcadm disable -t ssh + # Pull in and execute all operations from the 'includes' directory for INC in ${ZONEINIT_INCLUDES}/*.sh do