When building the iso from the unleashed tree, does every program installs via petget?????
The ./createpuppy script copies everything from the ./packages/mypackage-1.2.3/ directory into ./rootfs-skeleton/. It concatenates all of the pinstall.sh scripts together. Then, from inside the ./rootfs-skeleton/ directory, it executes the composite pinstall.sh script.
If there are commands in pinstall.sh that should only be run when installed by the user with PETget, they should run
pwd and only do those commands if it returns '/' as the current directory. For commands that should only be run when Unleashed is building Puppy, they should check that the current directory is
not '/'.
Also, any commands that involve paths should not have the leading '/'. For example, they would be usr/local/bin/defaulttexteditor, not /usr/local/bin/defaulttexteditor. If absolute paths are used instead of relative, things will be goofed up when Unleashed builds Puppy.
Of course, this also means that use of $HOME needs a workaround: Something like this would work:
$(pwd)$HOME
Otherwise it will use the $HOME directory of the running system rather than the one in the new Puppy.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]