Moving /var/cagefs directory

To move /var/cagefs to another location:

$ cagefsctl –disable-cagefs
$ cagefsctl –unmount-all

Verify that /var/cagefs.bak directory does not exist (if it exists – change name “cagefs.bak” to something else)

$ cp -rp /var/cagefs /var/cagefs.bak
$ ln -s /new/path/cagefs /var/cagefs
$ cagefsctl –enable-cagefs
$ cagefsctl –remount-all

Verify that the following command gives empty output:

$ cat /proc/mounts | grep cagefs.bak

Then you can safely remove /var/cagefs.bak:

$ rm -rf /var/cagefs.bak

Commentaire

Commentaire