mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
move ESP to UEFI
This commit is contained in:
parent
95510df887
commit
18cc05bcb3
1 changed files with 7 additions and 9 deletions
|
@ -42,14 +42,6 @@ _autoprepare() {
|
||||||
if [[ -z "${_NAME_SCHEME_PARAMETER_RUN}" ]]; then
|
if [[ -z "${_NAME_SCHEME_PARAMETER_RUN}" ]]; then
|
||||||
_set_device_name_scheme || return 1
|
_set_device_name_scheme || return 1
|
||||||
fi
|
fi
|
||||||
if [[ -n "${_GUIDPARAMETER}" && -n "${_UEFI_BOOT}" ]]; then
|
|
||||||
_dialog --menu "Select the mountpoint of your\nEFI SYSTEM PARTITION (ESP):" 10 40 7 "/efi" "MULTIBOOT" "/boot" "SINGLEBOOT" 2>"${_ANSWER}" || return 1
|
|
||||||
_UEFISYS_MP=$(cat "${_ANSWER}")
|
|
||||||
fi
|
|
||||||
if [[ "${_UEFISYS_MP}" == "/boot" ]]; then
|
|
||||||
_dialog --msgbox "You have chosen to use /boot as the ESP Mountpoint. The minimum partition size is 260 MiB and only FAT32 FS is supported." 0 0
|
|
||||||
_UEFISYS_BOOTDEV=1
|
|
||||||
fi
|
|
||||||
while [[ -z "${_DEFAULTFS}" ]]; do
|
while [[ -z "${_DEFAULTFS}" ]]; do
|
||||||
_FSOPTS=""
|
_FSOPTS=""
|
||||||
command -v mkfs.btrfs &>"${_NO_LOG}" && _FSOPTS="${_FSOPTS} btrfs Btrfs"
|
command -v mkfs.btrfs &>"${_NO_LOG}" && _FSOPTS="${_FSOPTS} btrfs Btrfs"
|
||||||
|
@ -61,7 +53,13 @@ _autoprepare() {
|
||||||
command -v mkfs.nilfs2 &>"${_NO_LOG}" && _FSOPTS="${_FSOPTS} nilfs2 Nilfs2"
|
command -v mkfs.nilfs2 &>"${_NO_LOG}" && _FSOPTS="${_FSOPTS} nilfs2 Nilfs2"
|
||||||
command -v mkfs.jfs &>"${_NO_LOG}" && _FSOPTS="${_FSOPTS} jfs JFS"
|
command -v mkfs.jfs &>"${_NO_LOG}" && _FSOPTS="${_FSOPTS} jfs JFS"
|
||||||
# create 1 MB bios_grub partition for grub BIOS GPT support
|
# create 1 MB bios_grub partition for grub BIOS GPT support
|
||||||
if [[ -n "${_GUIDPARAMETER}" ]]; then
|
if [[ -n "${_GUIDPARAMETER}" -n "${_UEFI_BOOT}" ]]; then
|
||||||
|
_dialog --menu "Select the mountpoint of your\nEFI SYSTEM PARTITION (ESP):" 10 40 7 "/efi" "MULTIBOOT" "/boot" "SINGLEBOOT" 2>"${_ANSWER}" || return 1
|
||||||
|
_UEFISYS_MP=$(cat "${_ANSWER}")
|
||||||
|
if [[ "${_UEFISYS_MP}" == "/boot" ]]; then
|
||||||
|
_dialog --msgbox "You have chosen to use /boot as the ESP Mountpoint. The minimum partition size is 260 MiB and only FAT32 FS is supported." 0 0
|
||||||
|
_UEFISYS_BOOTDEV=1
|
||||||
|
fi
|
||||||
_GPT_BIOS_GRUB_DEV_SIZE="2"
|
_GPT_BIOS_GRUB_DEV_SIZE="2"
|
||||||
_DEV_NUM=1
|
_DEV_NUM=1
|
||||||
_GPT_BIOS_GRUB_DEV_NUM="${_DEV_NUM}"
|
_GPT_BIOS_GRUB_DEV_NUM="${_DEV_NUM}"
|
||||||
|
|
Loading…
Reference in a new issue