The code block is disabled until a fix is made due to a global problem with the overlay

This commit is contained in:
Signor Pellegrino
2023-03-18 17:32:08 +03:00
committed by GitHub
parent f462646c1b
commit b4f96e47d3

View File

@@ -13,15 +13,16 @@ grep -q overlay /proc/filesystems || exit
if ! grep -q 'root=.*nfs\|mmcblk\|ram' /proc/cmdline; then
if grep -q ubifs /proc/cmdline; then
mount -t ubifs ubi0:rootfs_data /overlay
elif grep -q loop /proc/devices; then
mount -t devtmpfs devtmpfs /dev
mount -t tmpfs tmpfs /overlay
sleep 1
mkdir -p /overlay/sdcard
mount -r /dev/mmcblk0p1 /overlay/sdcard
tar -xf /overlay/sdcard/settings.tar -C /overlay && echo OpenIPC: Extract settings from sdcard
umount /overlay/sdcard
rmdir /overlay/sdcard
# The code block is disabled until a fix is made due to a global problem with the overlay
# elif grep -q loop /proc/devices; then
# mount -t devtmpfs devtmpfs /dev
# mount -t tmpfs tmpfs /overlay
# sleep 1
# mkdir -p /overlay/sdcard
# mount -r /dev/mmcblk0p1 /overlay/sdcard
# tar -xf /overlay/sdcard/settings.tar -C /overlay && echo OpenIPC: Extract settings from sdcard
# umount /overlay/sdcard
# rmdir /overlay/sdcard
else
mtdblkdev=$(awk -F ':' '/rootfs_data/ {print $1}' /proc/mtd | sed 's/mtd/mtdblock/')
mtdchrdev=$(grep 'rootfs_data' /proc/mtd | cut -d: -f1)