diff options
-rw-r--r-- | scripts/lib/wic/ksparser.py | 1 | ||||
-rw-r--r-- | scripts/lib/wic/partition.py | 1 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct.py | 7 |
3 files changed, 9 insertions, 0 deletions
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py index d1e546b12d..667b2ff9c3 100644 --- a/scripts/lib/wic/ksparser.py +++ b/scripts/lib/wic/ksparser.py | |||
@@ -171,6 +171,7 @@ class KickStart(): | |||
171 | part.add_argument('--rootfs-dir') | 171 | part.add_argument('--rootfs-dir') |
172 | part.add_argument('--type', default='primary', | 172 | part.add_argument('--type', default='primary', |
173 | choices = ('primary', 'logical')) | 173 | choices = ('primary', 'logical')) |
174 | part.add_argument('--hidden', action='store_true') | ||
174 | 175 | ||
175 | # --size and --fixed-size cannot be specified together; options | 176 | # --size and --fixed-size cannot be specified together; options |
176 | # ----extra-space and --overhead-factor should also raise a parser | 177 | # ----extra-space and --overhead-factor should also raise a parser |
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 382afa44bc..bda4aef1b4 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
@@ -59,6 +59,7 @@ class Partition(): | |||
59 | self.updated_fstab_path = None | 59 | self.updated_fstab_path = None |
60 | self.has_fstab = False | 60 | self.has_fstab = False |
61 | self.update_fstab_in_rootfs = False | 61 | self.update_fstab_in_rootfs = False |
62 | self.hidden = args.hidden | ||
62 | 63 | ||
63 | self.lineno = lineno | 64 | self.lineno = lineno |
64 | self.source_file = "" | 65 | self.source_file = "" |
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py index 7315d8f073..55347f5480 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py | |||
@@ -605,6 +605,13 @@ class PartitionedImage(): | |||
605 | (self.path, part.num, part.system_id), | 605 | (self.path, part.num, part.system_id), |
606 | self.native_sysroot) | 606 | self.native_sysroot) |
607 | 607 | ||
608 | if part.hidden and self.ptable_format == "gpt": | ||
609 | logger.debug("Set hidden attribute for partition '%s' on disk '%s'", | ||
610 | part.num, self.path) | ||
611 | exec_native_cmd("sfdisk --part-attrs %s %s RequiredPartition" % \ | ||
612 | (self.path, part.num), | ||
613 | self.native_sysroot) | ||
614 | |||
608 | def cleanup(self): | 615 | def cleanup(self): |
609 | pass | 616 | pass |
610 | 617 | ||