.codespellexcludefile: Silence false positives
Otherwise codespell would complain:
: {"/tmp", "/run/host/tmp", "rslave"},
> {"/var/lib/flatpak", "/run/host/var/lib/flatpak", "ro"},
: {"/var/lib/libvirt", "/run/host/var/lib/libvirt", ""},
./src/cmd/initContainer.go:61: ro ==> to, row, rob, rod, roe, rot
CentOS Stream 9 has codespell-2.2.1, while so far the 'unit tests' were
being run on Fedora 36, which only has codespell-2.1.0.
This is a step towards testing on CentOS Stream 9.
https://github.com/containers/toolbox/pull/1200
2022-12-14 17:47:03 +00:00
|
|
|
usr_mount_destination_flags="ro"
|
|
|
|
toolbox_profile_bind="--volume /etc/profile.d/toolbox.sh:/etc/profile.d/toolbox.sh:ro"
|
|
|
|
toolbox_profile_bind="--volume /usr/share/profile.d/toolbox.sh:/etc/profile.d/toolbox.sh:ro"
|
|
|
|
if echo "$usr_mount_source_flags" | grep --invert-match "ro" >/dev/null 2>&3; then
|
|
|
|
--volume "$TOOLBOX_PATH":/usr/bin/toolbox:ro \
|
|
|
|
if ! mount_bind /run/host/etc/machine-id /etc/machine-id ro; then
|
|
|
|
if ! mount_bind /run/host/var/lib/flatpak /var/lib/flatpak ro; then
|
|
|
|
if ! mount_bind /run/host/var/log/journal /var/log/journal ro; then
|
2022-10-24 11:27:24 +00:00
|
|
|
if strings.Contains(command.Name(), "complet") {
|
.codespellexcludefile: Silence false positives
Otherwise codespell would complain:
: {"/tmp", "/run/host/tmp", "rslave"},
> {"/var/lib/flatpak", "/run/host/var/lib/flatpak", "ro"},
: {"/var/lib/libvirt", "/run/host/var/lib/libvirt", ""},
./src/cmd/initContainer.go:61: ro ==> to, row, rob, rod, roe, rot
CentOS Stream 9 has codespell-2.2.1, while so far the 'unit tests' were
being run on Fedora 36, which only has codespell-2.1.0.
This is a step towards testing on CentOS Stream 9.
https://github.com/containers/toolbox/pull/1200
2022-12-14 17:47:03 +00:00
|
|
|
toolboxPathMountArg := toolboxPath + ":/usr/bin/toolbox:ro"
|
|
|
|
toolboxShMountArg := mount.source + ":" + mount.containerPath + ":ro"
|
|
|
|
{"/etc/machine-id", "/run/host/etc/machine-id", "ro"},
|
|
|
|
{"/var/lib/flatpak", "/run/host/var/lib/flatpak", "ro"},
|
|
|
|
{"/var/lib/systemd/coredump", "/run/host/var/lib/systemd/coredump", "ro"},
|
|
|
|
{"/var/log/journal", "/run/host/var/log/journal", "ro"},
|