d-i preseed/include string ../preseed-ubuntu.cfg

d-i preseed/early_command string                                                                                                                \
        mkdir -p /usr/lib/post-base-installer.d &&                                                                                              \
        echo "sed -i -e 's/^in-target.*tasksel.*/#\\0/' /var/lib/dpkg/info/pkgsel.postinst" > /usr/lib/post-base-installer.d/90skip-tasksel &&  \
        chmod +x /usr/lib/post-base-installer.d/90skip-tasksel

d-i preseed/late_command string                                                   \
        echo 'Defaults:slapos !requiretty' > /target/etc/sudoers.d/slapos;        \
        echo 'slapos ALL=(ALL) NOPASSWD: ALL' >> /target/etc/sudoers.d/slapos;    \
        chmod 440 /target/etc/sudoers.d/slapos ;                                  \
        ln -sf /dev/null /target/etc/systemd/network/99-default.link;             \
        in-target update-initramfs -u
