linux-um archives
 help / color / mirror / Atom feed
From: Werner Almesberger <wa@almesberger.net>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] linuxenv.bash (for <= uml-2.6.7-1)
Date: Wed, 25 Aug 2004 22:40:00 -0300	[thread overview]
Message-ID: <20040825224000.A13578@almesberger.net> (raw)

Here's a little script that I wrote for running experiments in a
UML kernel. The idea is that I want to get into the UML system
quickly, share my original environment, and run things from a
script (which may or may not eventually fire up a shell).

http://www.almesberger.net/misc/uml/linuxenv.bash

The script propagates the following things into the UML system:

 - the host's file system, through hostfs
 - all variables (including local ones) defined when invoking
   linuxenv.bash
 - the current directory in the host file system

An example script that just starts a shell would look like this:

#!/bin/sh
. linuxenv.bash "$@"
export PS1='\w\$ '
exec /bin/sh

http://www.almesberger.net/misc/uml/linuxsh

Note that linuxenv.bash may not work with kernels before 2.6.4,
and - due to the hostfs changes - doesn't work yet with
uml-2.6.7-2, or above.

- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         wa@almesberger.net /
/_http://www.almesberger.net/____________________________________________/


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

                 reply	other threads:[~2004-08-26  1:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040825224000.A13578@almesberger.net \
    --to=wa@almesberger.net \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox