]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
debian/cephadm.postinst: stop using adduser --gecos 55218/head
authorKefu Chai <tchaikov@gmail.com>
Sat, 3 Feb 2024 05:46:05 +0000 (13:46 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 3 Feb 2024 14:36:50 +0000 (22:36 +0800)
commite74ec0b27dfb480a2951f85bf00072e95d944772
treeba8c503ff0d6c9757e3b0aa99df51e27d212c745
parent013eebf5357666cf2509a37eecf69ef4ac349321
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>
debian/cephadm.postinst