mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
Added distro-builder script 0.0.1
This commit is contained in:
parent
39cb2f7f53
commit
d2560ecc81
1 changed files with 26 additions and 0 deletions
26
scripts/distro-builder
Executable file
26
scripts/distro-builder
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Plugbox Linux Distribution Image Builder
|
||||
# Version 0.0.1
|
||||
#
|
||||
# Licensed under the GPLv2.
|
||||
#
|
||||
# Usage: ./distro-builder working/directory/
|
||||
#
|
||||
# ==== Variables to set ====
|
||||
INSTALLEDPKGS="base libidn libsigsegv openssh openssl"
|
||||
RELEASEVER=1.1
|
||||
# ==== The Process ====
|
||||
mkdir -p $1
|
||||
echo "Installing packages..."
|
||||
mkdir -p $1/var/lib/pacman
|
||||
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
|
||||
echo "Creating a rootfs.tar.gz..."
|
||||
cd $1
|
||||
echo $RELEASEVER > /etc/plugbox-version
|
||||
tar czf ../Plugbox-Linux-$RELEASEVER.tar.gz ./*
|
||||
cd ../
|
||||
echo "All done!"
|
Loading…
Reference in a new issue