summaryrefslogtreecommitdiff
path: root/archiso/mkarchiso
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-10-19 19:51:48 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2008-10-19 19:51:48 -0500
commit00848934b6cfda59e84bf4d3434ca3bcd599c7a0 (patch)
treea67ea81a2ea504f70c3edf728f124d1fff6c3b21 /archiso/mkarchiso
parentc2ffda39f9c400945ca0283eccfeda2afc40891b (diff)
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 <aaronmgriffin@gmail.com>
Diffstat (limited to 'archiso/mkarchiso')
-rwxr-xr-xarchiso/mkarchiso22
1 files changed, 2 insertions, 20 deletions
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 <iso,disk> 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 <packagesfile>
-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}'"