Little documentation fixes, and the script will now generate a list of all installed packages in the working directory

This commit is contained in:
Mike Staszel 2010-06-13 09:00:33 -07:00
parent d2560ecc81
commit bcc1031e97

5
scripts/distro-builder Executable file → Normal file
View file

@ -7,8 +7,9 @@
#
# Usage: ./distro-builder working/directory/
#
# NOTE: This script is interactive. Agree to installing packages and answer "y" to cleaning the Pacman database
# ==== Variables to set ====
INSTALLEDPKGS="base libidn libsigsegv openssh openssl"
INSTALLEDPKGS="base kernel26-withlinux openssh openssl"
RELEASEVER=1.1
# ==== The Process ====
mkdir -p $1
@ -18,6 +19,8 @@ pacman -Syy -r $1 $INSTALLEDPKGS
echo "Setting the password to 'root' and cleaning up"
echo -e "root\nroot\n" | chroot $1/ /usr/bin/passwd root
chroot $1/ /usr/bin/pacman -Scc
chroot $1/ /usr/bin/pacman -Q > /installed-pkgs.txt
mv $1/installed-pkgs.txt ./
echo "Creating a rootfs.tar.gz..."
cd $1
echo $RELEASEVER > /etc/plugbox-version