diff options
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/wic/imager/direct.py | 3 | ||||
-rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py index 36150c9ad3..2290ecd07d 100644 --- a/scripts/lib/wic/imager/direct.py +++ b/scripts/lib/wic/imager/direct.py | |||
@@ -272,7 +272,8 @@ class DirectImageCreator(BaseImageCreator): | |||
272 | boot=p.active, | 272 | boot=p.active, |
273 | align=p.align, | 273 | align=p.align, |
274 | no_table=p.no_table, | 274 | no_table=p.no_table, |
275 | part_type=p.part_type) | 275 | part_type=p.part_type, |
276 | uuid=p.uuid) | ||
276 | 277 | ||
277 | self._restore_fstab(fstab) | 278 | self._restore_fstab(fstab) |
278 | 279 | ||
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index 902548fbf8..a6e2e4f233 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py | |||
@@ -86,7 +86,7 @@ class Image(object): | |||
86 | 86 | ||
87 | def add_partition(self, size, disk_name, mountpoint, source_file=None, fstype=None, | 87 | def add_partition(self, size, disk_name, mountpoint, source_file=None, fstype=None, |
88 | label=None, fsopts=None, boot=False, align=None, no_table=False, | 88 | label=None, fsopts=None, boot=False, align=None, no_table=False, |
89 | part_type=None): | 89 | part_type=None, uuid=None): |
90 | """ Add the next partition. Prtitions have to be added in the | 90 | """ Add the next partition. Prtitions have to be added in the |
91 | first-to-last order. """ | 91 | first-to-last order. """ |
92 | 92 | ||
@@ -110,7 +110,8 @@ class Image(object): | |||
110 | 'boot': boot, # Bootable flag | 110 | 'boot': boot, # Bootable flag |
111 | 'align': align, # Partition alignment | 111 | 'align': align, # Partition alignment |
112 | 'no_table' : no_table, # Partition does not appear in partition table | 112 | 'no_table' : no_table, # Partition does not appear in partition table |
113 | 'part_type' : part_type} # Partition type | 113 | 'part_type' : part_type, # Partition type |
114 | 'uuid': uuid} # Partition UUID | ||
114 | 115 | ||
115 | self.__add_partition(part) | 116 | self.__add_partition(part) |
116 | 117 | ||