core: 使用 get-xda.sh 寻找主硬盘

This commit is contained in:
bin456789
2024-02-02 00:31:21 +08:00
parent 5150feddc6
commit 5d3227fe64
5 changed files with 50 additions and 46 deletions

View File

@ -71,9 +71,12 @@ 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)"; \
confhome="$(grep -o 'extra\.confhome=[^ ]*' /proc/cmdline | cut -d= -f2)"; \
anna-install fdisk-udeb; \
xda=$(wget $confhome/get-xda.sh -O- | sh -s); \
debconf-set partman-auto/disk "/dev/$xda"; \
ttys=$(wget $confhome/ttys.sh -O- | sh -s console=); \
debconf-set debian-installer/add-kernel-opts "$ttys"; \