Kristian Kielhofner <k...@kriskinc.com> [2012-07-03 14:37:06]: > Is /overlay supported on x86? Am I missing something here?
Hi, I think, that you need to rephrase your question to something like "Is /overlay supported with initramfs?". If you look at mount.sh and closely at the function config_mount_by_section() then you'll see following: if [ "$find_rootfs" = "1" ]; then if [ "$is_rootfs" -eq 1 ]; then target=/overlay elif [ "$target" = "/" ]; then target=/rom fi else if [ "$is_rootfs" -eq 1 ] || [ "$target" = "/overlay" ]; then target=/tmp/overlay-disabled elif [ "$target" = "/" ] || [ "$target" = "/rom" ]; then target="/tmp/whole_root-disabled" fi fi So to get your overlay mounted as /overlay you need to fulfil following conditions: $find_rootfs=1 and $is_rootfs=1. How to accomplish that? $find_rootfs=1 is set to 1 in 50_determine_usb_root script: determine_external_root() { ... [ "$root_device" = "/dev/root" ] && { ... config_foreach config_mount_by_section mount 1 ... } } As you can see, $find_rootfs=1 is only set when root_device=/dev/root which is not your case probably (it's probably because of initramfs?). And $is_rootfs=1 is set in uci config. Hope it helps :) -- ynezz _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel