Hi,

while doing some testing of new firmware image yesterday, I've noticed, that
no jffs2 overlay has been used, but just ramfs overlay. I've tracked it down
to the lib/preinit/40_mount_jffs2 script:

        find_mount_jffs2() {
                mkdir -p /tmp/overlay
                mount "$(find_mtd_part rootfs_data)" /tmp/overlay -t jffs2
                mtd -qq unlock rootfs_data
        }

Since I haven't had mtd-utils package included in my firmware image, the mtd
unlock call failed and this function has returned false and overlay in jffs2
wasn't used:

        do_mount_jffs2() {
                check_skip || {
                        find_mount_jffs2 && pi_jffs2_mount_success=true
                }
        }

I'm maybe wrong, but shouldn't be mtd-utils package made mandatory, since it's
used in preinit scripts? Thanks.

-- ynezz
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to