[neon/neon/livecd-rootfs/Neon/release] live-build/buildd/hooks: fix(buildd): create buildd homedir

John Chittum null at kde.org
Sun Jan 12 06:02:16 GMT 2025


Git commit b7c2cf45b14802e37c4b2997e134b9fe614ece9c by John Chittum.
Committed on 06/11/2024 at 12:33.
Pushed by carlosdem into branch 'Neon/release'.

fix(buildd): create buildd homedir

LP:2083240

starting in noble, adduser no longer creates a homedir for system users.
The buildd user then does not have a home directory, causing snaps to be
unable to run, as well as possibly other issues from a missing assumed
homedir. Explicitly create /home/buildd

M  +2    -1    live-build/buildd/hooks/02-user.chroot

https://invent.kde.org/neon/neon/livecd-rootfs/-/commit/b7c2cf45b14802e37c4b2997e134b9fe614ece9c

diff --git a/live-build/buildd/hooks/02-user.chroot b/live-build/buildd/hooks/02-user.chroot
index 86000bf2..66aa4b5e 100755
--- a/live-build/buildd/hooks/02-user.chroot
+++ b/live-build/buildd/hooks/02-user.chroot
@@ -4,6 +4,7 @@ set -e
 # Create the buildd user and group.
 addgroup --gid 2501 buildd
 adduser --system --disabled-password --gecos 'Build Daemon user' \
-	--ingroup buildd --uid 2001 --shell /bin/bash buildd
+	--ingroup buildd --uid 2001 --shell /bin/bash --home /home/buildd \
+	buildd
 mkdir -p /build/buildd
 chown buildd:buildd /build/buildd



More information about the Neon-commits mailing list