merged zonecfg calls, will now set both attributes to false

This commit is contained in:
Tamás Gérczei 2016-04-19 21:49:07 +02:00
parent cc1a56a0dc
commit 35c4a96641
1 changed files with 1 additions and 2 deletions

View File

@ -66,8 +66,7 @@ case $1 in
zoneadm list -pi | while IFS=":" read ID UUID STATE remainder; do
if [[ $STATE == "installed" ]];
then
zonecfg -z $UUID set autoboot=false
zonecfg -z $UUID 'select attr name=vm-autoboot; set value=true; end; verify; commit; exit'
zonecfg -z $UUID 'set autoboot=false; select attr name=vm-autoboot; set value=false; end; verify; commit; exit'
fi
done
log disarmed: set autoboot=false on all zones