diff --git a/docs/docs/usage.md b/docs/docs/usage.md index 2374dea3..54783266 100644 --- a/docs/docs/usage.md +++ b/docs/docs/usage.md @@ -238,9 +238,9 @@ lrwxrwxrwx. 1 root root 0 May 1 04:33 /proc/self/ns/net -> 'net:[4026532287]' ## Debugging with podman in QM ```console -bash-5.1# podman --root /usr/share/containers/storage pull alpine -Error: creating runtime static files directory "/usr/share/containers/storage/libpod": -mkdir /usr/share/containers/storage: read-only file system +bash-5.1# podman --root /usr/lib/containers/storage pull alpine +Error: creating runtime static files directory "/usr/lib/containers/storage/libpod": +mkdir /usr/lib/containers/storage: read-only file system ``` ## Debugging with quadlet diff --git a/tools/qm-storage-settings b/tools/qm-storage-settings index a266b163..e3f42577 100755 --- a/tools/qm-storage-settings +++ b/tools/qm-storage-settings @@ -45,6 +45,7 @@ setup_init() { STORAGE_CONF_PATHS=( "${ROOTFS}/etc/containers/storage.conf" + "${ROOTFS}/usr/lib/containers/storage.conf" "${ROOTFS}/usr/share/containers/storage.conf" ) @@ -82,8 +83,9 @@ additional_images_storages() { # Execute the following if we are inside the specified block if (insideBlock == 1) { - # Check if the line contains the specific path "/usr/share/containers/storage" - if ($0 ~ /"\/usr\/share\/containers\/storage"/) { + # Check if the line contains the specific path "/usr/lib/containers/storage" or + # /usr/share/containers/storage + if ($0 ~ /"\/usr\/(lib|share)\/containers\/storage"/) { if ($0 !~ /,$/) { # If the line does not end with a comma print $0 "," # Print the line with a comma appended } else {