svn commit: r357827 - head/stand/common

Kyle Evans kevans at FreeBSD.org
Wed Feb 12 16:09:02 UTC 2020


Author: kevans
Date: Wed Feb 12 16:09:01 2020
New Revision: 357827
URL: https://svnweb.freebsd.org/changeset/base/357827

Log:
  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.
  
  Reviewed by:	tsoome
  MFC after:	3 days
  Differential Revision:	https://reviews.freebsd.org/D23611

Modified:
  head/stand/common/interp_lua.c

Modified: head/stand/common/interp_lua.c
==============================================================================
--- head/stand/common/interp_lua.c	Wed Feb 12 15:59:59 2020	(r357826)
+++ head/stand/common/interp_lua.c	Wed Feb 12 16:09:01 2020	(r357827)
@@ -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-all mailing list