summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-05-05 19:27:51 -0400
committerAndrew Cady <d@jerkface.net>2020-05-05 19:27:51 -0400
commitef561d2ac23088a77eea0881f91ab063025c8f2d (patch)
tree8ad0ed8825d12a5792b416aa966c73027ca51f56
parentdb4cdab4a87e5cbe118535039e7a4cae0c140211 (diff)
fix kernel commandline on cdrom boot
-rwxr-xr-xsrc/grub-efi.sh7
-rwxr-xr-xsrc/xorriso-usb.sh2
2 files changed, 7 insertions, 2 deletions
diff --git a/src/grub-efi.sh b/src/grub-efi.sh
index 611e85f..350c28d 100755
--- a/src/grub-efi.sh
+++ b/src/grub-efi.sh
@@ -1,7 +1,12 @@
1#!/bin/bash 1#!/bin/bash
2. samizdat-paths.sh 2. samizdat-paths.sh
3 3
4linux_kernel_commandline='boot=samizdat components quiet nbdroot=192.168.10.1/samizdat.btrfs nbddev=/dev/nbd0 ip=dhcp' 4if [ "$BOOTLOADER_ONLY" ]
5then
6 linux_kernel_commandline='boot=samizdat components quiet nbdroot=192.168.10.1/samizdat.btrfs nbddev=/dev/nbd0 ip=dhcp'
7else
8 linux_kernel_commandline='boot=samizdat components quiet'
9fi
5 10
6grub_config() 11grub_config()
7{ 12{
diff --git a/src/xorriso-usb.sh b/src/xorriso-usb.sh
index b811c7f..594ff78 100755
--- a/src/xorriso-usb.sh
+++ b/src/xorriso-usb.sh
@@ -195,7 +195,7 @@ while [ $# -gt 0 ]; do
195 case "$1" in 195 case "$1" in
196 --) shift; break;; 196 --) shift; break;;
197 --adam) shift; ADAM=y;; 197 --adam) shift; ADAM=y;;
198 --bootloader) shift; BOOTLOADER_ONLY=y;; 198 --bootloader) shift; export BOOTLOADER_ONLY=y;;
199 --cdrom) shift; USB=;; 199 --cdrom) shift; USB=;;
200 --detach) shift; DETACH=y;; 200 --detach) shift; DETACH=y;;
201 --in) INPUT_DEVICE="$2"; shift 2;; 201 --in) INPUT_DEVICE="$2"; shift 2;;