Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2020 04:25:10 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r358198 - in stable: 11/stand/common 12/stand/common
Message-ID:  <202002210425.01L4PAEB062319@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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/11/stand/common/interp_lua.c
Directory Properties:
  stable/11/   (props changed)

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

Modified: stable/11/stand/common/interp_lua.c
==============================================================================
--- stable/11/stand/common/interp_lua.c	Fri Feb 21 04:23:54 2020	(r358197)
+++ stable/11/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);
 	}
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002210425.01L4PAEB062319>