mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-12 08:36:36 -05:00
image: initrd layer
This commit is contained in:
parent
d904766b9c
commit
4ef3d10be3
14 changed files with 375 additions and 0 deletions
16
image/initrd/mkosi.postinst
Executable file
16
image/initrd/mkosi.postinst
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
# ensure google_nvme_id is executable
|
||||
chmod o+x "${BUILDROOT}/usr/lib/udev/google_nvme_id"
|
||||
chmod g+x "${BUILDROOT}/usr/lib/udev/google_nvme_id"
|
||||
chmod u+x "${BUILDROOT}/usr/lib/udev/google_nvme_id"
|
||||
|
||||
# mask unwanted services
|
||||
ln -s /dev/null "${BUILDROOT}/etc/systemd/system/systemd-pcrmachine.service"
|
||||
ln -s /dev/null "${BUILDROOT}/etc/systemd/system/systemd-pcrfs-root.service"
|
||||
ln -s /dev/null "${BUILDROOT}/etc/systemd/system/systemd-pcrfs@.service"
|
||||
ln -s /dev/null "${BUILDROOT}/etc/systemd/system/systemd-pcrphase@.service"
|
||||
ln -s /dev/null "${BUILDROOT}/etc/systemd/system/systemd-pcrphase-initrd.service"
|
||||
ln -s /dev/null "${BUILDROOT}/etc/systemd/system/systemd-pcrphase-sysinit.service"
|
||||
ln -s /dev/null "${BUILDROOT}/etc/systemd/system/systemd-pcrphase.service"
|
||||
Loading…
Add table
Add a link
Reference in a new issue