Bohan Yang 4 年 前
コミット
47c7b051cf
1 ファイル変更2 行追加0 行削除
  1. 2 0
      debi.sh

+ 2 - 0
debi.sh

@@ -808,10 +808,12 @@ EOF
 }
 
 mkrelpath=$installer_directory
+[ "$dry_run" = true ] && mkrelpath=/boot
 installer_directory=$(grub-mkrelpath "$mkrelpath" 2> /dev/null) ||
 installer_directory=$(grub2-mkrelpath "$mkrelpath" 2> /dev/null) || {
     err 'Could not find "grub-mkrelpath" or "grub2-mkrelpath" command'
 }
+[ "$dry_run" = true ] && installer_directory="$installer_directory/debian-$suite"
 
 kernel_params="$kernel_params lowmem/low=1"