Hi all, this is not a busybox specific issue, but maybe busybox can help me to solve it. I have a linux system, which has a ext2 partition mounted as /. Now I want to use busybox as "ext2-format-and-tar.bz2-extractor" to "install" a new version of the rfs. I thought about using a statically linked busybox rfs, which I can chroot/pivot_root into.
This is what I want to do: 1) chroot/pivot_root into busybox rfs located in tmpfs /tmp/chroot 2) mount all needed kernel file system (/proc /sys ...) 3) now it should umount the old /, but I am not sure how? 4) mkfs.ext2 /dev/sda2 5) mount /dev/sda2 into busybox root - lets say mount to /mnt/ 6) run something like tar pjxf rfs.tar.bz2 -C /mnt/ 7) umount everything and do a reboot Is something like this possible? Has anybody experiences with this topic. thanks -- Christian Gmeiner, MSc _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
