Skip to content

Commit a4fc968

Browse files
committed
Merge branch 'hg'
2 parents 40dbee3 + 9aa61da commit a4fc968

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.hgtags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,3 +510,4 @@ da5d68806e4acacc7259e6a1dc6a07b9232e3443 st190
510510
70a84568ef49b6974148640d973599088d2cb580 st200
511511
fa6fc60a9d8ab4981317c5be18e47b28868691e5 st201
512512
fa6fc60a9d8ab4981317c5be18e47b28868691e5 11.4.84.0.1.201.0
513+
4aa2fc1df7c1cf43786bcb1d7a75fea721f9864e st202

src/svc/svc-pkg-auto-update

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def start():
9292
message = 'Invalid configuration: config/auto-reboot = true ' + \
9393
'with config/activate-new-be = false'
9494
smf_include.smf_method_exit(smf_include.SMF_EXIT_ERR_CONFIG,
95-
'invalid configuration', message)
95+
'invalid-configuration', message)
9696
cmd.append('--no-be-activate')
9797

9898
# Add any extra args that should be passed to pkg, eg for verbose output
@@ -157,9 +157,13 @@ def start():
157157
print('Running reboot-check-hook {0}'.format(reboot_hook))
158158
exitcode, output = subprocess.getstatusoutput(reboot_hook)
159159
if exitcode != 0:
160-
print('reboot-check-hook failed')
160+
message = f'Reboot Hook failed {exitcode}, see service log'
161161
smf_include.smf_method_exit(smf_include.SMF_EXIT_DEGRADED,
162-
'reboot-check-hook failed', output)
162+
'reboot-check-hook-failed',
163+
message)
164+
print('Reboot hook output follows:')
165+
print(output)
166+
163167
print('Reboot after auto update')
164168
msg = myfmri + ' : automatic reboot after update'
165169
try:

0 commit comments

Comments
 (0)