mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 04:40:04 +01:00
On Fedora 39, mount now requires the dummy device argument. It was wrong to omit it, altough it worked previously. Fix the mount command line.
13 lines
583 B
Bash
13 lines
583 B
Bash
#!/bin/bash -e
|
|
|
|
if [ ! -d /tmp/sys2 ]; then
|
|
# `ip -netns t exec ...` will try to mount sysfs. But kernel rejects that in
|
|
# the container, unless a writable sysfs is already mounted. Due to --priviledged,
|
|
# we have /sys mounted rw, however, ip will first unmount /sys before trying to
|
|
# remount it. We thus need it mounted as rw one additional time.
|
|
#
|
|
# Let's do this setup step once, and never clean it up.
|
|
# https://github.com/containers/podman/issues/11887#issuecomment-938706628
|
|
mkdir /tmp/sys2
|
|
mount -t sysfs --make-private sysfs /tmp/sys2
|
|
fi
|