try at the beginning

This commit is contained in:
2022-01-17 10:50:39 +01:00
parent 2ffa331324
commit 2ea84fd6a0

View File

@@ -44,13 +44,14 @@ autoinstall:
disable_root: false
late-commands:
- apt-get update && apt-get install -y qemu-guest-agent
- 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/*
# - systemctl restart networking
- 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 update
# - curtin in-target --target=/target -- apt-get install -y qemu-guest-agent
# - curtin in-target --target=/target -- apt dist-upgrade -y
# # - sed -ie 's/GRUB_TIMEOUT=.*/GRUB_TIMEOUT=30/' /target/etc/default/grub