This is mainly intended for allowing "Match Group" configuration in
sshd_config.
server/systemd/novaboot-target-off@.target /lib/systemd/system
server/systemd/novaboot-target-off@.timer /lib/systemd/system
server/systemd/novaboot-target-on@.service /lib/systemd/system
+server/sysusers.d/novaboot-server.conf /usr/lib/sysusers.d
--- /dev/null
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ configure)
+ if ! getent group novaboot >> /dev/null 2>&1; then
+ addgroup --quiet --system novaboot
+ fi
+ ;;
+esac
+
+#DEBHELPER#
[ -z "$key" -o "$(echo "$key" | wc -l)" -ne 1 ] && die "--key needs to be just one line"
echo "$key" | grep -q ssh || die "--key does not look like an SSH public key"
-adduser --disabled-password --shell $(which novaboot-shell) $adduser_opts "$@"
+adduser --disabled-password --ingroup novaboot --shell $(which novaboot-shell) $adduser_opts "$@"
user="$1"
home=$(getent passwd "$user"|awk -F: '{print $6;}')
--- /dev/null
+g novaboot - -