kali: 还原 netinst.iso 的 simple-cdd 机制

This commit is contained in:
bin456789
2024-05-22 21:39:00 +08:00
parent d2a3673107
commit 41b5ccc3ec
2 changed files with 22 additions and 1 deletions

View File

@ -2,6 +2,7 @@
# https://www.debian.org/releases/stable/amd64/apbs04.zh-cn.html
# https://www.debian.org/releases/stable/example-preseed.txt
# https://preseed.debian.net/debian-preseed/bookworm/amd64-main-full.txt
# 需要留意 kali initrd 自带的 /preseed.cfg
# 下面这行语句无效,因为本行后面有反斜杠,前面有空格(安装器认为不算注释)\
d-i debian-installer/locale string en_US
@ -106,7 +107,13 @@ d-i finish-install/reboot_in_progress note
# d-i network-console/password-again password 123@@@
# B.5.1. 安装过程中运行用户命令
# d-i preseed/early_command string
# 注意所有命令都会合并成一行命令
# 有 /cdrom/simple-cdd 才安装 simple-cdd-profiles
# 不然安装时 control 脚本会报错:
# Loading simple-cdd-profiles failed for unknown reasons
d-i preseed/early_command string true; \
if [ -d /cdrom/simple-cdd ]; then anna-install simple-cdd-profiles; fi
# debian 11 initrd 没有 xargs awk
# debian 12 initrd 没有 xargs