From 00848934b6cfda59e84bf4d3434ca3bcd599c7a0 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Sun, 19 Oct 2008 19:51:48 -0500 Subject: Remove all 'package file' usage in favor of command line packages This is just simpler and more intuitive. Shell tools can easily be used to install from a file. For instance: $ mkarciso ... -p "$(cat package-file)" Signed-off-by: Aaron Griffin --- archiso/mkarchiso | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'archiso') diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 943f0c1..1fdd184 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -15,7 +15,7 @@ usage () echo " general options:" echo " -f Force overwrite of working files/squashfs image/bootable image" echo " -i CPIO_CONFIG Use CONFIG file for mkinitcpio. default: ${CPIOCONFIG}" - echo " -p PACKAGE Additional package to install, can be used multiple times" + echo " -p PACKAGE(S) Additional package(s) to install, can be used multiple times" echo " -t Type of image to create. Defaults to iso." echo " -v Enable verbose output." echo " -h This message." @@ -51,11 +51,10 @@ fi command_name="${1}" work_dir="" -pkgfile="" imgname="" case "${command_name}" in - install) work_dir="${2}"; pkgfile="${3}"; imgname="none" ;; + install) work_dir="${2}"; imgname="none" ;; squash) work_dir="${2}"; imgname="${3}" ;; img) work_dir="${2}"; imgname="${3}" ;; *) echo "invalid command name '${command_name}'"; usage 1 ;; @@ -91,21 +90,6 @@ _pacman () fi } -# usage: install_pkgfile -install_pkgfile () -{ - if [ -e "${1}" ]; then - toinstall="" - while read pkg; do - toinstall="${toinstall} ${pkg}" - done < ${1} - _pacman "${toinstall}" - else - echo "error: Package file '${1}' does not exist, aborting." - exit 1 - fi -} - command_install () { echo "====> Installing packages to '${work_dir}'" if [ -e "${work_dir}" -a "${FORCE}" = "n" ]; then @@ -116,8 +100,6 @@ command_install () { mkdir -p "${work_dir}" echo "Installing packages..." - echo " Installing packages from '${pkgfile}'" - install_pkgfile "${pkgfile}" for pkg in ${PKGLIST}; do echo " Installing package '${pkg}'" -- cgit v1.2.2