constellation/image/mkosi.skeleton/usr/lib/systemd/system/configure-constel-csp.service

11 lines
324 B
SYSTEMD
Raw Normal View History

2022-10-19 07:10:15 -04:00
[Unit]
Description=Configures constellation cloud service provider environment variable
[Service]
Type=oneshot
ExecStart=/bin/bash -c "CSP=$(< /proc/cmdline tr ' ' '\n' | grep constel.csp | sed 's/constel.csp=//'); echo CONSTEL_CSP=$CSP >> /run/constellation.env"
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target