summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs')
-rwxr-xr-xinitramfs/cdboot/mkcdboot4
-rwxr-xr-xinitramfs/initrd-stuff/init5
2 files changed, 5 insertions, 4 deletions
diff --git a/initramfs/cdboot/mkcdboot b/initramfs/cdboot/mkcdboot
index cefe7f09..4787f27a 100755
--- a/initramfs/cdboot/mkcdboot
+++ b/initramfs/cdboot/mkcdboot
@@ -7,8 +7,8 @@
#
# General information about OpenSLX can be found at http://openslx.org
#
-# Script for generating an InitRamFS for using a demo CD/DVD instead of
-# PXE/linux boot functionality
+# Script for generating an InitRamFS for using a demo CD/DVD (via kexec
+# mechanism) instead of PXE/linux boot functionality
BUILDDIR=/tmp/slxcdboot
SLX_SHARE_PATH=/opt/openslx/share
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index f47092cc..a6979800 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -441,7 +441,7 @@ if [ -n "${bldmod}" ] ; then
fi
done
usleep 100
- echo noop > /sys/block/nbd0/queue/scheduler
+ echo deadline > /sys/block/nbd0/queue/scheduler
# switch off unneeded block read ahead
echo "0" > /sys/block/nbd0/queue/read_ahead_kb
;;
@@ -450,7 +450,8 @@ if [ -n "${bldmod}" ] ; then
RDEV=/dev/vnbd0
waitfor "${RDEV}" 20000 || error "$init_nbddev"
# check for others in machine-setup and then kernel cmdline
- rootfs="$(sed -n "/rootfs=/p" /etc/machine-setup|sed "s,rootfs=,,;s,\",,g") "
+ rootfs="$(sed -n "/rootfs=/p" /etc/initramfs-setup| \
+ sed "s,rootfs=,,;s,\",,g") "
[ -z "$rootfs" ] && \
rootfs="$(cat /proc/cmdline|sed "s,.*rootfs=\",,;s,\".*,,") "
i=0