]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
debian/cephadm.postinst: stop using adduser --gecos 55709/head
authorKefu Chai <tchaikov@gmail.com>
Sat, 3 Feb 2024 05:46:05 +0000 (13:46 +0800)
committerMatthew Vernon <mvernon@wikimedia.org>
Thu, 22 Feb 2024 10:06:29 +0000 (10:06 +0000)
commit5a236031951a2a6f8b358a25b9238dd1e8281f10
tree2184c61b78af8d4a078ceac3c4203f27db1be690
parent7cff98556ecc407da17d62ca26b6989d1a2837d2
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)
debian/cephadm.postinst