Hi Tong,
unfortunately no 'nested' bind mount seem to be possible
I.e., with a structure as
> ls /tmp/foo/
baz nope
my idea was just to bind another dir/file over one of the subdirs, e.g.,
--bind /tmp/foo:/tmp/foo --bind /dev/null:/tmp/foo/nope
but unfortunately that fails
It seems to be a general thing, as also stacking manual binds into each
other is not well received
> mount --bind /tmp/foo /tmp/bindfoo
> mount --bind /dev/null /tmp/bindfoo/nope/
mount: /tmp/bindfoo/nope: mount(2) system call failed: Not a directory.
> stat /tmp/bindfoo/nope/
File: /tmp/bindfoo/nope/
Size: 40 Blocks: 0 IO Block: 4096 directory
Device: 2ch/44d Inode: 12988919 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 1000/hartlocal) Gid: ( 1000/hartlocal)
Context: unconfined_u:object_r:user_tmp_t:s0
Access: 2019-05-13 09:46:57.473719869 +0200
Modify: 2019-05-13 09:37:20.746773623 +0200
Change: 2019-05-13 09:37:20.746773623 +0200
Birth: -
Cheers,
Thomas
> --
> You received this message because you are subscribed to the Google
> Groups "singularity" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
singularity...@lbl.gov
> <mailto:
singularity...@lbl.gov>.