image: add sysroot files

This commit is contained in:
Malte Poll 2023-09-11 15:45:35 +02:00 committed by Malte Poll
parent 81c5cc21f8
commit 825dab0e0b
11 changed files with 359 additions and 0 deletions

View file

@ -0,0 +1,11 @@
[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"
ExecStart=/bin/bash -c "ATTESTATION=$(< /proc/cmdline tr ' ' '\n' | grep constel.attestation-variant | sed 's/constel.attestation-variant=//'); echo CONSTEL_ATTESTATION_VARIANT=$ATTESTATION >> /run/constellation.env"
RemainAfterExit=yes
[Install]
WantedBy=basic.target