I've created a "whole_filesystem" style extroot with the following commands:
# mkfs.ext3 /dev/sda1
# mount /dev/sda1 /mnt
# mkdir -p /tmp/cproot
# mount --bind / /tmp/cproot
# tar -C /tmp/cproot -cvf - . | tar -C /mnt -xf -
# umount /tmp/cproot
# umount /mnt

I've installed kmod-usb-storage kmod-fs-ext3 block-mount block-extroot
block-hotplug e2fsprogs and created an /etc/config/fstab:

config global automount
        option from_fstab 1
        option anon_mount 1
        
config global autoswap
        option from_fstab 1
        option anon_swap 0
        
config mount
        option target   /mnt
        option device   /dev/sda1
        option fstype   ext3
        option options  rw,sync
        option enabled  1
        option enabled_fsck 1
        option is_rootfs 1

and yet the extroot is not being mounted at /, but rather /mnt (this was
the syntax prior to my upgrading to RC5).  If I change the target to
"/", the mount table says it is mounted, but when I use df I see the
same usage values as the
/dev/root                 2.1M      2.1M         0 100% /rom
mini_fo:/overlay          2.1M      2.1M         0 100% /

pair and files in / are from prior to the mount, not what is on /dev/sda1

Is this known to be broken or working in RC5?

Cheers,
b.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to