mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
New option --esp fixes #53
This commit is contained in:
@@ -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 } \
|
||||||
|
|||||||
Reference in New Issue
Block a user