summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-25 10:29:58 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-25 14:47:15 +0100
commite64bf3fb2945e552d74bde43fb2ff4e1180b976b (patch)
tree5229b59c5d13f1d65be82dc2a8d184dcd441c9af /generator
parent2b59b5f1d2e36b0ef84b7c7c9ab2c4b602f2ad91 (diff)
New APIs: pvchange-uuid, pvchange-uuid-all, vgchange-uuid, vgchange-uuid-all.
These APIs will allow sysprep to change the UUIDs of all PVs and VGs in the system. LVs don't have UUIDs AFAICT, or at least there seems to be no way to change them if they do have them.
Diffstat (limited to 'generator')
-rw-r--r--generator/generator_actions.ml62
1 files changed, 62 insertions, 0 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index ecb2e8cd..a07fce96 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -8975,6 +8975,68 @@ The returned struct contains geometry information. Missing
fields are returned as C<-1> (for numeric fields) or empty
string." };
+ { defaults with
+ name = "pvchange_uuid";
+ style = RErr, [Device "device"], [];
+ proc_nr = Some 338;
+ optional = Some "lvm2";
+ tests = [
+ InitEmpty, IfAvailable "lvm2", TestRun (
+ [["part_disk"; "/dev/sda"; "mbr"];
+ ["pvcreate"; "/dev/sda1"];
+ ["pvchange_uuid"; "/dev/sda1"]])
+ ];
+ shortdesc = "generate a new random UUID for a physical volume";
+ longdesc = "\
+Generate a new random UUID for the physical volume C<device>." };
+
+ { defaults with
+ name = "pvchange_uuid_all";
+ style = RErr, [], [];
+ proc_nr = Some 339;
+ optional = Some "lvm2";
+ tests = [
+ InitEmpty, IfAvailable "lvm2", TestRun (
+ [["part_disk"; "/dev/sda"; "mbr"];
+ ["pvcreate"; "/dev/sda1"];
+ ["pvchange_uuid_all"]])
+ ];
+ shortdesc = "generate new random UUIDs for all physical volumes";
+ longdesc = "\
+Generate new random UUIDs for all physical volumes." };
+
+ { defaults with
+ name = "vgchange_uuid";
+ style = RErr, [String "vg"], [];
+ proc_nr = Some 340;
+ optional = Some "lvm2";
+ tests = [
+ InitEmpty, IfAvailable "lvm2", TestRun (
+ [["part_disk"; "/dev/sda"; "mbr"];
+ ["pvcreate"; "/dev/sda1"];
+ ["vgcreate"; "VG"; "/dev/sda1"];
+ ["vgchange_uuid"; "/dev/VG"]])
+ ];
+ shortdesc = "generate a new random UUID for a volume group";
+ longdesc = "\
+Generate a new random UUID for the volume group C<vg>." };
+
+ { defaults with
+ name = "vgchange_uuid_all";
+ style = RErr, [], [];
+ proc_nr = Some 341;
+ optional = Some "lvm2";
+ tests = [
+ InitEmpty, IfAvailable "lvm2", TestRun (
+ [["part_disk"; "/dev/sda"; "mbr"];
+ ["pvcreate"; "/dev/sda1"];
+ ["vgcreate"; "VG"; "/dev/sda1"];
+ ["vgchange_uuid_all"]])
+ ];
+ shortdesc = "generate new random UUIDs for all volume groups";
+ longdesc = "\
+Generate new random UUIDs for all volume groups." };
+
]
(* Non-API meta-commands available only in guestfish.