Todo List: Switch to systemd-sysusers

2017-12-15 - Bruno Pagani

We are fully embracing the use of systemd-sysusers to create system users and groups required by packages. The filesystem package has been switched to this, now is the turn of every other package having not yet switched.

You can also (thanks @heftig) do a one liner (in most cases) from the install() function like this (replacing <sysusers.d content> with the actual content): echo '<sysusers.d content>' | install -Dm644 /dev/stdin "$pkgdir"/usr/lib/sysusers.d/$pkgname.conf

You can see several examples in the unbound, couchdb or stubby packages. Once done, you might even be able to remove the .install file (we have hook to run systemd-sysusers).