From d01c3be25177994f955138d9b760f308cf0f48e0 Mon Sep 17 00:00:00 2001 From: Iwan Clement Date: Mon, 17 Jan 2022 11:09:05 +0100 Subject: [PATCH] do not touch default network config --- data/QuickAndDirty/ubuntu-20.04/user-data | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/QuickAndDirty/ubuntu-20.04/user-data b/data/QuickAndDirty/ubuntu-20.04/user-data index 627b672..c42ec1d 100644 --- a/data/QuickAndDirty/ubuntu-20.04/user-data +++ b/data/QuickAndDirty/ubuntu-20.04/user-data @@ -51,9 +51,9 @@ autoinstall: late-commands: - echo 'firstuser ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/firstuser - - sed -i 's/^#*\(send dhcp-client-identifier\).*$/\1 = hardware;/' /target/etc/dhcp/dhclient.conf -# - 'sed -i "s/dhcp4: true/&\n dhcp-identifier: mac/" /target/etc/netplan/00-installer-config.yaml' - - rm -fv /var/lib/dhcp/* +# - sed -i 's/^#*\(send dhcp-client-identifier\).*$/\1 = hardware;/' /target/etc/dhcp/dhclient.conf +## - 'sed -i "s/dhcp4: true/&\n dhcp-identifier: mac/" /target/etc/netplan/00-installer-config.yaml' +# - rm -fv /var/lib/dhcp/* # - systemctl restart networking # - curtin in-target --target=/target -- apt-get update # - curtin in-target --target=/target -- apt-get install -y qemu-guest-agent