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:
@@ -18,10 +18,6 @@ for x in $(cat /proc/cmdline); do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "x${ROOT}" = "x" ]; then
|
|
||||||
exec /sbin/init
|
|
||||||
fi
|
|
||||||
|
|
||||||
mount -t sysfs sysfs /sys
|
mount -t sysfs sysfs /sys
|
||||||
|
|
||||||
mount -t devtmpfs -o nosuid,mode=0755 devtmpfs /dev
|
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 /tmp
|
||||||
mount -t tmpfs tmpfs /run
|
mount -t tmpfs tmpfs /run
|
||||||
|
|
||||||
|
if [ "x${ROOT}" = "x" ]; then
|
||||||
|
exec /sbin/init
|
||||||
|
fi
|
||||||
|
|
||||||
export ROOT
|
export ROOT
|
||||||
|
|
||||||
mkdir /rootfs
|
mkdir /rootfs
|
||||||
|
|||||||
Reference in New Issue
Block a user