From 55b72a722adb429f3ce4490b151a29201d6edbeb Mon Sep 17 00:00:00 2001 From: dappnodedev Date: Tue, 28 May 2024 17:14:21 +0200 Subject: [PATCH] Update autoinstall attended --- iso/preseeds/ubuntu/autoinstall.yaml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/iso/preseeds/ubuntu/autoinstall.yaml b/iso/preseeds/ubuntu/autoinstall.yaml index 047f250..b91f460 100644 --- a/iso/preseeds/ubuntu/autoinstall.yaml +++ b/iso/preseeds/ubuntu/autoinstall.yaml @@ -13,28 +13,21 @@ autoinstall: install-server: true packages: -# - chrony - - openssh-server - - vim - - sudo -# - iw # TODO: FIX -# - iwd + - linux-generic - wpasupplicant - intel-microcode -# - build-essential # TODO: FIX - - linux-generic -# - firmware-iwlwifi -# - avahi-utils # TODO: Fix -# - iptables # TODO: Try - apt: - fallback: continue-anyway + - iucode-tool + - iptables late-commands: + - "curtin in-target --target=/target -- apt update && apt install -y chrony build-essential iw iwd avahi-utils" - "mkdir -p /target/usr/src/dappnode" - "cp -ar /cdrom/dappnode/* /target/usr/src/dappnode/" - "cp -a /cdrom/dappnode/scripts/rc.local /target/etc/rc.local" - "chmod +x /target/usr/src/dappnode/scripts/dappnode_install_pre.sh" - - "chmod +x /target/usr/src/dappnode/scripts/static_ip.sh" - - "sh -c 'gpasswd -a $(getent passwd 1000 | cut -d: -f1) sudo' " + - "touch /target/usr/src/dappnode/.firstboot" +# - "cp -ar /etc/netplan/* /target/etc/netplan/" # TODO: Is this necessary? +# - "chmod +x /target/usr/src/dappnode/scripts/static_ip.sh" # TODO: Remove if not necessary to validate IP +# - "sh -c 'gpasswd -a $(getent passwd 1000 | cut -d: -f1) sudo' " # TODO: Check if dappnode user needs to be manually added to sudoers # - "/target/usr/src/dappnode/scripts/static_ip.sh" - "/target/usr/src/dappnode/scripts/dappnode_install_pre.sh UPDATE"