mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 07:28:56 +08:00
debian: 虚拟机使用 cloud 内核
This commit is contained in:
@ -69,12 +69,14 @@ d-i preseed/early_command string \
|
||||
debconf-set mirror/http/hostname $hostname
|
||||
|
||||
d-i partman/early_command string \
|
||||
debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
|
||||
debconf-set partman-auto/disk "$(list-devices disk | head -n1)"; \
|
||||
|
||||
d-i partman/early_command string \
|
||||
confhome="$(grep -o 'extra\.confhome=[^ ]*' /proc/cmdline | cut -d= -f2)"; \
|
||||
ttys=$(wget $confhome/ttys.sh -O- | sh -s console=); \
|
||||
debconf-set debian-installer/add-kernel-opts "$ttys"
|
||||
debconf-set debian-installer/add-kernel-opts "$ttys"; \
|
||||
|
||||
kernel="$(grep -o 'extra\.kernel=[^ ]*' /proc/cmdline | cut -d= -f2)"; \
|
||||
debconf-set base-installer/kernel/image "$kernel"
|
||||
|
||||
# debian 10 没有 /target/etc/ssh/sshd_config.d/ 文件夹
|
||||
d-i preseed/late_command string \
|
||||
|
||||
Reference in New Issue
Block a user