Jeansen / bcrm

Clone, Backup, Restore and More
GNU General Public License v3.0
0 stars 1 forks source link

Mount sources read only #179

Closed Jeansen closed 3 years ago

Jeansen commented 4 years ago

mount --bind only works on folders. that's the only option I know of so far to add a mount in addition to -o ro.

Offline sources can always be ro. But online sources have to use bind.

To make this work (with the temporary mounts), a bind mount should map to the temporary device mount (instead of using the mount as a folder name in the temporary mount folder!).

For instance, /mnt/tempfolder/dev/mapper/root should be used to mount --bind /, instead of /mnt/tempfolder/ !!!

Then it should all work ;-)

Jeansen commented 4 years ago

Baybe this will be obsolete with #184 .