Update ubuntuInit.sh

This commit is contained in:
Molly Lau 2023-10-30 01:59:23 +09:00 committed by GitHub
parent 6705bcaec9
commit b92a4e1446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,6 +141,9 @@ echo 'datasource_list: [ NoCloud, None ]' >/mnt/etc/cloud/cloud.cfg.d/90_dpkg.cf
sed -ri 's/console=tty1/console=tty1 console=ttyAMA0/g' /mnt/boot/grub/grub.cfg
}
# Create a soft link between /boot/grub/* and /boot/grub2/*
ln -s /mnt/boot/grub/ /mnt/boot/grub2
# Disable sshd service to read configs from "ssh.socket" otherwise any changes on "/etc/ssh/sshd_config" will not take effects after Ubuntu 22.10, 23.04, 23.10… .
# This is a preparation for dealing with the future versions of Ubuntu for example Ubuntu 24.04 LTS and later.
# Reference: https://discourse.ubuntu.com/t/sshd-now-uses-socket-based-activation-ubuntu-22-10-and-later/30189/23