Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions tools/qm-storage-settings
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ setup_init() {

STORAGE_CONF_PATHS=(
"${ROOTFS}/etc/containers/storage.conf"
"${ROOTFS}/usr/lib/containers/storage.conf"
Comment thread
dougsland marked this conversation as resolved.
"${ROOTFS}/usr/share/containers/storage.conf"
)

Expand Down Expand Up @@ -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 {
Expand Down