diff options
author | Juan RP <xtraeme@gmail.com> | 2013-11-10 08:41:43 +0100 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2013-11-10 08:41:43 +0100 |
commit | d4cd939375436a4951f71dcc9b32fe2b93b99a58 (patch) | |
tree | cafac6e2c7f6d006acbc48e73eba383d5cd5405d /mkrootfs.sh.in | |
parent | 64ffdff00c008795345b9cfc51445d058eea7454 (diff) | |
download | hrmpf-d4cd939375436a4951f71dcc9b32fe2b93b99a58.tar.gz hrmpf-d4cd939375436a4951f71dcc9b32fe2b93b99a58.tar.xz hrmpf-d4cd939375436a4951f71dcc9b32fe2b93b99a58.zip |
mkrootfs: added -p option to add extra pkgs to the rootfs.
Diffstat (limited to 'mkrootfs.sh.in')
-rw-r--r-- | mkrootfs.sh.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mkrootfs.sh.in b/mkrootfs.sh.in index 3cc7e51..9d60fab 100644 --- a/mkrootfs.sh.in +++ b/mkrootfs.sh.in @@ -41,7 +41,7 @@ die() { } usage() { - echo "Usage: $PROGNAME [-a raspberrypi] [-V]" + echo "Usage: $PROGNAME [-a raspberrypi] [-p 'pkg1 pkg2'] [-V]" } run_cmd() { @@ -72,9 +72,10 @@ register_binfmt() { # # main() # -while getopts "a:hV" opt; do +while getopts "a:hp:V" opt; do case $opt in a) TARGET_ARCH="$OPTARG";; + p) EXTRA_PKGS="$OPTARG";; h) usage; exit 0;; V) echo "$PROGNAME @@MKLIVE_VERSION@@"; exit 0;; esac @@ -113,7 +114,7 @@ chmod 755 $rootfs # # Install base-system to the rootfs directory. # -run_cmd "xbps-install -S -r $rootfs -y $PKGBASE" +run_cmd "xbps-install -S -r $rootfs -y $PKGBASE $EXTRA_PKGS" # # Reconfigure packages for target architecture: must be reconfigured |