Date: Tue, 5 Aug 2014 19:29:50 GMT From: pedrosouza@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r271954 - soc2014/pedrosouza/lua_loader/head/sys/boot/lua Message-ID: <201408051929.s75JToS5054829@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pedrosouza Date: Tue Aug 5 19:29:49 2014 New Revision: 271954 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=271954 Log: added default kernel name to config.loadkernel Modified: soc2014/pedrosouza/lua_loader/head/sys/boot/lua/config.lua Modified: soc2014/pedrosouza/lua_loader/head/sys/boot/lua/config.lua ============================================================================== --- soc2014/pedrosouza/lua_loader/head/sys/boot/lua/config.lua Tue Aug 5 18:51:51 2014 (r271953) +++ soc2014/pedrosouza/lua_loader/head/sys/boot/lua/config.lua Tue Aug 5 19:29:49 2014 (r271954) @@ -206,12 +206,15 @@ local load_bootfile = function() local bootfile = loader.getenv("bootfile"); - local res = nil; - if bootfile ~= nil then - return try_load(bootfile); + + -- append default kernel name + if not bootfile then + bootfile = "kernel"; + else + bootfile = bootfile..";kernel"; end - print("Kernel loading failed: null bootfile!\n"); - return nil; + + return try_load(bootfile); end; -- kernel not set, try load from default module_path
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408051929.s75JToS5054829>
