mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 07:28:56 +08:00
core: 使用 get-xda.sh 寻找主硬盘
This commit is contained in:
@ -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"; \
|
||||
|
||||
|
||||
Reference in New Issue
Block a user