This commit is contained in:
xking 2023-03-04 21:44:55 +08:00
parent d76f8d2b5f
commit 2ecfe16191
Signed by: chenkuangwei
GPG Key ID: 931C79A9747F5F82

View File

@ -113,13 +113,7 @@ d-i preseed/late_command string \
in-target update-alternatives --set editor /usr/bin/vim.basic; \
in-target sed -i -e 's/^\(PasswordAuthentication\).*/\1 yes/g' -e 's/^\(PermitRootLogin\).*/\1 yes/g' /etc/ssh/sshd_config; \
in-target sed -i -e '/^GRUB_HIDDEN_TIMEOUT=/d' -e 's/^\(GRUB_HIDDEN_TIMEOUT_QUIET\)=true/\1=false/' /etc/default/grub; \
in-target cat <<EOF >/etc/rc.local
#!/bin/sh -e
#
# rc.local
dhclient -6 eth0
exit 0
EOF ;\
in-target cat "dhclient -6 eth0; exit 0" >>/etc/rc.local ;\
in-target chmod +x /etc/rc.local; \
in-target systemctl enable --now sshd; \
in-target systemctl enable --now rc-local; \