[Feature Suggestion] UsrMove continued

Jochen Schmitt Jochen at herr-schmitt.de
Tue Oct 9 06:41:40 UTC 2012


On Tue, Oct 09, 2012 at 02:18:10AM +0300, Serge wrote:
 
> Obviously this won't go in F18. But it mostly works, you can test it:
> 0. Get Fedora17 LiveCD
> 1. Boot it with additional kernel params:
>   selinux=0 systemd.log_level=debug systemd.log_target=console init=/bin/bash
> 2. When you get the shell:
> # mkdir /os /os/proc /os/sys /os/dev
> # mount --move /proc /os/proc; rm -rf /proc; ln -s os/proc /
> # mount --move /sys /os/sys; rm -rf /sys; ln -s os/sys /
> # mount --move /dev /os/dev; rm -rf /dev; ln -s os/dev /
> # mv /boot /os/; ln -s os/boot /
> # rm -f /var/run; mkdir /var/run
> # mount -n --move /run /var/run; rm -rf /run; ln -s var/run /
> # mv -f /root /etc /usr/; ln -s usr/root usr/etc /
> # mount --bind /var/tmp /tmp
> # exec /sbin/init
> and it should work as usual.

your test case didn't hit your suggestion of remove the /etc
directory. I think you have put any more love to workout 
your suggestion on this topic.

Best Regards:

Jochen Schmitt


More information about the devel mailing list