Skip to content
Browse files

Save _load lines as variables if no module can be found

  • Loading branch information...
1 parent 182af0e commit 3f810665d19a572cef917e6f6e8a3d6f320a2a60 @kmoore134 kmoore134 committed Aug 8, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 src-sh/pc-extractoverlay/ports-overlay/usr/local/etc/grub.d/10_ktrueos
View
5 src-sh/pc-extractoverlay/ports-overlay/usr/local/etc/grub.d/10_ktrueos
@@ -98,7 +98,10 @@ display_loaderopts()
elif [ -e "${fMnt}/boot/modules/${module}.ko" ] ; then
mPath="modules"
else
- echo "Unable to locate module ${module}" >&2
+ # This isn't a module that we can see, lets set it as a variable
+ #echo "No such module $line, setting as a variable" >&2
+ echo "$line" >> /tmp/.lSysCtls.$$
+ continue
fi
echo " kfreebsd_module_elf ${loadPrefix}/@/boot/${mPath}/${module}.ko"
done < /tmp/.lRObjs.$$

0 comments on commit 3f81066

Please sign in to comment.
Something went wrong with that request. Please try again.