mirror of
https://github.com/projectatomic/atomic.git
synced 2026-02-05 18:45:01 +01:00
Ostree already has functionality to extract images as non-root user. This involves changing OSTree's checkout mode to USER (only if the image's repo was created with BARE_USER mode). Atomic will then ignore calls to mount_path since there is no need to run the mount systemcall since ostree checkout already takes care of thata. Also added changes to allow atomic to unmount an image previously mounted by non-root user. This involves a patch to atomic mount to change permissions of the image once mounted. It then removes symbolic links before removing all the subdirectories in the specified mount directory. Closes: #509 Approved by: rhatdan
600 B
600 B
% ATOMIC(1) % Will Temple % June 2015
NAME
atomic-unmount - Unmount Images/Containers
SYNOPSIS
atomic unmount [-h|--help] DIRECTORY
DESCRIPTION
atomic unmount will unmount a container/image previously mounted with atomic mount. If the UID of the user is not zero, i.e. if the user is not root, it will expect the image being deleted was mounted by non-root user and will delete the files rather than use the unmount system call.
OPTIONS:
-h --help Print usage statement
HISTORY
June 2015, Originally compiled by William Temple (wtemple at redhat dot com)