Skip to content

Commit

Permalink
qm.container: add tmpfs additional flags
Browse files Browse the repository at this point in the history
Resolves: #723
Signed-off-by: Douglas Schilling Landgraf <[email protected]>
  • Loading branch information
dougsland committed Feb 21, 2025
1 parent 6666250 commit abad583
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions qm.container
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,19 @@ Network=private
# Makes the container's filesystem read-only, enhancing security by preventing modifications.
ReadOnly=true

# TmpFS flags
ReadOnlyTmpfs=false
Mount=type=tmpfs,tmpfs-size=512M,destination=/tmp
Mount=type=tmpfs,tmpfs-size=512M,destination=/run

# Rootfs
# ------
# Defines the root filesystem location for QM partition.
# By default the '${ROOTFS}' variable points to /usr/lib/qm/rootfs.
# For details see: https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#rootfs
#
# TmpFS flags
# -----------------
Rootfs=${ROOTFS}

SecurityLabelNested=true
Expand All @@ -94,3 +102,4 @@ SecurityLabelType=qm_t
Timezone=local
Volume=${RWETCFS}:/etc
Volume=${RWVARFS}:/var

0 comments on commit abad583

Please sign in to comment.