Hi,

I have a bunch of podman containers that I would like to load at system boot. I am running RHEL 8.10.

I have something like this for startup:

[Unit]

Description=Load Podman images at system boot

After=network.target

 

[Service]

Type=oneshot

User=test

ExecStart=/usr/bin/podman load --input /path/to/image_directory

RemainAfterExit=yes

 

[Install]

WantedBy=multi-user.target


But systemd keeps on exiting at exit-code 125; nonetheless, if I load it manually, the container will load even seeing the chatty messages.


Furthermore, how can I redirect /var/tmp to somewhere else? can I identify that environment variable in systemd?


thanks!



--T