diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-01-26 17:20:57 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-01-26 17:20:57 +0100 |
commit | b2557439592960345efddb428e964b5a457827fb (patch) | |
tree | e17e6f6bce3e446c8776ab0b8d5eb6bc369ce422 | |
parent | 6420ae4530a867275df8e29a28ab0a334d0071d3 (diff) | |
download | mbuto-b2557439592960345efddb428e964b5a457827fb.tar mbuto-b2557439592960345efddb428e964b5a457827fb.tar.gz mbuto-b2557439592960345efddb428e964b5a457827fb.tar.bz2 mbuto-b2557439592960345efddb428e964b5a457827fb.tar.lz mbuto-b2557439592960345efddb428e964b5a457827fb.tar.xz mbuto-b2557439592960345efddb428e964b5a457827fb.tar.zst mbuto-b2557439592960345efddb428e964b5a457827fb.zip |
mbuto: Use named fs_spec fields (device names) for virtual filesystems too
...instead of '-'. This shouldn't be needed in theory, but using '-' as
a name confuses mountpoint parsing in recent builds of kata-agent.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rwxr-xr-x | mbuto | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -58,25 +58,25 @@ FIXUP='#!/bin/sh export PATH=${PATH}:/bin:/usr/bin:/sbin:/usr/sbin -mount -t proc - /proc -mount -t sysfs - /sys +mount -t proc proc /proc +mount -t sysfs sys /sys for m in '${KMODS}'; do modprobe ${m} done -mount -t devtmpfs - /dev +mount -t devtmpfs dev /dev mkdir /dev/pts -mount -t devpts - /dev/pts +mount -t devpts pts /dev/pts mkdir -p /sys/fs/cgroup -mount -t tmpfs - /sys/fs/cgroup +mount -t tmpfs cgroup /sys/fs/cgroup mkdir /sys/fs/cgroup/unified -mount -o rw,nsdelegate -t cgroup2 - /sys/fs/cgroup/unified +mount -o rw,nsdelegate -t cgroup2 cgroup /sys/fs/cgroup/unified for t in cpu,cpuacct blkio memory perf_event pids cpuset freezer devices; do mkdir /sys/fs/cgroup/${t} - mount -o rw,${t} -t cgroup - /sys/fs/cgroup/${t} + mount -o rw,${t} -t cgroup cgroup /sys/fs/cgroup/${t} done # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968199 |