Fully automated Ubuntu 22.04 install

This commit is contained in:
Gregory Ballantine 2024-04-20 23:04:02 -04:00
parent cb410f3dc5
commit a051724f38

View File

@ -34,11 +34,12 @@ autoinstall:
authorized-keys: [] authorized-keys: []
install-server: true install-server: true
packages:
- "qemu-guest-agent"
late-commands: late-commands:
- "echo 'xadmin ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/xadmin" - "echo 'xadmin ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/xadmin"
- "chmod 440 /target/etc/sudoers.d/xadmin" - "chmod 440 /target/etc/sudoers.d/xadmin"
- "curtin in-target --target=/target -- apt install -y qemu-guest-agent"
bootcmd: - "curtin in-target --target=/target -- systemctl enable qemu-guest-agent"
- "apt install -y qemu-guest-agent" - "curtin in-target --target=/target -- systemctl start qemu-guest-agent"
- "systemctl enable qemu-guest-agent"
- "systemctl start qemu-guest-agent"