mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
debian: 修复存在 sda (cidata) 和 vda 时,向 sda 安装 grub 而造成安装失败
This commit is contained in:
parent
f822eea94e
commit
f21d85bfbc
@ -89,7 +89,6 @@ tasksel tasksel/first multiselect ssh-server
|
||||
d-i pkgsel/upgrade select none
|
||||
|
||||
# B.4.11. 安装 bootloader
|
||||
d-i grub-installer/bootdev string default
|
||||
# 添加 bootx64.efi
|
||||
d-i grub2/force_efi_extra_removable boolean true
|
||||
|
||||
@ -116,6 +115,7 @@ d-i partman/early_command string \
|
||||
|
||||
xda=$(wget --tries=5 $confhome/get-xda.sh -O- | sh -s); \
|
||||
debconf-set partman-auto/disk "/dev/$xda"; \
|
||||
debconf-set grub-installer/bootdev "/dev/$xda"; \
|
||||
rm -rf /usr/sbin/fdisk /usr/sbin/sfdisk; \
|
||||
|
||||
ttys=$(wget --tries=5 $confhome/ttys.sh -O- | sh -s console=); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user