|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] CI: Turn debian/12-x86_64 into a non-root container
From: Javi Merino <javi.merino@xxxxxxxxx>
Since commit 4611ae6fb8f9 ("CI: save toolstack artifact as cpio.gz"), the
various automation/scripts/* no longer need to be root to correctly repack the
initrd for test.
Signed-off-by: Javi Merino <javi.merino@xxxxxxxxx>
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
CC: Roger Pau Monné <roger.pau@xxxxxxxxxx>
CC: Stefano Stabellini <sstabellini@xxxxxxxxxx>
CC: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Xen 4.20 and later uses debian:12-x86_64 and also contains 4611ae6fb8f9 so
this is safe to change generally.
---
automation/build/debian/12-x86_64.dockerfile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/automation/build/debian/12-x86_64.dockerfile
b/automation/build/debian/12-x86_64.dockerfile
index e26a19079e38..3cf99c730b61 100644
--- a/automation/build/debian/12-x86_64.dockerfile
+++ b/automation/build/debian/12-x86_64.dockerfile
@@ -9,6 +9,8 @@ RUN <<EOF
#!/bin/bash
set -eu
+ useradd --create-home user
+
apt-get update
DEPS=(
@@ -70,5 +72,5 @@ RUN <<EOF
rm -rf /var/lib/apt/lists*
EOF
-USER root
+USER user
WORKDIR /build
--
2.39.5
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |