Initial code commit
[armband.git] / patches / fuel-agent / 0007-Add-fs-for-efi-partition.patch
1 From: Stanislaw Kardach <stanislaw.kardach@caviumnetworks.com>
2 Date: Tue, 8 Mar 2016 21:08:55 +0100
3 Subject: [PATCH] Add fs for efi partition
4
5 ---
6  debian/control                | 1 +
7  fuel_agent/drivers/nailgun.py | 4 +++-
8  specs/fuel-agent.spec         | 1 +
9  3 files changed, 5 insertions(+), 1 deletion(-)
10
11 diff --git a/debian/control b/debian/control
12 index 189dc00..acfda35 100644
13 --- a/debian/control
14 +++ b/debian/control
15 @@ -39,6 +39,7 @@ Depends: bzip2,
16          qemu-user-static,
17          binfmt-support,
18          dmidecode,
19 +        dosfstools,
20          ethtool,
21          gdisk,
22          genisoimage,
23 diff --git a/fuel_agent/drivers/nailgun.py b/fuel_agent/drivers/nailgun.py
24 index bc532b4..24d0d64 100644
25 --- a/fuel_agent/drivers/nailgun.py
26 +++ b/fuel_agent/drivers/nailgun.py
27 @@ -324,7 +324,9 @@ class Nailgun(BaseDataDriver):
28                  # uefi partition (for future use)
29                  LOG.debug('Adding UEFI partition on disk %s: size=200' %
30                            disk['name'])
31 -                parted.add_partition(size=200, flags=['esp'])
32 +                prt = parted.add_partition(size=200, flags=['esp'])
33 +                partition_scheme.add_fs(device=prt.name, mount='/boot/efi',
34 +                    fs_type='vfat')
35  
36              LOG.debug('Looping over all volumes on disk %s' % disk['name'])
37              for volume in disk['volumes']:
38 diff --git a/specs/fuel-agent.spec b/specs/fuel-agent.spec
39 index a43f693..c2b9b51 100644
40 --- a/specs/fuel-agent.spec
41 +++ b/specs/fuel-agent.spec
42 @@ -50,6 +50,7 @@ Requires:    xfsprogs
43  Requires:    pciutils
44  Requires:    ethtool
45  Requires:    debootstrap
46 +Requires:    dosfstools
47  Requires:    dpkg
48  Requires:    qemu-user-static
49  Requires:    xz
50 -- 
51 1.9.1
52