mount point of tmp

10 views
Skip to first unread message

zhiting zhu

unread,
Nov 6, 2019, 2:39:23 PM11/6/19
to OSv Development
Hey,

Is there anyway to change the mount point of osv of some directory? In the zfs image, it seems /tmp is mounted on the zfs rather than ramfs. Is there anyway to change the mount point for /tmp to be on ramfs? The same apply to rofs. /tmp on rofs image is mount on rofs not ramfs, which prevents me to save temp file there. I'm using capstan compose to create the image.

Best,
Zhiting

Waldek Kozaczuk

unread,
Nov 7, 2019, 8:24:39 AM11/7/19
to OSv Development
You just need to override /etc.fstab file by adding your own when building using capstan. Add this line:

none         /tmp       ramfs     defaults 0 0

per this ROFS version of fstab - https://github.com/cloudius-systems/osv/blob/master/static/etc/fstab_rofs
Reply all
Reply to author
Forward
0 new messages