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.jack...@eu.citrix.com>
---
 ts-xen-install | 3 +++
 1 file changed, 3 insertions(+)

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),
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to