Thank you Mark; much easier than I thought it'd be. 

--------------------------------------------------------
This e-mail, including any attachments, may be confidential, privileged or 
otherwise legally protected. It is intended only for the addressee. If you 
received this e-mail in error or from someone who was not authorized to send it 
to you, do not disseminate, copy or otherwise use this e-mail or its 
attachments.  Please notify the sender immediately by reply e-mail and delete 
the e-mail from your system.


-----Original Message-----

From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
Post, Mark K
Sent: Monday, October 23, 2006 12:02 PM
To: [email protected]
Subject: Re: How to script chroot steps?

Yes, it is possible:
chroot /mnt /boot/runzipl

This says to chroot to /mnt, and execute a script named runzipl that is
located at /boot (which really needs to be at /mnt/boot/runzipl).  That
script, when it exits, will return you to your non-chrooted environment.

Any scripting language will work, as long as your chrooted environment
has the interpreter for that language contained within itself.  In the
case above, I'm chrooting to a brand new Slack/390 installation, so
bash, etc. is already where it needs to be.


Mark Post

-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
Romanowski, John (OFT)
Sent: Monday, October 23, 2006 11:37 AM
To: [email protected]
Subject: How to script chroot steps?

Is it possible to have a shell script that does chroot, does some
commands while chroot-ed and exits out of the chroot environment back to
the shell script? 
Do I need to use perl? I don't know any perl.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to