[partition] change efiPartition value to /boot
- we need to make it configurable not hard-coded - some distributions need '/boot/efi' or '/boot/EFI', some work with '/boot'
This commit is contained in:
parent
75857971c4
commit
1f661a8b4b
@ -5,6 +5,7 @@ grubInstall: "grub-install"
|
|||||||
grubMkconfig: "grub-mkconfig"
|
grubMkconfig: "grub-mkconfig"
|
||||||
grubCfg: "/boot/grub/grub.cfg"
|
grubCfg: "/boot/grub/grub.cfg"
|
||||||
# Some distributions require a /boot/efi or /boot/EFI directory. Configure as needed.
|
# Some distributions require a /boot/efi or /boot/EFI directory. Configure as needed.
|
||||||
|
# These values need to be in-sync with partition.conf
|
||||||
efiDirectory: "/boot"
|
efiDirectory: "/boot"
|
||||||
efiDirectoryFirmware: "/boot/EFI"
|
efiDirectoryFirmware: "/boot/EFI"
|
||||||
# Optionally set the --bootloader-id to use for EFI. If not set, this defaults
|
# Optionally set the --bootloader-id to use for EFI. If not set, this defaults
|
||||||
|
@ -160,7 +160,7 @@ EraseDiskPage::doAutopartition( Device* dev )
|
|||||||
first_free_sector,
|
first_free_sector,
|
||||||
lastSector
|
lastSector
|
||||||
);
|
);
|
||||||
PartitionInfo::setMountPoint( efiPartition, "/boot/efi" );
|
PartitionInfo::setMountPoint( efiPartition, "/boot" );
|
||||||
PartitionInfo::setFormat( efiPartition, true );
|
PartitionInfo::setFormat( efiPartition, true );
|
||||||
m_core->createPartition( dev, efiPartition );
|
m_core->createPartition( dev, efiPartition );
|
||||||
first_free_sector = lastSector + 1;
|
first_free_sector = lastSector + 1;
|
||||||
|
5
src/modules/partition/partition.conf
Normal file
5
src/modules/partition/partition.conf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
# Some distributions require a /boot/efi or /boot/EFI directory. Configure as needed.
|
||||||
|
# These values need to be in-sync with grub.conf
|
||||||
|
efiDirectory: "/boot"
|
||||||
|
efiDirectoryFirmware: "/boot/EFI"
|
Loading…
Reference in New Issue
Block a user