mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
Fix boot loader when "$disk" is defined (#58)
* Fix boot loader when "$disk" is defined 机器有两个盘:/dev/sda 和 /dev/vda ,添加参数--disk /dev/vda将系统安装至该盘,grub也需要安装至该盘,否则grub-install会出错。 * Update debi.sh Co-authored-by: Bohan Yang <8384161+bohanyang@users.noreply.github.com>
This commit is contained in:
@@ -745,9 +745,14 @@ popularity-contest popularity-contest/participate boolean false
|
||||
|
||||
# Boot loader installation
|
||||
|
||||
d-i grub-installer/bootdev string default
|
||||
EOF
|
||||
|
||||
if [ -n "$disk" ]; then
|
||||
echo "d-i grub-installer/bootdev string $disk" | $save_preseed
|
||||
else
|
||||
echo 'd-i grub-installer/bootdev string default' | $save_preseed
|
||||
fi
|
||||
|
||||
[ "$force_efi_extra_removable" = true ] && echo 'd-i grub-installer/force-efi-extra-removable boolean true' | $save_preseed
|
||||
[ -n "$kernel_params" ] && echo "d-i debian-installer/add-kernel-opts string$kernel_params" | $save_preseed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user