fmos/make writable: Mount tmpfs overlay on /usr

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.
This commit is contained in:
2019-04-01 13:57:25 -05:00
parent ee0abcda84
commit 29d45d92b5

1
fmos/make writable Normal file
View File

@@ -0,0 +1 @@
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