mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-09-14 18:35:01 +08:00
Update ubuntuInit.sh
This commit is contained in:
parent
6705bcaec9
commit
b92a4e1446
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue