1
0
Fork 0
forked from len0rd/rockbox

nwztools/scripts: mount storage with ext3 instead of ext2

Since ext3 supports ext2, we can support more platforms. Some platforms use ext4
with a very specific set of options, we I haven't encountered those yet so it's
not currently a problem.

Change-Id: Iff87e925a4caa866c6a66b1883ad6baab88c0b8d
This commit is contained in:
Amaury Pouly 2016-11-20 21:35:37 +01:00
parent ce966d3d28
commit a88f57ec36
2 changed files with 5 additions and 3 deletions

View file

@ -60,11 +60,13 @@ lcdmsg -f /usr/local/bin/font_08x12.bmp -l 0,10 "Done."
# 5) Dump the root filesystem
# Mount the root filesystem read-only and dump it
# NOTE some platforms use ext4 with a custom mount program
# (/usr/local/bin/icx_mount.ext4), some probably use an mtd too
lcdmsg -f /usr/local/bin/font_08x12.bmp -l 0,12 "Dumping rootfs..."
ROOTFS_TMP_DIR=/tmp/rootfs
mkdir $ROOTFS_TMP_DIR
. /install_script/constant.txt
if ! mount -t ext2 -o ro $COMMON_ROOTFS_PARTITION $ROOTFS_TMP_DIR
if ! mount -t ext3 -o ro $COMMON_ROOTFS_PARTITION $ROOTFS_TMP_DIR
then
lcdmsg -f /usr/local/bin/font_08x12.bmp -l 0,13 "ERROR: cannot mount rootfs"
else

View file

@ -49,9 +49,9 @@ if [ "$?" != 0 ]; then
exit 0
fi
# NOTE some platforms use ext3 and some ext4 with a custom mount program
# NOTE some platforms use ext4 with a custom mount program
# (/usr/local/bin/icx_mount.ext4), some probably use an mtd too
mount -t ext2 $COMMON_ROOTFS_PARTITION $ROOTFS_TMP_DIR
mount -t ext3 $COMMON_ROOTFS_PARTITION $ROOTFS_TMP_DIR
if [ "$?" != 0 ]; then
lcdmsg -f /usr/local/bin/font_08x12.bmp -l 0,15 "ERROR: mount failed"
sleep 3