core: 删除 centos 7, oracle 7, debain 10

This commit is contained in:
bin456789
2024-07-07 17:07:22 +08:00
parent 645f7476d3
commit f316acfd27
7 changed files with 97 additions and 160 deletions

View File

@ -157,7 +157,6 @@ d-i partman/early_command string true; \
true >/bin/os-prober
# debian 10 没有 /target/etc/ssh/sshd_config.d/ 文件夹
# kali ssh 默认关闭
# 另一种方法处理 cloudcone
# if [ "$link_grub_dir" = 1 ]; then mkdir /target/boot/grub2; echo 'chainloader (hd0)+1' >/target/boot/grub2/grub.cfg; fi; \
@ -166,5 +165,4 @@ d-i preseed/late_command string true; \
if [ "$link_grub_dir" = 1 ]; then ln -s grub /target/boot/grub2; fi; \
in-target systemctl enable ssh; \
echo "PermitRootLogin yes" >/target/etc/ssh/sshd_config.d/01-permitrootlogin.conf || \
echo "PermitRootLogin yes" >>/target/etc/ssh/sshd_config
echo "PermitRootLogin yes" >/target/etc/ssh/sshd_config.d/01-permitrootlogin.conf