mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
deb/cephadm: add explicit --home for cephadm user
cephadm.postinst fails on ubuntu 24.04, because the cephadm user it creates ends up with a `/nonexistent` home directory: > mkdir: cannot create directory '/nonexistent/.ssh': No such file or directory on ubuntu 22.04, this user's home directory is `/home/cephadm` the `adduser` man page for 24.04 includes this new text: > If no home directory is specified, the default home directory for a new system user is /nonexistent. This directory should never exist on any Debian system, and adduser will never create it automatically. commit90bc036924had previously added `--home /home/cephadm`, but that was later removed by commitc5a316cfd5to support non-default home directories. the latter commit's author recommends use of `--home /var/lib/cephadm` instead Fixes: https://tracker.ceph.com/issues/72083 Signed-off-by: Casey Bodley <cbodley@redhat.com> (cherry picked from commit6fddc83e26)
This commit is contained in:
parent
ec20d40ab6
commit
3017121fb2
1
debian/cephadm.postinst
vendored
1
debian/cephadm.postinst
vendored
@ -28,6 +28,7 @@ case "$1" in
|
||||
adduser --quiet \
|
||||
--system \
|
||||
--disabled-password \
|
||||
--home /var/lib/cephadm \
|
||||
--shell /bin/bash cephadm 2>/dev/null || true
|
||||
usermod --comment "cephadm user for mgr/cephadm" cephadm
|
||||
echo "..done"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user