remove superflous kernel parameter parsing
This commit is contained in:
parent
52944cf1f9
commit
6c12883a35
1 changed files with 0 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue