Skip to content

Commit

Permalink
Merge pull request #186 from sifive/dev/jho
Browse files Browse the repository at this point in the history
clear bootparam_root not defined warning message
  • Loading branch information
JimmyHoSF authored Nov 6, 2024
2 parents 6e3a308 + 44de29f commit 1b259f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes-core/initrdscripts/initramfs-framework/nbdrootfs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

nbdrootfs_enabled() {
if [ ${bootparam_root} != "/dev/nbd0" ] || [ -z ${bootparam_nbdroot} ]; then
if [ -z ${bootparam_root} ] || [ ${bootparam_root} != "/dev/nbd0" ] || [ -z ${bootparam_nbdroot} ]; then
return 1
fi
return 0
Expand Down

0 comments on commit 1b259f7

Please sign in to comment.