From: Kefu Chai Date: Wed, 17 Jan 2024 15:47:39 +0000 (+0800) Subject: debian/cephadm.postinst: specify --home when adduser X-Git-Tag: testing/wip-batrick-testing-20240411.154038~400^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=90bc0369243077c2aaf67f0de2bab5810b217f4e;p=ceph-ci.git debian/cephadm.postinst: specify --home when adduser quote from adduser/NEWS.Debian.gz: > System user home defaults to /nonexistent if --home is not specified. > Packages that call adduser to create system accounts should explicitly > specify a location for /home (see Lintian check > maintainer-script-lacks-home-in-adduser). so let's follow this change in adduser. otherwise "cephadm" would have a $HOME at `/nonexistent`. Fixes: https://tracker.ceph.com/issues/64069 Signed-off-by: Kefu Chai --- diff --git a/debian/cephadm.postinst b/debian/cephadm.postinst index 090677ad992..eaa574cbb63 100644 --- a/debian/cephadm.postinst +++ b/debian/cephadm.postinst @@ -28,6 +28,7 @@ case "$1" in adduser --quiet \ --system \ --disabled-password \ + --home /home/cephadm \ --gecos 'cephadm user for mgr/cephadm' \ --shell /bin/bash cephadm 2>/dev/null || true echo "..done"