void
-step1(const string& device)
+step1(const string& device, const string& description)
{
// step runs in inst-sys
SCD scd;
scd.read_only = false;
+ scd.description = description;
Snapshots::iterator snapshot = snapper.createSingleSnapshot(scd);
{ "device", required_argument, 0, 0 },
{ "root-prefix", required_argument, 0, 0 },
{ "default-subvolume-name", required_argument, 0, 0 },
+ { "description", required_argument, 0, 0 },
{ 0, 0, 0, 0 }
};
string device;
string root_prefix = "/";
string default_subvolume_name;
+ string description;
GetOpts getopts;
if ((opt = opts.find("default-subvolume-name")) != opts.end())
default_subvolume_name = opt->second;
+ if ((opt = opts.find("description")) != opts.end())
+ description = opt->second;
+
if (step == "1")
- step1(device);
+ step1(device, description);
else if (step == "2")
step2(device, root_prefix, default_subvolume_name);
else if (step == "3")