Skip to content

Commit

Permalink
[sled-agent] Avoid templates when spawning zones for OS-compatibility (
Browse files Browse the repository at this point in the history
  • Loading branch information
smklein authored Sep 9, 2021
1 parent 619fe75 commit d28839f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions omicron-sled-agent/src/illumos/zone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ impl Zones {
let mut cfg = zone::Config::create(
name,
/* overwrite= */ true,
zone::CreationOptions::Template("sparse".to_string()),
zone::CreationOptions::Blank,
);
cfg.get_global()
.set_brand("sparse")
.set_path(format!("{}/{}", ZONE_ZFS_DATASET_MOUNTPOINT, name))
.set_autoboot(false)
.set_ip_type(zone::IpType::Exclusive);
Expand Down Expand Up @@ -128,9 +129,10 @@ impl Zones {
let mut cfg = zone::Config::create(
name,
/* overwrite= */ true,
zone::CreationOptions::Template("sparse".to_string()),
zone::CreationOptions::Blank,
);
cfg.get_global()
.set_brand("sparse")
.set_path(format!("{}/{}", ZONE_ZFS_DATASET_MOUNTPOINT, name))
.set_autoboot(false)
.set_ip_type(zone::IpType::Exclusive);
Expand Down

0 comments on commit d28839f

Please sign in to comment.