Skip to content

Commit

Permalink
lib/init.sh: fix parsing kernel cmdline (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
YukariChiba authored Sep 22, 2024
1 parent de2d6ae commit b7c2374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ parse_cmdline()
# Maintain backward compatibility with kernel parameters.
ro | rw) rorw=$_param ;;
rootwait) root_wait=-1 ;;
--) init_args=${_param##*--}; break ;;
--) init_args=${cmdline##*--}; break ;;
rootfstype=*) root_type=${_param#*=} ;;
rootflags=*) root_opts=${_param#*=} ;;
rootdelay=*) root_wait=${_param#*=} ;;
Expand Down

0 comments on commit b7c2374

Please sign in to comment.