From b2557439592960345efddb428e964b5a457827fb Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 26 Jan 2022 17:20:57 +0100 Subject: 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 --- mbuto | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mbuto b/mbuto index 151d68d..5f11319 100755 --- a/mbuto +++ b/mbuto @@ -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 -- cgit v1.2.3