From c0152c32e3700a3fd227a3889b1d8fbb4a98a9ae Mon Sep 17 00:00:00 2001 From: xking Date: Sat, 4 Mar 2023 23:23:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=BD=AE=E4=B8=BA=E6=9C=80=E5=88=9D?= =?UTF-8?q?=E7=9A=84=E7=89=88=E6=9C=AC=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- preseed.cfg | 3 --- 1 file changed, 3 deletions(-) diff --git a/preseed.cfg b/preseed.cfg index edf5d2d..e56bc7b 100644 --- a/preseed.cfg +++ b/preseed.cfg @@ -113,10 +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 sh -c 'cat </etc/rc.local \n #!/bin/sh -e \n # rc.local \n #\n# This script is executed at the end of each multiuser runlevel.\n# Make sure that the script will "exit 0" on success or any other\n# value on error.\n#\n# In order to enable or disable this script just change the execution\n# bits.\n#\n# By default this script does nothing.\n\ndhclient -6 eth0;\n\n exit 0 \n EOF';\ - in-target chmod +x /etc/rc.local; \ in-target systemctl enable --now sshd; \ - in-target systemctl enable --now rc-local; \ in-target update-grub