Just a simple request hopefully.
It would be relatively easy to arrange for a successful run of your build script inside any recent Puppy also if it were not for the apt-get required in this code section:
Code: Select all
echo -e "\e[0;36mUpdate the package lists...\033[0m"
apt-get update
echo -e "\e[0;36mInstall some required packages, e.g. debootstrap, squashfs-tools, etc...\033[0m"
apt-get install debootstrap wget xorriso isolinux xz-utils squashfs-tools -y --force-yes
[ $? -eq 0 ] && echo -e "\e[0;32mOK\033[0m" || echo -e "\e[0;31mFAILED\033[0m"
I wonder if you could you kindly therefore arrange that this section of code is only run if a check for apt-get reveals its presence on the underlying system? So will be run in debian-based system and not in Puppy as required.
For example, this would do I think:
Code: Select all
if [ $(command -v apt-get 2>/dev/null) ];then
echo -e "\e[0;36mUpdate the package lists...\033[0m"
apt-get update
echo -e "\e[0;36mInstall some required packages, e.g. debootstrap, squashfs-tools, etc...\033[0m"
apt-get install debootstrap wget xorriso isolinux xz-utils squashfs-tools -y --force-yes
[ $? -eq 0 ] && echo -e "\e[0;32mOK\033[0m" || echo -e "\e[0;31mFAILED\033[0m"
fi
Better that than having to unnecessarily fork/modify the script for use in Puppy since hard to keep up with changes/developments if two versions. And would be lovely if a Puppy user could run your script without having to modify the script itself really.
cheers, wiak
EDIT: Note that the only problem I've had running debootstrap itself in Puppy is that some of them use LD_LIBRARY_PATH with /lib: as one of the entries and debootstrap program doesn't like that. The solution for such cases is to export LD_LIBRARY_PATH but with /lib: entry removed prior to running debootstrap or any script using it as I describe (badly) here:
http://www.murga-linux.com/puppy/viewto ... 323#963323
In all such Pups (doesn't effect Slacko64) the /lib: always seems to be at the very front of the LD_LIBRARY_PATH so would be nice if that could always be stripped out if present (using sed or bash var replacement tricks or whatever).