I'm trying to install openssh-server
on Xubuntu 20.04 with Automatic Ubiquity Installator. According to https://help.ubuntu.com/lts/installation-guide/amd64/apbs04.html point "B.4.11. Package selection", I can use
ubiquity pkgsel/include string openssh-server
which does not work (openssh server is not installed).
According to https://wiki.ubuntu.com/UbiquityAutomation I can use ubiquity/success_command
(or preseed/late_command
) to run own commands... So I tried something like this:
ubiquity ubiquity/success_command string
echo 'engineer ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/99_engineer;
chmod 440 /target/etc/sudoers.d/99_engineer;
chroot /target apt-get update;
chroot /target apt-get install -y openssh-server
Also not working. Which is funny, because sudoers lines seems to work - only openssh-server is not installed...
What I'm doing wrong? What Ubuntu 20.04 changed and not documented anywhere? Because all examples on entire Internet about Ubuntu 18.04 says that above should work.