diff options
| author | unitexe <unitexe70@gmail.com> | 2026-01-11 00:28:02 -0600 |
|---|---|---|
| committer | unitexe <unitexe70@gmail.com> | 2026-01-11 00:40:28 -0600 |
| commit | a33937d31fbede0e9f7dd7055dcb6ae95d305d59 (patch) | |
| tree | df907cef30e832a5dae337047d2b1dabc5ad8648 /meta-virtualization-extra/classes/enable-linger.bbclass | |
| parent | e99d9bb6788424ec7711d187985bb93b8b5c1175 (diff) | |
Rootless banner quadlet
Diffstat (limited to 'meta-virtualization-extra/classes/enable-linger.bbclass')
| -rw-r--r-- | meta-virtualization-extra/classes/enable-linger.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-virtualization-extra/classes/enable-linger.bbclass b/meta-virtualization-extra/classes/enable-linger.bbclass new file mode 100644 index 0000000..cfb21e7 --- /dev/null +++ b/meta-virtualization-extra/classes/enable-linger.bbclass @@ -0,0 +1,11 @@ +do_install:append() { + # If linger is not enabled then rootless podman + # commands will complain with number of warnings. + # Enabling linger does two effects for systemd user units: + # 1. Units are automatically started after a reboot + # 2. Units are not automatically stopped after a log out + install -d ${D}${localstatedir}/lib/systemd/linger + touch ${D}${localstatedir}/lib/systemd/linger/${USER_TO_ADD_NAME} +} + +FILES:${PN}:append = " ${localstatedir}/lib/systemd/linger/${USER_TO_ADD_NAME}" |
