diff options
Diffstat (limited to 'scripts/lib/wic/kickstart/custom_commands/partition.py')
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/partition.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 7a307065f2..9be6b0457b 100644 --- a/scripts/lib/wic/kickstart/custom_commands/partition.py +++ b/scripts/lib/wic/kickstart/custom_commands/partition.py | |||
@@ -49,6 +49,7 @@ class Wic_PartData(Mic_PartData): | |||
49 | self.source = kwargs.get("source", None) | 49 | self.source = kwargs.get("source", None) |
50 | self.sourceparams = kwargs.get("sourceparams", None) | 50 | self.sourceparams = kwargs.get("sourceparams", None) |
51 | self.rootfs = kwargs.get("rootfs-dir", None) | 51 | self.rootfs = kwargs.get("rootfs-dir", None) |
52 | self.no_table = kwargs.get("no-table", False) | ||
52 | self.source_file = "" | 53 | self.source_file = "" |
53 | self.size = 0 | 54 | self.size = 0 |
54 | 55 | ||
@@ -61,6 +62,8 @@ class Wic_PartData(Mic_PartData): | |||
61 | retval += " --sourceparams=%s" % self.sourceparams | 62 | retval += " --sourceparams=%s" % self.sourceparams |
62 | if self.rootfs: | 63 | if self.rootfs: |
63 | retval += " --rootfs-dir=%s" % self.rootfs | 64 | retval += " --rootfs-dir=%s" % self.rootfs |
65 | if self.no_table: | ||
66 | retval += " --no-table" | ||
64 | 67 | ||
65 | return retval | 68 | return retval |
66 | 69 | ||
@@ -521,4 +524,7 @@ class Wic_Partition(Mic_Partition): | |||
521 | # use specified rootfs path to fill the partition | 524 | # use specified rootfs path to fill the partition |
522 | op.add_option("--rootfs-dir", type="string", action="store", | 525 | op.add_option("--rootfs-dir", type="string", action="store", |
523 | dest="rootfs", default=None) | 526 | dest="rootfs", default=None) |
527 | # wether to add the partition in the partition table | ||
528 | op.add_option("--no-table", dest="no_table", action="store_true", | ||
529 | default=False) | ||
524 | return op | 530 | return op |