From 3eacd848075b9efe68aa8f3efb593630ac76b929 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 30 May 2018 17:03:06 +0100 Subject: [PATCH] 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 --- 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.39.5