From fca5d1b5057737554b1b9fb19b4fc425e5759426 Mon Sep 17 00:00:00 2001 From: Jimmy Ho Date: Wed, 30 Oct 2024 19:35:52 -0700 Subject: [PATCH] clear warning for bootparam_root not be defined in nfsrootfs In our case, there is some situation that bootparam_root is not defined check whether bootparam_root is defined or not when running nfsrootfs Signed-off-by: Jimmy Ho --- meta/recipes-core/initrdscripts/initramfs-framework/nfsrootfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/nfsrootfs b/meta/recipes-core/initrdscripts/initramfs-framework/nfsrootfs index e67ee4c25d3..1e76258ce10 100644 --- a/meta/recipes-core/initrdscripts/initramfs-framework/nfsrootfs +++ b/meta/recipes-core/initrdscripts/initramfs-framework/nfsrootfs @@ -1,7 +1,7 @@ #!/bin/sh nfsrootfs_enabled() { - if [ ${bootparam_root} != "/dev/nfs" ] || [ -z ${bootparam_nfsroot} ]; then + if [ -z ${bootparam_root} ] || [ ${bootparam_root} != "/dev/nfs" ] || [ -z ${bootparam_nfsroot} ]; then return 1 fi return 0