From d28839f0ca2e2d2e741f0be14e0f48623ca5b8f8 Mon Sep 17 00:00:00 2001 From: Sean Klein Date: Thu, 9 Sep 2021 09:51:11 -0400 Subject: [PATCH] [sled-agent] Avoid templates when spawning zones for OS-compatibility (#223) --- omicron-sled-agent/src/illumos/zone.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/omicron-sled-agent/src/illumos/zone.rs b/omicron-sled-agent/src/illumos/zone.rs index bc5ee961e2..eaecd9a914 100644 --- a/omicron-sled-agent/src/illumos/zone.rs +++ b/omicron-sled-agent/src/illumos/zone.rs @@ -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); @@ -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);