Comment 21 for bug 204133

Revision history for this message
Agostino Russo (ago) wrote :

If anyone without Windows wants to emulate, the steps are the following

1) Create an ntfs partition
2) Have a file containing a hardy root filesystem (ext3)
3) Keep the hardy kernel and initrd in another filesystem
4) Use grub to boot off the above kernel/initrd with the parameters: root=/dev/sdaX loop=/path/to/loop/file
5) The fstab inside of the loop filesystem should have an entry for loopmounting / from /host/path/to/loop/file (/dev/sdaX will be mounted as /host)

where sdaX is the ntfs partition.

The vm dirty hacks are in /etc/init.d/lupin-support
Also of interest is what happens immediately after /etc/init.d/umountroot

I.E. if we are in a state such that /sbin/reboot is safe. To test that you might want to skip /etc/init.d/reboot

Unmounting /host manually is always unsafe (hosted fs data loss may result, not sure if hosted fs journal is at risk), but unmounting it via rc6.d should be safe

Note that at the moment, as mentioned above, /host is NOT remounted r/o in umountroot. You may want to apply the patch in #186114 and test that. Also I have to double check the ordering in which filesystems are remounted ro in umountroot. The correct order is inverse order of /proc/mounts.