diff --git a/images/linux/post-generation/systemd-linger.sh b/images/linux/post-generation/systemd-linger.sh new file mode 100644 index 000000000..294c8f1ba --- /dev/null +++ b/images/linux/post-generation/systemd-linger.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# Enable user session on boot, not on login +UserId=$(cut -d: -f3 /etc/passwd | tail -1) +loginctl enable-linger $UserId