From 72ad84dfbc2593a5c143df6a3976ac5359167483 Mon Sep 17 00:00:00 2001 From: David P Date: Wed, 19 Aug 2020 17:14:30 -0400 Subject: sync with archiso, add timeout for i686 syslinux menus imported the following changes: 13b8c7d (HEAD -> master, origin/master, origin/HEAD) archiso/mkarchiso: correct the path of airootfs/etc/machine-id 41d3d7d Add Joliet file system to the ISO e6455b8 archiso/mkarchiso: create an empty /etc/machine-id ba3e834 scripts/run_archiso.sh: support booting the image as a hard disk or an optical disc 55d9d1f scripts/run_archiso.sh: disable PXE ROM 1e0ffd0 scripts/run_archiso.sh: don't duplicate qemu commands for each boot mode e9f209e Deprecate build.sh scripts and old mkarchiso commands 31b1dfd archiso/mkarchiso: delete all files in /boot not just the kernel and initramfs 7c2247f archiso/mkarchiso: allow choosing boot modes from profiledef.sh 41b9b89 archiso/mkarchiso: copy make_* functions from configs/releng/build.sh 1cc7375 archiso/mkarchiso: start preparing a build_profile command 0387b25 archiso/mkarchiso: general bash improvements --- scripts/run_parabolaiso.sh | 116 ++++++++++++++++++++++----------------------- 1 file changed, 56 insertions(+), 60 deletions(-) (limited to 'scripts/run_parabolaiso.sh') diff --git a/scripts/run_parabolaiso.sh b/scripts/run_parabolaiso.sh index 01f0a7d..cc75d24 100755 --- a/scripts/run_parabolaiso.sh +++ b/scripts/run_parabolaiso.sh @@ -15,117 +15,113 @@ set -eu print_help() { - cat << EOF + local usagetext + IFS='' read -r -d '' usagetext < 0 )); then + while getopts 'bdhi:su' flag; do + case "$flag" in b) - boot_type=bios + boot_type='bios' + ;; + d) + mediatype='hd' ;; h) print_help @@ -135,13 +131,13 @@ if [ ${#@} -gt 0 ]; then image="$OPTARG" ;; u) - boot_type=uefi + boot_type='uefi' ;; s) - secure_boot=yes + secure_boot='on' ;; *) - echo "Error: Wrong option. Try 'run_parabolaiso -h'." + printf '%s\n' "Error: Wrong option. Try 'run_parabolaiso -h'." exit 1 ;; esac -- cgit v1.2.2