mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-23 11:21:12 +00:00
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
11 lines
283 B
Bash
Executable File
11 lines
283 B
Bash
Executable File
#! /bin/sh
|
|
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 --home /home/buildd \
|
|
buildd
|
|
mkdir -p /build/buildd
|
|
chown buildd:buildd /build/buildd
|