[Tutor] Run a few Python commands from a temporary filesystem when the rootfs is halted

2011-04-22 Thread Frederick Grose
With Bash, when one needs to halt the current root filesystem, to pivot to a new filesystem, one can copy some of the command files and their dependencies to a temporary file system and execute from that code base. Is there a way to accomplish the same within a Python script? Or must I chain

Re: [Tutor] Run a few Python commands from a temporary filesystem when the rootfs is halted

2011-04-22 Thread Steve Willoughby
On 22-Apr-11 16:54, Frederick Grose wrote: With Bash, when one needs to halt the current root filesystem, to pivot to a new filesystem, one can copy some of the command files and their dependencies to a temporary file system and execute from that code base. I'm not sure those words mean what

Re: [Tutor] Run a few Python commands from a temporary filesystem when the rootfs is halted

2011-04-22 Thread Frederick Grose
On Fri, Apr 22, 2011 at 7:59 PM, Steve Willoughby st...@alchemy.com wrote: On 22-Apr-11 16:54, Frederick Grose wrote: With Bash, when one needs to halt the current root filesystem, to pivot to a new filesystem, one can copy some of the command files and their dependencies to a temporary file

Re: [Tutor] Run a few Python commands from a temporary filesystem when the rootfs is halted

2011-04-22 Thread Steven D'Aprano
Frederick Grose wrote: With Bash, when one needs to halt the current root filesystem, to pivot to a new filesystem, one can copy some of the command files and their dependencies to a temporary file system and execute from that code base. Is there a way to accomplish the same within a Python

Re: [Tutor] Run a few Python commands from a temporary filesystem when the rootfs is halted

2011-04-22 Thread Steve Willoughby
On 22-Apr-11 17:14, Frederick Grose wrote: The particulars are that I've rebuilt a Fedora LiveOS filesystem image from a currently running instance (incorporating the filesystem changes in the device-mapper overlay into a new base filesystem image file). Right, so essentially you're talking

Re: [Tutor] Run a few Python commands from a temporary filesystem when the rootfs is halted

2011-04-22 Thread Frederick Grose
On Fri, Apr 22, 2011 at 8:55 PM, Steve Willoughby st...@alchemy.com wrote: On 22-Apr-11 17:14, Frederick Grose wrote: The particulars are that I've rebuilt a Fedora LiveOS filesystem image from a currently running instance (incorporating the filesystem changes in the device-mapper overlay

Re: [Tutor] Run a few Python commands from a temporary filesystem when the rootfs is halted

2011-04-22 Thread Steven D'Aprano
Frederick Grose wrote: I misread this sentence in the list description, While the list is called tutor, anyone, whether novice or expert, can answer questions. .. to include 'ask' as well as answer questions that may be instructive. Well, you can *ask*, but the number of people on this list