Hello, hope someone can help as I've search everywhere and cannot find the answer.
So we can use the following command to bind-mount a directory to an LXC container. And that's great, however you now cannot snapshot.. Which is find since removing this directory allows you to snapshot again, then mount it again job done.
However, I would like to just write a script which removes the bind mount, performs snapshot, then adds the bind mound again...
Current way to do this is to use:
I dont really like using that method, and it would be good if there is an official way to remove the mount other than modifying the .conf file.
Is there an easier way by using something like
Thanks for any help
So we can use the following command to bind-mount a directory to an LXC container. And that's great, however you now cannot snapshot.. Which is find since removing this directory allows you to snapshot again, then mount it again job done.
Bash:
pct set 100 -mp1 /some/directory,mp=/some/directory
However, I would like to just write a script which removes the bind mount, performs snapshot, then adds the bind mound again...
Current way to do this is to use:
Bash:
sed -i '/^mp1/d' /etc/pve/lxc/100.conf
I dont really like using that method, and it would be good if there is an official way to remove the mount other than modifying the .conf file.
Is there an easier way by using something like
Bash:
pct unset -mp1??
Thanks for any help