diff --git a/scripts/make_image.sh b/scripts/make_image.sh index a6c7c57f1fda6f45ff8224a81eaeecfd82cf78cf..fd6df741082db500a636ecc316f4801a595086ba 100755 --- a/scripts/make_image.sh +++ b/scripts/make_image.sh @@ -30,6 +30,10 @@ function make_image() exec {FD}> /var/lock/orangepi-losetup flock -x $FD + devfs=`mount | grep "/dev " | cut -d' ' -f1` + if [ "$devfs" == "tmpfs" ]; then + mount -t devtmpfs nodev /dev + fi cat /proc/devices if [ ! -e /dev/loop500 ]; then lodev_major=$(grep loop /proc/devices | cut -c3)