[systemd-devel] Persist mount from initramfs with systemd.volatile boot

serenissi serenissi at inventati.org
Sat Nov 9 23:42:29 UTC 2024


I have an use case that requires persisting a mount (/sysroot/mnt) from 
initramfs. The system is booted with systemd.volatile, so only /usr of 
/sysroot is used, rest is tmpfs.

Ideally I should add the mount unit in the /usr itself but /usr is a 
read only signed fs that I can't modify for reasons. I can arbitrarily 
change initramfs though. As it is an ephemerous system, there isn't any 
other place.


Is it somehow possible? I couldn't think of a way surviving the 
pivot_root for volatile.


serene

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x20257A7131FFF28B.asc
Type: application/pgp-keys
Size: 652 bytes
Desc: OpenPGP public key
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20241110/41cfb1ca/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20241110/41cfb1ca/attachment.sig>


More information about the systemd-devel mailing list