unlock linux partition before running jffs2root --clean. fixes #97
authorFelix Fietkau <nbd@openwrt.org>
Sun, 11 Dec 2005 21:34:14 +0000 (21:34 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 11 Dec 2005 21:34:14 +0000 (21:34 +0000)
SVN-Revision: 2614

openwrt/package/base-files/default/sbin/mount_root

index 7bcf80c6f1234e4e50308cc3c4a47742c121f604..9229c9928ab431d8599943136ef7bc244123198b 100755 (executable)
@@ -20,6 +20,7 @@ if [ "$1" != "failsafe" ]; then
                if [ -z "$(nvram get no_root_swap)" ]; then
                        is_clean || {
                                mtd erase OpenWrt
+                               mtd unlock linux
                                jffs2root --clean
                        }
                        mtd unlock OpenWrt