remove superflous kernel parameter parsing

This commit is contained in:
jalr 2018-02-20 22:22:34 +01:00
parent 52944cf1f9
commit 6c12883a35

View file

@ -38,21 +38,6 @@ labsync_mount_root() {
https://gitlab.jalr.de/fablab/initramfs
'
##
# READ CONFIGURATION PARAMETERS FROM KERNEL PARAMETERS
##
print_waiting "Reading configuration parameters"
set -- $(cat /proc/cmdline)
for x in "$@"; do
arg="$(echo $x | cut -d= -f1)"
case "$arg" in
disk|root|partsize|qemu)
eval $arg="$(echo $x | cut -d= -f2)"
;;
esac
done
# Check if mandatory parameters are missing
if [ -z "$disk" ];then