diff options
author | 2016-05-16 11:50:26 +0000 | |
---|---|---|
committer | 2016-05-16 11:50:26 +0000 | |
commit | fe0bb0e56b980a92eebf9604469779d6fd4c4298 (patch) | |
tree | 3d6609a1723893af2cef1dd5010dd172329a4fc8 /patches/fuel-agent/0007-Add-fs-for-efi-partition.patch | |
parent | a4ada554960efa8eeb551bbc14aabd275aa51981 (diff) | |
parent | c6cfbefc5f9d1318d89d1ca42e71bed0e5e2ccdf (diff) |
Merge "Rebase: p/fuel-agent: Update UEFI after ec71a42."
Diffstat (limited to 'patches/fuel-agent/0007-Add-fs-for-efi-partition.patch')
-rw-r--r-- | patches/fuel-agent/0007-Add-fs-for-efi-partition.patch | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/patches/fuel-agent/0007-Add-fs-for-efi-partition.patch b/patches/fuel-agent/0007-Add-fs-for-efi-partition.patch index dbbde129..0fb94215 100644 --- a/patches/fuel-agent/0007-Add-fs-for-efi-partition.patch +++ b/patches/fuel-agent/0007-Add-fs-for-efi-partition.patch @@ -35,20 +35,20 @@ index bc532b4..f092865 100644 # has already been added. we need this to # get rid of md over all disks for /boot partition. @@ -321,10 +324,14 @@ class Nailgun(BaseDataDriver): - LOG.debug('Adding bios_grub partition on disk %s: size=24' % - disk['name']) - parted.add_partition(size=24, flags=['bios_grub']) -- # uefi partition (for future use) -- LOG.debug('Adding UEFI partition on disk %s: size=200' % -+ # uefi partition - added only once. -+ if self._is_boot_disk(disk) and not self._esp_partition_done: -+ LOG.debug('Adding UEFI partition on disk %s: size=200' % - disk['name']) -- parted.add_partition(size=200, flags=['esp']) -+ prt = parted.add_partition(size=200, flags=['esp']) -+ partition_scheme.add_fs(device=prt.name, mount='/boot/efi', -+ fs_type='vfat') -+ self._esp_partition_done = True + LOG.debug('Adding bios_grub partition on disk %s: size=24' % + disk['name']) + parted.add_partition(size=24, flags=['bios_grub']) +- # uefi partition (for future use) +- LOG.debug('Adding UEFI partition on disk %s: size=200' % ++ # uefi partition - added only once. ++ if self._is_boot_disk(disk) and not self._esp_partition_done: ++ LOG.debug('Adding UEFI partition on disk %s: size=200' % + disk['name']) +- parted.add_partition(size=200, flags=['esp']) ++ prt = parted.add_partition(size=200, flags=['esp']) ++ partition_scheme.add_fs(device=prt.name, mount='/boot/efi', ++ fs_type='vfat') ++ self._esp_partition_done = True LOG.debug('Looping over all volumes on disk %s' % disk['name']) for volume in disk['volumes']: |