| 1 |
usr_mount_destination_flags="ro" |
| 2 |
toolbox_profile_bind="--volume /etc/profile.d/toolbox.sh:/etc/profile.d/toolbox.sh:ro" |
| 3 |
toolbox_profile_bind="--volume /usr/share/profile.d/toolbox.sh:/etc/profile.d/toolbox.sh:ro" |
| 4 |
if echo "$usr_mount_source_flags" | grep --invert-match "ro" >/dev/null 2>&3; then |
| 5 |
--volume "$TOOLBOX_PATH":/usr/bin/toolbox:ro \ |
| 6 |
if ! mount_bind /run/host/etc/machine-id /etc/machine-id ro; then |
| 7 |
if ! mount_bind /run/host/var/lib/flatpak /var/lib/flatpak ro; then |
| 8 |
if ! mount_bind /run/host/var/log/journal /var/log/journal ro; then |
| 9 |
if strings.Contains(command.Name(), "complet") { |
| 10 |
toolboxPathMountArg := toolboxPath + ":/usr/bin/toolbox:ro" |
| 11 |
toolboxShMountArg := mount.source + ":" + mount.containerPath + ":ro" |
| 12 |
{"/etc/machine-id", "/run/host/etc/machine-id", "ro"}, |
| 13 |
{"/var/lib/flatpak", "/run/host/var/lib/flatpak", "ro"}, |
| 14 |
{"/var/lib/systemd/coredump", "/run/host/var/lib/systemd/coredump", "ro"}, |
| 15 |
{"/var/log/journal", "/run/host/var/log/journal", "ro"}, |