Как я мог преобразовать эти команды в fstab?
/bin/mount --make-rshared /
/bin/mount --bind /with /with
/bin/mount --make-rprivate /with
/bin/mount -t tmpfs company-with-global /with
В странице справочника для mount
говорится в главе о shared subtree operations
:
Since util-linux 2.23 the mount command allows to use several propagation flags together and also together with other mount operations. This feature is EXPERIMENTAL. The propaga‐
tion flags are applied by additional mount(2) syscalls when the preceding mount operations were successful. Note that this use case is not atomic. It is possible to specify the
propagation flags in fstab(5) as mount options (private, slave, shared, unbindable, rprivate, rslave, rshared, runbindable).
Это означает:
rshared
к опциям для монтирования /
bind
монтирует запись для /with
с rprivate
, опция tmpfs
монтируется (я думаю Ваш /bin/mount --bind /with /with
, опечатка?)
Никогда не пробовал это, но возможно это работает.