2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Prune out any netplan configuration, if exists

To mitigate chance of network configuration
being tanked by image based
net config, mask it when capturing.
This commit is contained in:
Jarrod Johnson 2023-08-16 14:28:10 -04:00
parent 84d23bb1fd
commit 58cc9840b3

View File

@ -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():