image: initrd layer

This commit is contained in:
Malte Poll 2023-09-11 15:52:05 +02:00 committed by Malte Poll
parent d904766b9c
commit 4ef3d10be3
14 changed files with 375 additions and 0 deletions

View file

@ -0,0 +1,13 @@
enable prepare-state-disk.service
enable aws-nvme-disk.service
enable gcp-nvme-disk.service
enable azure-provisioning.service
enable dbus.service
enable dbus-broker.service
enable dbus-daemon.service
enable systemd-timesyncd.service
enable systemd-resolved.service
enable systemd-networkd.service
enable systemd-networkd-wait-online.service
enable systemd-udev.service
enable configure-constel-csp.service

View file

@ -0,0 +1,18 @@
[Unit]
Description=Force symlink creation for AWS nvme disks
Before=prepare-state-disk.service
After=network-online.target
Wants=network-online.target
ConditionKernelCommandLine=constel.csp=aws
[Service]
Type=oneshot
ExecStart=/bin/bash /usr/sbin/aws-nvme-disk
RemainAfterExit=yes
StandardOutput=tty
StandardInput=tty
StandardError=tty
TimeoutSec=infinity
[Install]
WantedBy=basic.target multi-user.target

View file

@ -0,0 +1,16 @@
[Unit]
Description=Azure Provisioning
After=network-online.target
Wants=network-online.target
ConditionKernelCommandLine=constel.csp=azure
[Service]
Type=oneshot
ExecStart=/usr/local/bin/azure-provisioning
RemainAfterExit=yes
StandardOutput=tty
StandardInput=tty
StandardError=tty
[Install]
WantedBy=basic.target multi-user.target

View file

@ -0,0 +1,18 @@
[Unit]
Description=Force symlink creation for GCP nvme disks
Before=prepare-state-disk.service
After=network-online.target
Wants=network-online.target
ConditionKernelCommandLine=constel.csp=gcp
[Service]
Type=oneshot
ExecStart=/bin/bash /usr/sbin/gcp-nvme-disk
RemainAfterExit=yes
StandardOutput=tty
StandardInput=tty
StandardError=tty
TimeoutSec=infinity
[Install]
WantedBy=basic.target multi-user.target

View file

@ -0,0 +1,21 @@
[Unit]
Description=Prepare encrypted state disk
Before=initrd-fs.target
After=network-online.target nss-lookup.target configure-constel-csp.service
After=export_constellation_debug.service
Wants=network-online.target
Requires=initrd-root-fs.target configure-constel-csp.service
FailureAction=reboot-immediate
[Service]
Type=oneshot
EnvironmentFile=/run/constellation.env
ExecStart=/bin/bash /usr/sbin/prepare-state-disk $CONSTELLATION_DEBUG_FLAGS
RemainAfterExit=yes
StandardOutput=tty
StandardInput=tty
StandardError=tty
TimeoutSec=infinity
[Install]
WantedBy=basic.target

View file

@ -0,0 +1,2 @@
[Install]
WantedBy=initrd.target