diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2014-01-03 01:45:12 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 04:27:52 +0200 |
commit | 0d41e5101f2ada712045765f54044deb820f8085 (patch) | |
tree | 62bc80940a846422d4dd1f7a79d3af4ccc3a30b5 /include | |
parent | 34b5dc134ed6ba8dc6f922915c894fb0a176f0b5 (diff) |
UEFI support.
Tested with the IntelĀ® Desktop Board DH87RL, BIOS [RLH8710H.86A] version
0323.
Diffstat (limited to 'include')
-rwxr-xr-x | include/partition.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/partition.sh b/include/partition.sh index fda2734..5418341 100755 --- a/include/partition.sh +++ b/include/partition.sh @@ -39,7 +39,9 @@ log "Created disklabel GPT for device $device" # Create a EFI partition if needed; otherwise, create a partition needed # to put GRUB on GPT disklabels. if [ -d /proc/efi -o -d /sys/firmware/efi ]; then + anna-install dosfstools-udeb part_efi=$( fripost_mkpart $device efi 256M +boot ) + fripost_mkfs vfat $part_efi -F 32 else fripost_mkpart $device bios_grub 8M +bios_grub fi @@ -94,10 +96,10 @@ mkswap /dev/$vg/swap # Stuff the fstab and mount the devices in the target -fripost_fstab $part_boot /boot ext2 noatime -fripost_fstab /dev/$vg/root / ext4 noatime,errors=remount-ro -fripost_fstab /dev/$vg/swap none swap sw -fripost_fstab /dev/$vg/home /home ext4 noatime +fripost_fstab $part_boot /boot ext2 noatime +[ -d /proc/efi -o -d /sys/firmware/efi ] && \ +fripost_fstab $part_efi /boot/efi vfat defaults +fripost_fstab /dev/$vg/root / ext4 noatime,errors=remount-ro +fripost_fstab /dev/$vg/swap none swap sw +fripost_fstab /dev/$vg/home /home ext4 noatime fripost_mount_partitions - -# TODO: EFI: format; add to fstab; how to populate? |