Hi all,
I run a daily script that mounts a drive and unmounts it and puts it to sleep when the task is done.
I have been trying to achieve this inside my LXC container, however had no luck. what I did:
- I tried changing inside the lxc config file the app.armor profile but that gave me a lot of around (one of them not being able to switch to the mount profile)
- I add mount option to the lxc-default apparmor profile --> no more error messages and the container boots up a it usually does
However I seem to be missing something - because mount does not work on the respective device - either by path nor by uuid (preferred):
I run a daily script that mounts a drive and unmounts it and puts it to sleep when the task is done.
I have been trying to achieve this inside my LXC container, however had no luck. what I did:
- I tried changing inside the lxc config file the app.armor profile but that gave me a lot of around (one of them not being able to switch to the mount profile)
- I add mount option to the lxc-default apparmor profile --> no more error messages and the container boots up a it usually does
However I seem to be missing something - because mount does not work on the respective device - either by path nor by uuid (preferred):
Code:
sudo mount UUID=68a47b7b-c844-41c9-9cae-484b698b4f57 /data/parity_disk -o noatime
mount: special device UUID=68a47b7b-c844-41c9-9cae-484b698b4f57 does not exist
sudo mount /dev/sdd /data/parity_disk -o noatime
mount: special device /dev/sdd does not exist