Project

General

Profile

Actions

Bug #7884

closed

can't unconfigure not-yet-booted zone

Added by Alexander Pyhalov almost 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-02-16
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

1) Create zone zone1
2) Install zone zone1
3) Create zone zone2 as copy of zone1
4) Clone zone zone2
Here system-unconfigure fails.
As services in zone1 has not been imported yet, there's no sysding:system service and system-unconfigure can't unconfigure it.

Workaround: boot zone1 && halt zone1 before cloning it.

Actions #1

Updated by Alexander Pyhalov almost 5 years ago

There are 2 issues:
1) system-unconfigure explicitly fails when

svccfg -s svc:/system/sysding:system setprop config/finished=false
fails;
2) Even if we remove this check, reset_sysding is the last called function. Exit status will be exit status of the last command in this function. So we fail.

Actions

Also available in: Atom PDF