disk: part_rkparm: use env_delete() to delete initrd for cmdline

delete unused "initrd=0x...,0x...", this for compatible
with legacy parameter.txt.

Change-Id: I9eb79578196ae4537b65e57a2776fdf0225de488
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2018-01-31 15:41:57 +08:00 committed by Kever Yang
parent 3c9ee70130
commit b7090c0ffd
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,12 @@ static int rkparm_param_parse(char *param, struct list_head *parts_head,
/* skip "CMDLINE:" */
env_update("bootargs", cmdline + strlen("CMDLINE:"));
/*
* Initrd fixup: remove unused "initrd=0x...,0x...", this for
* compatible with legacy parameter.txt
*/
env_delete("bootargs", "initrd=");
while (*next) {
if (*next == '-') {
size = (~0UL);