View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#288
I guess the next thing to do is make the debian script check to see if $CHROOT and other variables are already there (perhaps set before running the script), and if they are, use those values. It would need to be crafted such that you could define one or more variables and only undefined variables are retrieved from the ~/.chroot file. However it is done, it would have to also be integrated into the closechroot script... Also, the "chroot-complete" marker file would have to be chroot-specific, so the debian script will properly mount multiple chroots.

I would like to be able to do something like:
Code:
sudo 'CHROOT=/debian IMGFILE=/dev/mmcblk0p4 debbie iceweasel'
This would run Debian Iceweasel.

And then, later, I could do...

Code:
'CHROOT=/os2007 IMGFILE=/dev/mmcblk0p3 debbie xmame froggers.zip'
This would run my OS2007 version of xmame to let me play frogger...
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2008-08-10 at 19:35.