Re: [OpenWrt-Devel] Bounty: /overlay on x86
On 12/07/12 04:27, anton wrote: Dear Sirs: Sorry, I should attach Screenshot in the beginning. I am really a rookie here, so I may be wrong in some way. I think it's overlayfs implement on x86, right ? Overlayfs on x86 works, I have a functional system based on openwrt and squashfs, the issue is if overlayfs works with an initramfs based rootfs, what your screenshot is missing is what the root mount is -- Tim Fletcher t...@night-shade.org.uk ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Bounty: /overlay on x86
On 03/07/12 19:37, Kristian Kielhofner wrote: Is /overlay supported on x86? Am I missing something here? Yes they are and I have a confirmed working setup on x86 with a squashfs rootfs and an ext4 overlay, however as someone else has pointed out initramfs is different. The way that overlays work from reading the bash scripts requires pivot_root changing the mount point of the rootfs to /rom and then mounting up the overlay, however initramfs doesn't have the concept of pivot_root and so you can't pivot it to make the overlay work. Also I'm not sure how the overlay mechanics interact with initramfs as initramfs is part of the blockcaching layer but from reading the kernel documentation file ramfs-rootfs-initramfs.txt I think that what you can do it is copy the contents of your initramfs into the partition you want to use to store state and then switch with switch_root to that partition. -- Tim Fletcher t...@night-shade.org.uk ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Bounty: /overlay on x86
Dear Sirs: Pardon, I know I am a rookie here. I just wanna say that I found There is overlayfs implement in Ubuntu 12.04 install Disk. And of course it's for x86. Best Rgds, anton -- refered: http://askubuntu.com/questions/109413/how-do-i-use-overlayfs 2012/7/11 Tim Fletcher t...@night-shade.org.uk On 03/07/12 19:37, Kristian Kielhofner wrote: Is /overlay supported on x86? Am I missing something here? Yes they are and I have a confirmed working setup on x86 with a squashfs rootfs and an ext4 overlay, however as someone else has pointed out initramfs is different. The way that overlays work from reading the bash scripts requires pivot_root changing the mount point of the rootfs to /rom and then mounting up the overlay, however initramfs doesn't have the concept of pivot_root and so you can't pivot it to make the overlay work. Also I'm not sure how the overlay mechanics interact with initramfs as initramfs is part of the blockcaching layer but from reading the kernel documentation file ramfs-rootfs-initramfs.txt I think that what you can do it is copy the contents of your initramfs into the partition you want to use to store state and then switch with switch_root to that partition. -- Tim Fletcher t...@night-shade.org.uk __**_ openwrt-devel mailing list openwrt-devel@lists.openwrt.**org openwrt-devel@lists.openwrt.org https://lists.openwrt.org/**mailman/listinfo/openwrt-develhttps://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Bounty: /overlay on x86
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
Re: [OpenWrt-Devel] Bounty: /overlay on x86
On 28/06/12 16:23, Kristian Kielhofner wrote: Hello everyone, I've been struggling to get /overlay to work on x86. I'm using an initramfs filesystem and I want my changes to persist across reboot. For some reason I've been completely unable to get /overlay to work. I've tried asking here before, I've tried asking on the forum, and I've tried it myself - all to no avail. This post to the forum (from October) is a good summary of what I'm trying to do: https://forum.openwrt.org/viewtopic.php?pid=169868 To verify I've tried a native ext2 filesystem and bind. I can't get either to work. I'm offering $500 to someone who can get this configuration to work (bind fs) using openwrt trunk with an initramfs filesystem on x86 as cleanly (/overlay UCI config) as possible. Any changes made to OpenWRT sources (scripts, functions, etc) must be contributed back and accepted into openwrt trunk. Payment to be delivered via PayPal or some other means we can agree upon. Any takers? I've got this to work on openwrt on qemu with the following config in /etc/config/fstab. The full steps are: Boot OpenWRT, install block-mount, edit /etc/config/fstab and reboot. This will only work on modern trunk versions. If you have to do it with just initramfs+kernel you will need to build a custom version. config mount option target /overlay option device /dev/sdb option fstype ext4 option options rw,sync,noatime option enabled 1 option enabled_fsck 0 -- Tim Fletcher t...@night-shade.org.uk ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Bounty: /overlay on x86
Is /overlay supported on x86? Am I missing something here? On Thu, Jun 28, 2012 at 11:23 AM, Kristian Kielhofner k...@kriskinc.com wrote: Hello everyone, I've been struggling to get /overlay to work on x86. I'm using an initramfs filesystem and I want my changes to persist across reboot. For some reason I've been completely unable to get /overlay to work. I've tried asking here before, I've tried asking on the forum, and I've tried it myself - all to no avail. This post to the forum (from October) is a good summary of what I'm trying to do: https://forum.openwrt.org/viewtopic.php?pid=169868 To verify I've tried a native ext2 filesystem and bind. I can't get either to work. I'm offering $500 to someone who can get this configuration to work (bind fs) using openwrt trunk with an initramfs filesystem on x86 as cleanly (/overlay UCI config) as possible. Any changes made to OpenWRT sources (scripts, functions, etc) must be contributed back and accepted into openwrt trunk. Payment to be delivered via PayPal or some other means we can agree upon. Any takers? -- Kristian Kielhofner -- Kristian Kielhofner ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Bounty: /overlay on x86
Hello everyone, I've been struggling to get /overlay to work on x86. I'm using an initramfs filesystem and I want my changes to persist across reboot. For some reason I've been completely unable to get /overlay to work. I've tried asking here before, I've tried asking on the forum, and I've tried it myself - all to no avail. This post to the forum (from October) is a good summary of what I'm trying to do: https://forum.openwrt.org/viewtopic.php?pid=169868 To verify I've tried a native ext2 filesystem and bind. I can't get either to work. I'm offering $500 to someone who can get this configuration to work (bind fs) using openwrt trunk with an initramfs filesystem on x86 as cleanly (/overlay UCI config) as possible. Any changes made to OpenWRT sources (scripts, functions, etc) must be contributed back and accepted into openwrt trunk. Payment to be delivered via PayPal or some other means we can agree upon. Any takers? -- Kristian Kielhofner ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel