mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
Little documentation fixes, and the script will now generate a list of all installed packages in the working directory
This commit is contained in:
parent
d2560ecc81
commit
bcc1031e97
1 changed files with 4 additions and 1 deletions
5
scripts/distro-builder
Executable file → Normal file
5
scripts/distro-builder
Executable file → Normal 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
|
||||
|
|
Loading…
Reference in a new issue