It is fine to do in all jobs. libxl will only use this if we ask it
to.
We do need to check whether the user exists already, since adduser
does not seem to have a mode which exits zero in that case.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
}
sub adjustconfig () {
+ my $quser = 'xen-qemuuser-range-base';
+ target_cmd_root($ho, "id $quser || adduser --system --uid=200000 $quser");
+
target_editfile_root($ho, "/etc/xen/xend-config.sxp",
"xend-config.sxp", sub {
my (@domains) = (qw(localhost localhost.localdomain),