Skip to content

Commit

Permalink
cmd/initContainer: Do not try to remount /etc/machine-id as ro
Browse files Browse the repository at this point in the history
Followup to 1cc9e07

Sometimes the parent location might be mounted with
nosuid,nodev,noexec and trying to remount it as ro would remove
those and thus fails.

See commit mentioned above for more details.

containers#911
  • Loading branch information
alatiera committed Aug 19, 2023
1 parent 8ef3dd9 commit 1fc4c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/initContainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var (
source string
flags string
}{
{"/etc/machine-id", "/run/host/etc/machine-id", "ro"},
{"/etc/machine-id", "/run/host/etc/machine-id", ""},
{"/run/libvirt", "/run/host/run/libvirt", ""},
{"/run/systemd/journal", "/run/host/run/systemd/journal", ""},
{"/run/systemd/resolve", "/run/host/run/systemd/resolve", ""},
Expand Down

0 comments on commit 1fc4c7b

Please sign in to comment.