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:
parent
3c9ee70130
commit
b7090c0ffd
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue