From mboxrd@z Thu Jan 1 00:00:00 1970 From: staal1978@gmail.com (Jens Staal) Date: Sun, 27 Nov 2011 14:43:58 +0100 Subject: [9fans] 9vx instability In-Reply-To: References: <4ECA333A.2010600@gmail.com> Message-ID: <4ED23E9E.5020508@gmail.com> Topicbox-Message-UUID: 480e8940-ead7-11e9-9d60-3106f5b1d025 On 11/27/11 14:39, yy wrote: > 2011/11/21 Jens Staal: >> What I would like to know is if you can boot a plan9 system from iso via 9vx >> as "persistent" partition whereas changes are saved to another directory (so >> basically setting up a union mount between the iso and a directory) - >> alternatively specifying an alternative path for $home using 9vx booting >> from an iso. >> > I've written a small script to help with this. From the comments: > > # Usage: 9vxi [9vx options] > # If set, $localroot is used as root, > # and $home as the home directory. > # If localroot is not set. search for it: > # first in the cwd, then at $HOME. > # initrc is ignored. Other options are > # just passed to 9vx. > # > # If found, $home/lib/profile is used, > # else a default profile is supplied. > > If you have a plan9.iso file in your $HOME directory, running 9vxi > without arguments should be enough to boot from that iso file with an > usable environment: $HOME is used as your home directory, ramdisk > provides a writable /tmp and the plumber uses glenda's rules. If you > need something fancier (for example, binding a writable source tree > from a sysfromiso repository), create a lib/profile file. > > Awesome! Thanks! I will look into it.