I use this command to mount a tmpfs filesystem on top of `/usr` using OverlayFS to temporarily make the FMOS immutable filesystem mutable. This is particularly useful for testing changes without rebuilding the image.
1 line
137 B
Plaintext
1 line
137 B
Plaintext
mkdir -p /run/fmos/usr/{.work,rw} && mount -t overlay -o lowerdir=/usr,upperdir=/run/fmos/usr/rw,workdir=/run/fmos/usr/.work overlay /usr |