do not touch default network config

This commit is contained in:
2022-01-17 11:09:05 +01:00
parent 0aebe559d6
commit d01c3be251

View File

@@ -51,9 +51,9 @@ autoinstall:
late-commands: late-commands:
- echo 'firstuser ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/firstuser - 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/^#*\(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' ## - 'sed -i "s/dhcp4: true/&\n dhcp-identifier: mac/" /target/etc/netplan/00-installer-config.yaml'
- rm -fv /var/lib/dhcp/* # - rm -fv /var/lib/dhcp/*
# - systemctl restart networking # - systemctl restart networking
# - curtin in-target --target=/target -- apt-get update # - curtin in-target --target=/target -- apt-get update
# - curtin in-target --target=/target -- apt-get install -y qemu-guest-agent # - curtin in-target --target=/target -- apt-get install -y qemu-guest-agent