summaryrefslogtreecommitdiff
path: root/src/xorriso-usb.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-05-06 20:33:02 +0200
committerAndrew Cady <d@jerkface.net>2016-05-06 20:33:02 +0200
commit5420ecb6ba0d0811a5f4650b41f5a621a445a6e2 (patch)
tree7859985932ccba6ff3e9b05c9192bbdd0107e691 /src/xorriso-usb.sh
parent8bef30827db00b8d4cb2264e28070905a449437d (diff)
xorriso: disable "--in" with message; improve message for (already disabled) interactive cdrom choosing
Diffstat (limited to 'src/xorriso-usb.sh')
-rw-r--r--src/xorriso-usb.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/xorriso-usb.sh b/src/xorriso-usb.sh
index e912080..2b3214f 100644
--- a/src/xorriso-usb.sh
+++ b/src/xorriso-usb.sh
@@ -31,7 +31,10 @@ while [ $# -gt 0 ]; do
31 esac 31 esac
32done 32done
33 33
34if [ -z "$INPUT_DEVICE" -a $# = 0 -a -z "$BOOTLOADER_ONLY" ]; then 34if [ "$INPUT_DEVICE" ]; then
35 die "support for --in is disabled because xorriso needs different arguments to produce a bootable image"
36
37elif [ $# = 0 -a -z "$BOOTLOADER_ONLY" ]; then
35 if mountpoint -q /cdrom; then 38 if mountpoint -q /cdrom; then
36 INPUT_DEVICE=/cdrom 39 INPUT_DEVICE=/cdrom
37 elif [ -e debian-live-8.4.0-amd64-standard.btrfs -a -e layer.btrfs ]; then 40 elif [ -e debian-live-8.4.0-amd64-standard.btrfs -a -e layer.btrfs ]; then
@@ -100,7 +103,7 @@ choose_usb()
100 103
101choose_cdrom() 104choose_cdrom()
102{ 105{
103 die 'choose_cdrom: unimplemented' 106 die 'choose_cdrom: unimplemented; specify cdrom device with --out'
104} 107}
105 108
106choose_outdev() 109choose_outdev()
@@ -192,7 +195,7 @@ SILENT=
192 195
193(set -x 196(set -x
194xorriso \ 197xorriso \
195 ${disable____INPUT_DEVICE:+ -indev "$INPUT_DEVICE" } \ 198 ${INPUT_DEVICE:+ -indev "$INPUT_DEVICE" } \
196 -outdev ${NEED_STDIO:+stdio:}"$outdev" \ 199 -outdev ${NEED_STDIO:+stdio:}"$outdev" \
197 -blank as_needed \ 200 -blank as_needed \
198 ${SILENT:+ -report_about mishap} \ 201 ${SILENT:+ -report_about mishap} \