From f47e0bb6725434778384cf79ba3b08610f8c3796 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 15 Sep 2021 12:58:23 +0200 Subject: [PATCH] appliance: reorder mounting of special filesystems in init Make sure proc and dev are available early. No change in behavior intended. Signed-off-by: Olaf Hering --- appliance/init | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/appliance/init b/appliance/init index cdc39c3b9..7076821d2 100755 --- a/appliance/init +++ b/appliance/init @@ -27,12 +27,12 @@ for d in /lib64 /lib; do fi done -mkdir -p /sysroot - -# Mount /proc. -if [ ! -d /proc ]; then rm -f /proc; fi -mkdir -p /proc +mkdir -p /proc /sys mount -t proc /proc /proc +mount -t sysfs /sys /sys +# devtmpfs is required since udev 176 +mount -t devtmpfs /dev /dev +ln -s /proc/self/fd /dev/fd # Parse the kernel command line early (must be after /proc is mounted). cmdline=$(