From: Ian Jackson Date: Wed, 30 May 2018 16:03:06 +0000 (+0100) Subject: ts-xen-install: Create xen-qemuuser-range-base X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3eacd848075b9efe68aa8f3efb593630ac76b929;p=osstest.git ts-xen-install: Create xen-qemuuser-range-base 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 --- diff --git a/ts-xen-install b/ts-xen-install index 9913e85..1ec236f 100755 --- a/ts-xen-install +++ b/ts-xen-install @@ -129,6 +129,9 @@ END } 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),