]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
debian/cephadm.postinst: specify --home when adduser
authorKefu Chai <tchaikov@gmail.com>
Wed, 17 Jan 2024 15:47:39 +0000 (23:47 +0800)
committerYuri Weinstein <yweinste@redhat.com>
Wed, 28 Feb 2024 17:55:46 +0000 (17:55 +0000)
commit99c6672b4f2717119e3f34f42e705481779184e9
tree59e85cfc1f9ed117a63bd488425af9e41b14b18e
parentd01478de7b6ed7c82aaac7f0bba344cc323cc967
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 <tchaikov@gmail.com>
(cherry picked from commit 90bc0369243077c2aaf67f0de2bab5810b217f4e)
(cherry picked from commit 81c71165defaeedaf127263b7e615938df493b8e)
debian/cephadm.postinst