New option --esp fixes #53

pull/58/head
Bohan Yang 4 years ago
parent 995762aeee
commit 67e2f34141
  1. 1
      README.md
  2. 9
      debi.sh

@ -129,6 +129,7 @@ Otherwise, you can run this command to revert all changes made by the script:
* `--no-force-gpt` By default, GPT rather than MBR partition table will be created. This option disables it. * `--no-force-gpt` By default, GPT rather than MBR partition table will be created. This option disables it.
* `--bios` Don't create *EFI system partition*. If GPT is being used, create a *BIOS boot partition* (`bios_grub` partition). Default if `/sys/firmware/efi` is absent. [See](https://askubuntu.com/a/501360) * `--bios` Don't create *EFI system partition*. If GPT is being used, create a *BIOS boot partition* (`bios_grub` partition). Default if `/sys/firmware/efi` is absent. [See](https://askubuntu.com/a/501360)
* `--efi` Create an *EFI system partition*. Default if `/sys/firmware/efi` exists * `--efi` Create an *EFI system partition*. Default if `/sys/firmware/efi` exists
* `--esp 106` Size of the *EFI system partition*. e.g. `106`, `538` and `1075` result to 100 MiB, 512 MiB, 1 GiB respectively
* `--filesystem ext4` * `--filesystem ext4`
* `--kernel <string>` Choose an package for the kernel image * `--kernel <string>` Choose an package for the kernel image
* `--cloud-kernel` Choose `linux-image-cloud-amd64` or `...arm64` as the kernel image * `--cloud-kernel` Choose `linux-image-cloud-amd64` or `...arm64` as the kernel image

@ -219,6 +219,7 @@ disk_partitioning=true
disk= disk=
force_gpt=true force_gpt=true
efi= efi=
esp=106
filesystem=ext4 filesystem=ext4
kernel= kernel=
cloud_kernel=false cloud_kernel=false
@ -360,6 +361,10 @@ while [ $# -gt 0 ]; do
--efi) --efi)
efi=true efi=true
;; ;;
--esp)
esp=$2
shift
;;
--filesystem) --filesystem)
filesystem=$2 filesystem=$2
shift shift
@ -658,8 +663,10 @@ d-i partman-auto/expert_recipe string \
naive :: \ naive :: \
EOF EOF
if [ "$efi" = true ]; then if [ "$efi" = true ]; then
$save_preseed << EOF
$esp $esp $esp free \\
EOF
$save_preseed << 'EOF' $save_preseed << 'EOF'
106 106 106 free \
$iflabel{ gpt } \ $iflabel{ gpt } \
$reusemethod{ } \ $reusemethod{ } \
method{ efi } \ method{ efi } \

Loading…
Cancel
Save