]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
debian/cephadm.postinst: stop using adduser --gecos
authorKefu Chai <tchaikov@gmail.com>
Sat, 3 Feb 2024 05:46:05 +0000 (13:46 +0800)
committerYuri Weinstein <yweinste@redhat.com>
Wed, 28 Feb 2024 17:56:10 +0000 (17:56 +0000)
commitc103bed50be19710125780ba883a92de4e7944f0
tree722fe6ffd867ae439153a2436355cf9b0964384e
parent513521334d8a8b8f40161bd60114a7e5f1d19377
debian/cephadm.postinst: stop using adduser --gecos

--gecos option of adduser is deprecated in debian/bookworm, and
will be removed in debian/trixie,
see https://manpages.debian.org/bookworm/adduser/adduser.8.en.html.
so to be future-proof, let's switch to `usermod --comment`. please
note, since we still need to support ubuntu/jammy which is used in
our CI, and `adduser` shipped by ubuntu/jammy does not support
`--comment` yet, so we cannot use this option.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit e74ec0b27dfb480a2951f85bf00072e95d944772)
(cherry picked from commit 5a236031951a2a6f8b358a25b9238dd1e8281f10)
debian/cephadm.postinst