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
