From 58cc9840b35ba1347fa85dc7ee2fac24863d2418 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 16 Aug 2023 14:28:10 -0400 Subject: [PATCH] Prune out any netplan configuration, if exists To mitigate chance of network configuration being tanked by image based net config, mask it when capturing. --- imgutil/imgutil | 1 + 1 file changed, 1 insertion(+) diff --git a/imgutil/imgutil b/imgutil/imgutil index 389421c8..839e5e98 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -139,6 +139,7 @@ def capture_fs(args): masker.mask('/etc/ssh/*key') masker.mask('/etc/pki/tls/private/*') masker.mask('/root/.ssh/id_*') + masker.mask('/etc/netplan/*.yaml') subprocess.check_call(['mksquashfs', '/run/imgutil/capin', fname + '.sfs', '-comp', 'xz']) def capture_local_cleanup():