Merge branch 'CR_2035_fix_devpts_lost_in_ramdisk_minda' into 'jh7110-devel'

CR_2035 buildroot: init: fix dev/shm and devpts fs lost in ramdisk rootfs issue.

See merge request sdk/buildroot!64
This commit is contained in:
andy.hu
2022-09-07 02:53:25 +00:00
+4 -4
View File
@@ -18,10 +18,6 @@ for x in $(cat /proc/cmdline); do
esac
done
if [ "x${ROOT}" = "x" ]; then
exec /sbin/init
fi
mount -t sysfs sysfs /sys
mount -t devtmpfs -o nosuid,mode=0755 devtmpfs /dev
@@ -33,6 +29,10 @@ mount -t tmpfs tmpfs /dev/shm
mount -t tmpfs tmpfs /tmp
mount -t tmpfs tmpfs /run
if [ "x${ROOT}" = "x" ]; then
exec /sbin/init
fi
export ROOT
mkdir /rootfs