Improve performance, add additional ram, improve Ubuntu user-data (and fix 22.04)
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
@ -11,3 +11,21 @@ autoinstall:
|
||||
ssh:
|
||||
install-server: true
|
||||
allow-pw: yes
|
||||
late-commands:
|
||||
- |
|
||||
curtin in-target --target=/target -- /bin/bash -c ' \
|
||||
sed -ie "s/^[#\s]*UseDNS.*$/UseDNS no/g" /etc/ssh/sshd_config; \
|
||||
ssh-keygen -A; \
|
||||
systemctl enable ssh.service; \
|
||||
sed -ie "s/^GRUB_DEFAULT=.*/GRUB_DEFAULT=\"0\"/g" /etc/default/grub; \
|
||||
sed -ie "s/^GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0 systemd.unified_cgroup_hierarchy=0\"/g" /etc/default/grub; \
|
||||
sed -ie "s/^GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT=\"net.ifnames=0 biosdevname=0 systemd.unified_cgroup_hierarchy=0\"/g" /etc/default/grub; \
|
||||
update-grub; \
|
||||
update-initramfs -c -k all; \
|
||||
apt-get -y purge snapd; \
|
||||
systemctl disable apt-daily.service; \
|
||||
systemctl disable apt-daily.timer; \
|
||||
systemctl disable apt-daily-upgrade.service; \
|
||||
systemctl disable apt-daily-upgrade.timer; \
|
||||
exit 0 \
|
||||
'
|
Reference in New Issue
Block a user