From 8b8ad2e0ac8ae4ffb39375024f4de2d909da6d5b Mon Sep 17 00:00:00 2001 From: Samir Akarioh Date: Wed, 2 Nov 2022 14:58:50 +0100 Subject: [PATCH] feat: Add Ubuntu user We add a ubuntu user inside the image because we want to have a operational nonroot user and also be aligned with the other Ubuntu images. Signed-off-by: Samir Akarioh --- live-build/functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/live-build/functions b/live-build/functions index 721f2beb..b738b9ce 100644 --- a/live-build/functions +++ b/live-build/functions @@ -986,7 +986,10 @@ EOF mkdir -p ${chroot}/run/systemd echo 'docker' > ${chroot}/run/systemd/container + # Create Ubuntu user + Chroot ${chroot} useradd ubuntu -U -u 1000 --comment Ubuntu --groups adm,audio,cdrom,dialout,dip,floppy,plugdev,sudo,video --shell /bin/bash -m rm -rf ${chroot}/var/cache/apt/*.bin + echo "==== Configuring OCI done ====" }