summaryrefslogtreecommitdiff
path: root/archiso
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-10-19 23:31:50 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2008-10-19 23:31:50 -0500
commit2b6515271d76823386fbe1396187a8463fb454c3 (patch)
treea6e46da9f0c95a21b83b6ba34157dd500573a9c9 /archiso
parentf3110a21eb9e19de46b68bbcff0d94c58e2f7529 (diff)
Remove mkinitcpio functionality
We don't want to tie the archiso scripts to the way the ISO should boot the live system. This can and should be done at the build (Makefile) level beforehand Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'archiso')
-rwxr-xr-xarchiso/mkarchiso32
1 files changed, 0 insertions, 32 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index 857d588..e8babac 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -1,6 +1,5 @@
#!/bin/bash
-CPIOCONFIG="$(pwd)/archiso-mkinitcpio.conf"
PKGLIST=""
QUIET="y"
FORCE="n"
@@ -15,7 +14,6 @@ usage ()
echo "usage ${APPNAME} [options] command <command options>"
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(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."
@@ -29,7 +27,6 @@ usage ()
while getopts 'i:P:p:a:t:fvh' arg; do
case "${arg}" in
- i) CPIOCONFIG="${OPTARG}" ;;
p) PKGLIST="${PKGLIST} ${OPTARG}" ;;
t) IMG_TYPE="${OPTARG}" ;;
f) FORCE="y" ;;
@@ -64,20 +61,11 @@ esac
echo "${APPNAME} : Configuration Settings"
-echo " mkinitcpio config file: ${CPIOCONFIG}"
echo " mount description file: ${MOUNTFILE}"
echo " working directory: ${work_dir}"
echo " image name: ${imgname}"
echo " image type: ${IMG_TYPE}"
-
-_kversion ()
-{
- # Man this is gross... we need a better way to get the kernel version
- source ${work_dir}/etc/mkinitcpio.d/kernel26.kver
- echo ${ALL_kver}
-}
-
# usage: _pacman <packages>...
_pacman ()
{
@@ -181,10 +169,6 @@ command_image () {
exit 1
fi
fi
- if [ ! -e "${CPIOCONFIG}" ]; then
- echo "error: mkinitcpio config '${CPIOCONFIG}' does not exist, aborting."
- exit 1
- fi
if [ ! -e "${MOUNTFILE}" ]; then
echo "error: mount file '${MOUNTFILE}' does not exist, aborting."
@@ -192,22 +176,6 @@ command_image () {
fi
cp "${MOUNTFILE}" "${work_dir}/mounts"
- kernelver=$(_kversion)
- basedir=${work_dir}
- [ "${work_dir:0:1}" != "/" ] && basedir="$(pwd)/${work_dir}"
- echo "Generating initcpio for image..."
- if [ "${QUIET}" = "y" ]; then
- mkinitcpio -c "${CPIOCONFIG}" -b "${basedir}" -k "${kernelver}" -g "${work_dir}/boot/archiso.img" >/dev/null
- ret=$?
- else
- mkinitcpio -c "${CPIOCONFIG}" -b "${basedir}" -k "${kernelver}" -g "${work_dir}/boot/archiso.img"
- ret=$?
- fi
- if [ $ret -ne 0 ]; then
- echo "error: initcpio image creation failed..."
- exit 1
- fi
-
USE_GRUB=1
bootflags=""
if [ "$USE_GRUB" = "1" ]; then