Date: Sat, 17 Feb 2018 05:28:06 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329434 - head/stand/lua Message-ID: <201802170528.w1H5S6it082983@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevans Date: Sat Feb 17 05:28:06 2018 New Revision: 329434 URL: https://svnweb.freebsd.org/changeset/base/329434 Log: stand/lua: Check for nil (GELI prompt) Modified: head/stand/lua/password.lua Modified: head/stand/lua/password.lua ============================================================================== --- head/stand/lua/password.lua Sat Feb 17 05:26:28 2018 (r329433) +++ head/stand/lua/password.lua Sat Feb 17 05:28:06 2018 (r329434) @@ -83,8 +83,8 @@ function password.check() local boot_pwd = loader.getenv("bootlock_password"); compare("Boot password: ", boot_pwd); - local geli_pass_prompt = loader.getenv("geom_eli_passphrase_prompt"); - if (geli_pass_prompt:lower() == "yes") then + local geli_prompt = loader.getenv("geom_eli_passphrase_prompt"); + if (geli_prompt ~= nil) and (geli_prompt:lower() == "yes") then local passphrase = do_prompt("GELI Passphrase: "); loader.setenv("kern.geom.eli.passphrase", passphrase) end
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802170528.w1H5S6it082983>