debian: 修复存在 sda (cidata) 和 vda 时,向 sda 安装 grub 而造成安装失败

This commit is contained in:
bin456789 2024-04-16 23:29:19 +08:00
parent f822eea94e
commit f21d85bfbc
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -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=); \