diff --git a/README.md b/README.md index e262869..1f8c94c 100644 --- a/README.md +++ b/README.md @@ -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. * `--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 + * `--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` * `--kernel ` Choose an package for the kernel image * `--cloud-kernel` Choose `linux-image-cloud-amd64` or `...arm64` as the kernel image diff --git a/debi.sh b/debi.sh index 2e90fdd..24e9962 100755 --- a/debi.sh +++ b/debi.sh @@ -219,6 +219,7 @@ disk_partitioning=true disk= force_gpt=true efi= +esp=106 filesystem=ext4 kernel= cloud_kernel=false @@ -360,6 +361,10 @@ while [ $# -gt 0 ]; do --efi) efi=true ;; + --esp) + esp=$2 + shift + ;; --filesystem) filesystem=$2 shift @@ -658,8 +663,10 @@ d-i partman-auto/expert_recipe string \ naive :: \ EOF if [ "$efi" = true ]; then + $save_preseed << EOF + $esp $esp $esp free \\ +EOF $save_preseed << 'EOF' - 106 106 106 free \ $iflabel{ gpt } \ $reusemethod{ } \ method{ efi } \