Bind-dirs - how to mount directories with subfolders and files

Hello,

following the documentation:

It is possible to mount FILES only

While trying to mount a directory with sub-directories and files, it fails
The mounted directory is not mounted correctly, so no sub-directories nor files are available.

How could a directory be mounted with dub-directories and files available ?

My Scenario:

I am trying to mount a crypttab file and a folder containing the necessary LUKS KEYS

ls /rw/bind-dirs/etc/crypt*

/rw/bind-dirs/etc/crypttab
/rw/bind-dirs/etc/cryptkeys/luks-<UUID_01>.key
/rw/bind-dirs/etc/cryptkeys/luks-<UUID_02>.key
/rw/bind-dirs/etc/cryptkeys/luks-<UUID_03>.key

with configuration in /rw/config/qubes-bind-dirs.d/50_user.conf

binds+=( '/etc/crypttab' ) 
binds+=( '/etc/cryptkeys/luks-<UUID_01>.key' )
binds+=( '/etc/cryptkeys/luks-<UUID_02>.key' )
binds+=( '/etc/cryptkeys/luks-<UUID_03>.key' )

it would be expected that instead of listing each file, an entry for the directory should have been sufficient, such as:

binds+=( β€˜/etc/cryptkeys/’ )

Thanks

Have you tried this? :slight_smile:

Because it’s supposed to work as desired, unless I don’t understand what you want to do.

1 Like

Found the error: user error :scream:

The template window was open, as well as, the APPVM
There were sections in different places.
The APPVM works as expected now.

Thanks for the input, and sorry to take up your time

3 Likes