Skip to content

eBPF-based security platform

initrd: make the sysroot remount best effort

Daniel Borkmann0f43d6440524
diff --git a/systemd/shirudo-initrd.service.in b/systemd/shirudo-initrd.service.in
index f955e711..005f58b5 100644
--- a/systemd/shirudo-initrd.service.in
+++ b/systemd/shirudo-initrd.service.in
@@ -34,7 +34,7 @@ Type=oneshot
LimitMEMLOCK=infinity
RemainAfterExit=yes
KeyringMode=inherit
-ExecStartPre=/usr/bin/mount -o remount,rw /sysroot
+ExecStartPre=-mount -o remount,rw /sysroot
ExecStart=@bindir@/shirudo init
[Install]