debugging

This commit is contained in:
Patrick Schleizer 2025-11-10 02:21:27 -05:00
parent 45126cede6
commit fc1b865dd7
No known key found for this signature in database
GPG key ID: CB8D50BB77BB3C48

View file

@ -22,6 +22,7 @@ elif [ -r /proc/1/cmdline ]; then
fi
if [[ "$kernel_cmdline" =~ 'boot-role=sysmaint' ]]; then
true "INFO: session type: sysmaint session"
if [ "$PAM_USER" != 'sysmaint' ]; then
printf '%s\n' 'ERROR: Rejecting non-sysmaint account in sysmaint session!'
exit 1
@ -30,6 +31,8 @@ if [[ "$kernel_cmdline" =~ 'boot-role=sysmaint' ]]; then
exit 0
fi
true "INFO: session type: user session"
if ! output="$(/usr/libexec/helper-scripts/get-user-list)"; then
printf '%s\n' 'ERROR: Failed to get user list!'
exit 1