svn commit: r358198 - in stable: 11/stand/common 12/stand/common

Kyle Evans kevans at FreeBSD.org
Fri Feb 21 04:25:12 UTC 2020


Author: kevans
Date: Fri Feb 21 04:25:10 2020
New Revision: 358198
URL: https://svnweb.freebsd.org/changeset/base/358198

Log:
  MFC r357827: lualoader: disable autoboot on high-level interpreter errors
  
  If we hit an error at this level, we are almost certainly not in any kind
  of sane state where autoboot can do the right thing. Instead of letting it
  try and probably failing, disable autoboot so they immediately get kicked
  into a loader prompt for manual remediation/diagnosis.

Modified:
  stable/12/stand/common/interp_lua.c
Directory Properties:
  stable/12/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/11/stand/common/interp_lua.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/12/stand/common/interp_lua.c
==============================================================================
--- stable/12/stand/common/interp_lua.c	Fri Feb 21 04:23:54 2020	(r358197)
+++ stable/12/stand/common/interp_lua.c	Fri Feb 21 04:25:10 2020	(r358198)
@@ -128,6 +128,7 @@ interp_init(void)
                 errstr = errstr == NULL ? "unknown" : errstr;
                 printf("Startup error in %s:\nLUA ERROR: %s.\n", filename, errstr);
                 lua_pop(luap, 1);
+		setenv("autoboot_delay", "NO", 1);
 	}
 }
 


More information about the svn-src-stable mailing list