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 <samir.akarioh@canonical.com>
canary-new-desktop
Samir Akarioh 2 years ago
parent 105acdebc7
commit 8b8ad2e0ac

@ -986,7 +986,10 @@ EOF
mkdir -p ${chroot}/run/systemd mkdir -p ${chroot}/run/systemd
echo 'docker' > ${chroot}/run/systemd/container 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 rm -rf ${chroot}/var/cache/apt/*.bin
echo "==== Configuring OCI done ====" echo "==== Configuring OCI done ===="
} }

Loading…
Cancel
Save