CmdID

CmdID / Commands

systemctl-mount-image

Mount an image file into a unit's mount namespace. tldr-pages

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Mount an image file into a unit's mount namespace. Only supported for the units that run within a mountspace i.e. with RootImage=, PrivateMounts=, etc.

Mount an image at a specific path inside the unit's mount namespace

systemctl mount-image unit /path/to/image /path/to/directory_inside_unitIdentify

Mount the image's root partition with read-only and no-setuid options

systemctl mount-image unit /path/to/image /path/to/directory_inside_unit root:ro,nosuidIdentify

Create the destination directory before mounting

systemctl mount-image --mkdir unit /path/to/image /path/to/directory_inside_unitIdentify

Mount an image as read-only

systemctl mount-image --read-only unit /path/to/image /path/to/directory_inside_unitIdentify