]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
nfsrootfs: disable warning message if bootargs root parameter have not been defined
authorJimmy Ho <jimmy.ho@sifive.com>
Tue, 24 Jun 2025 00:14:21 +0000 (08:14 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jun 2025 10:01:18 +0000 (11:01 +0100)
commitd50e12e5ae6a72535cacd0f767b1be1f89278f79
tree27c1808121ac37e3d6cbc66c3c47117c98836201
parent4ea24276ad3b6cf3d63a839f3c5fbe697ccd28cd
nfsrootfs: disable warning message if bootargs root parameter have not been defined

we have case that don't define root in bootargs,
if [ ${bootparam_root} != "/dev/nfs" ] will output warning "/init.d/85-nfsrootfs: line 4: [: !=: unary operator expected"
let variable expension result become string to solve this problem

Signed-off-by: Jimmy Ho <jimmy.ho@sifive.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/initramfs-framework/nfsrootfs