]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
deb/cephadm: Don't assume a home directory is configured
authorElliot Courant <me@elliotcourant.dev>
Mon, 24 Nov 2025 17:50:56 +0000 (11:50 -0600)
committerElliot Courant <me@elliotcourant.dev>
Wed, 10 Dec 2025 20:35:29 +0000 (14:35 -0600)
commit65e2a33ee7b290b8f6cee69ac90359710d806d13
tree19b112099dc94362743f8d1cbc44025fa5f00883
parent2d6d43eaafeec9f701c004786bb296c5cb1c6e45
deb/cephadm: Don't assume a home directory is configured

cephadm.postinst can fail if cephadm was originally installed using a
version that didn't configure a home directory for the user at all.
Newer versions do configure a home directory (as either `/home/cephadm`
or `/var/lib/cephadm`) so if that is configured then nothing needs to be
done. But if the user was created with no home directory then one needs
to be added for the configure step to succeed.

Fixes: https://tracker.ceph.com/issues/72083
commit 90bc0369243077c2aaf67f0de2bab5810b217f4e added home directories
for new cephadm users created, but didn't add home directories to
cephadm users that already existed.

Signed-off-by: Elliot Courant <me@elliotcourant.dev>
debian/cephadm.postinst