diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-28 03:27:16 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-28 03:27:16 +0000 |
commit | 462391357aa5e749dc9908c15f3baa0b4416f3d8 (patch) | |
tree | 11d4d3f054aae9ffd869adc634054f64a16d83b8 /libre/mkisolinux | |
parent | 748e32a3a886569b58a27003e85b76be5746153d (diff) |
Tue Jan 28 03:22:21 UTC 2014
Diffstat (limited to 'libre/mkisolinux')
-rw-r--r-- | libre/mkisolinux/PKGBUILD | 28 | ||||
-rw-r--r-- | libre/mkisolinux/boot.msg | 15 | ||||
-rwxr-xr-x | libre/mkisolinux/mkisolinux | 116 | ||||
-rw-r--r-- | libre/mkisolinux/mkisolinux.conf | 39 | ||||
-rw-r--r-- | libre/mkisolinux/options.msg | 6 |
5 files changed, 0 insertions, 204 deletions
diff --git a/libre/mkisolinux/PKGBUILD b/libre/mkisolinux/PKGBUILD deleted file mode 100644 index 7c9ab6cc4..000000000 --- a/libre/mkisolinux/PKGBUILD +++ /dev/null @@ -1,28 +0,0 @@ -# $Id: PKGBUILD 12670 2008-09-17 21:19:05Z tpowa $ -# Maintainer : Tobias Powalowski <tpowa@archlinux.org> - -pkgname=mkisolinux -pkgver=2013.05 -pkgrel=1 -pkgdesc="Advanced, modular isolinux bootcd image creation utility (Parabola rebranded)" -arch=(any) -license=('GPL') -url="https://parabolagnulinux.org/" -depends=('mkinitcpio' 'cdrkit' 'syslinux' 'pciutils') -replaces=('mkbootcd') -backup=(etc/mkisolinux.conf) -source=('boot.msg' 'mkisolinux' 'mkisolinux.conf' 'options.msg') - - -package() -{ - cd "$srcdir/" - install -D -m755 mkisolinux "$pkgdir/usr/bin/mkisolinux" - install -D -m644 mkisolinux.conf "$pkgdir/etc/mkisolinux.conf" - install -D -m644 boot.msg "$pkgdir/usr/share/mkisolinux/boot.msg" - install -D -m644 options.msg "$pkgdir/usr/share/mkisolinux/options.msg" -} -md5sums=('945d5f5d74f37718c8c9d518bfd5698d' - '384aac3786506ff96ec3d1147bcacfe5' - '3cc23d74d7e4378d1be431d68a71a173' - 'ae0007d6679b5a575b2a9e5ac3664baf') diff --git a/libre/mkisolinux/boot.msg b/libre/mkisolinux/boot.msg deleted file mode 100644 index 2725404e0..000000000 --- a/libre/mkisolinux/boot.msg +++ /dev/null @@ -1,15 +0,0 @@ - - ------------------------------------------------------------------------------- -Parabola GNU/Linux-libre -ISOLINUX BOOT -created with 'mkisolinux' written by Tobias Powalowski <tpowa@archlinux.org> -rebranded for Parabola by André Silva <emulatorman@parabola.nu> - -Press ENTER or type 'parabola' to boot the CD. - -If you wish to change your defaults to boot into your existing system, -type 'vmlinuz initrd=initrd.img <any_other_boot_option>' -Use the F2 key for troubleshooting and options. ------------------------------------------------------------------------------- - diff --git a/libre/mkisolinux/mkisolinux b/libre/mkisolinux/mkisolinux deleted file mode 100755 index 048d925aa..000000000 --- a/libre/mkisolinux/mkisolinux +++ /dev/null @@ -1,116 +0,0 @@ -#! /bin/sh -# Created by Tobias Powalowski <tpowa@archlinux.org> -# Rebranded for Parabola by André Silva <emulatorman@parabola.nu> -# Settings -APPNAME=$(basename "${0}") -CONFIG="/etc/mkisolinux.conf" -GENIMG="" -BURN="0" -BLANK="0" -TARNAME="" -export TEMPDIR=$(mktemp -d /tmp/mkisolinux.XXXX) -usage () -{ - echo "${APPNAME}: usage" - echo " -g=IMAGE Generate a ISO image as IMAGE" - echo " -c=CONFIG Use CONFIG file. default: /etc/mkisolinux.conf" - echo " -B Burn the ISO image after creation" - echo " -b Blanking media first" - echo " -h This message." - exit 1 -} - -[ "$1" == "" ] && usage - -while [ $# -gt 0 ]; do - case $1 in - -c=*|--c=*) CONFIG="$(echo $1 | awk -F= '{print $2;}')" ;; - -g=*|--g=*) GENIMG="$(echo $1 | awk -F= '{print $2;}')" ;; - -B|--B) BURN="1" ;; - -b|--b) BLANK="1" ;; - -t=*|--t=*) TARNAME="$(echo $1 | awk -F= '{print $2;}')" ;; - -h|--h|?) usage ;; - *) usage ;; - esac - shift -done - -if [ "${TARNAME}" = "" -a "${GENIMG}" = "" ]; then - echo "ERROR: No image name specified, please use the -g option" - exit 1 -fi - -if [ ! -f "${CONFIG}" ]; then - echo "config file '${CONFIG}' cannot be found, aborting..." - exit 1 -fi - -. "${CONFIG}" -# export for mkinitcpio -[ -n "${APPENDBOOTMESSAGE}" ] && export APPENDBOOTMESSAGE -[ -n "${APPENDOPTIONSBOOTMESSAGE}" ] && export APPENDOPTIONSBOOTMESSAGE - -export RUNPROGRAM="${APPNAME}" -export BOOTDIRNAME="boot/syslinux" - -[ "${BOOTMESSAGE}" = "" ] && export BOOTMESSAGE=$(mktemp /tmp/bootmessage.XXXX) -[ "${OPTIONSBOOTMESSAGE}" = "" ] && export OPTIONSBOOTMESSAGE=$(mktemp /tmp/optionsbootmessage.XXXX) -[ "${ISONAME}" = "" ] && export ISONAME=$(mktemp /tmp/isoname.XXXX) -export USEKERNEL=${VERSION} - -# begin script -mkdir -p ${TEMPDIR}/${BOOTDIRNAME}/ -# prepare syslinux -install -m755 /usr/lib/syslinux/isolinux.bin ${TEMPDIR}/${BOOTDIRNAME}/isolinux.bin -for i in /usr/lib/syslinux/*.c32; do - install -m644 $i ${TEMPDIR}/${BOOTDIRNAME}/$(basename $i) -done -install -m644 /usr/share/hwdata/pci.ids ${TEMPDIR}/${BOOTDIRNAME}/pci.ids -# create syslinux.cfg -echo ":: Creating syslinux.cfg ..." -if [ "${ISOLINUXCFG}" = "" ]; then - [ -e ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg ] && rm ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg - echo "prompt ${PROMPT}" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg - echo "timeout ${TIMEOUT}" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg - echo "display boot.msg" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg - echo "F1 boot.msg" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg - echo "F2 options.msg" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg - echo "default parabola" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg - echo "label parabola" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg - echo "kernel /boot/vmlinuz" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg - echo "append initrd=/boot/initrd.img ${KERNEL_BOOT_OPTIONS}" >> ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg -else - sed "s|@@PROMPT@@|${PROMPT}|g;s|@@TIMEOUT@@|${TIMEOUT}|g;s|@@KERNEL_BOOT_OPTIONS@@|${KERNEL_BOOT_OPTIONS}|g" \ - ${ISOLINUXCFG} > ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg -fi -[ ! -s ${TEMPDIR}/${BOOTDIRNAME}/syslinux.cfg ] && echo "No syslinux.cfg found" && exit 1 - -echo ":: Calling mkinitcpio CONFIG=${MKINITCPIO_CONFIG} KERNEL=${VERSION} ..." -# generate initramdisk -echo ":: Creating initramdisk ..." - mkinitcpio -c ${MKINITCPIO_CONFIG} -k ${VERSION} -g ${TEMPDIR}/boot/initrd.img -echo ":: Using ${KERNEL} as image kernel ..." - install -m644 ${KERNEL} ${TEMPDIR}/boot/vmlinuz - install -m644 ${BOOTMESSAGE} ${TEMPDIR}/${BOOTDIRNAME}/boot.msg - install -m644 ${OPTIONSBOOTMESSAGE} ${TEMPDIR}/${BOOTDIRNAME}/options.msg - [ ! -s ${TEMPDIR}/${BOOTDIRNAME}/boot.msg ] && echo 'ERROR:no boot.msg found, aborting!' && exit 1 - [ ! -s ${TEMPDIR}/${BOOTDIRNAME}/options.msg ] && echo 'ERROR:no options.msg found, aborting!' && exit 1 -# create image -echo ":: Creating ISO image ..." - [ -e ${GENIMG} ] && rm ${GENIMG} - [ -s "${ISONAME}" ] && ISONAME=$(cat $ISONAME) || ISONAME="Parabola GNU/Linux-libre" - mkisofs -RlDJLV "${ISONAME}" -b boot/syslinux/isolinux.bin -c boot/syslinux/boot.cat \ - -no-emul-boot -boot-load-size 4 -boot-info-table -o ${GENIMG} ${TEMPDIR}/ > /dev/null 2>&1 \ - && echo ":: ISO Image succesfull created at ${GENIMG}" - # burning/blanking image - if [ "$BLANK" = "1" ]; then - echo ":: Blanking media DEVICE=${DEVICE}, BLANKMODE=${BLANKMODE}, SPEED=${SPEED} ..." - cdrecord dev=${DEVICE} speed=${SPEED} blank=${BLANKMODE} > /dev/null 2>&1 && echo ":: Successfull." - fi - if [ "$BURN" = "1" ]; then - echo ":: Burning ISO image DEVICE=${DEVICE}, SPEED=${SPEED} ..." - cdrecord dev=${DEVICE} speed=${SPEED} -eject ${GENIMG} > /dev/null 2>&1 && echo ":: Successfull." - fi - -# clean /tmp -rm -r ${TEMPDIR} diff --git a/libre/mkisolinux/mkisolinux.conf b/libre/mkisolinux/mkisolinux.conf deleted file mode 100644 index e8b1e0df0..000000000 --- a/libre/mkisolinux/mkisolinux.conf +++ /dev/null @@ -1,39 +0,0 @@ -# Created by Tobias Powalowski <tpowa@archlinux.org> -# Rebranded for Parabola by André Silva <emulatorman@parabola.nu> -# config file of mkisolinux - -# DEFAULT kernel boot options like root=/dev/sda3 etc. -# add your root= option, if you boot from a disk device -# and don't want to add it by hand on each boot -KERNEL_BOOT_OPTIONS="" - -# mkinitcpio config file, defaulted to stock config file -MKINITCPIO_CONFIG="/etc/mkinitcpio.conf" - -# kernel version, defaulted to build for runtime kernel -VERSION="$(uname -r)" - -# kernel image, defaulted to stock libre kernel -KERNEL="/boot/vmlinuz-linux-libre" - -# boot message files -BOOTMESSAGE="/usr/share/mkisolinux/boot.msg" -OPTIONSBOOTMESSAGE="/usr/share/mkisolinux/options.msg" - -# syslinux.cfg file to use -SYSLINUXCFG="" - -# Prompt on boot, 1=yes 0=no -PROMPT="1" - -# Name of the ISO, if empty Parabola GNU/Linux-libre is used if not set by a HOOK later -ISONAME="" - -# Timeout, 30 seconds to fix usb keyboard issues -# 0 means wait for prompt -TIMEOUT="300" - -# Setting cdrecord options -DEVICE="" -SPEED="" -BLANKMODE="" diff --git a/libre/mkisolinux/options.msg b/libre/mkisolinux/options.msg deleted file mode 100644 index 16c6b2eda..000000000 --- a/libre/mkisolinux/options.msg +++ /dev/null @@ -1,6 +0,0 @@ ------------------------------------------------------------------------------- -Parabola GNU/Linux-libre options and troubleshooting: - -- If your system hangs during the boot process, any combinations of the - boot options noapic acpi=off pci=routeirq nosmp nomsi may be useful. ------------------------------------------------------------------------------- |