diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-26 02:25:41 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-26 02:25:41 -0500 |
commit | 1cd72d82372a9e89bdf406f58ae8609e344a1bd1 (patch) | |
tree | 092ea4d5dc4d1e0122deef6f5795c9112d70c049 /hscript/user.cc | |
parent | ec395888bd4a62e5a36b55e98999a24c6ffe3ac0 (diff) | |
download | horizon-1cd72d82372a9e89bdf406f58ae8609e344a1bd1.tar.gz horizon-1cd72d82372a9e89bdf406f58ae8609e344a1bd1.tar.bz2 horizon-1cd72d82372a9e89bdf406f58ae8609e344a1bd1.tar.xz horizon-1cd72d82372a9e89bdf406f58ae8609e344a1bd1.zip |
hscript: Fix missing endl for timezone simulation; print what's happening
Diffstat (limited to 'hscript/user.cc')
-rw-r--r-- | hscript/user.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hscript/user.cc b/hscript/user.cc index b288070..f654db9 100644 --- a/hscript/user.cc +++ b/hscript/user.cc @@ -137,6 +137,9 @@ bool RootPassphrase::execute(ScriptOptions options) const { const std::string root_line = "root:" + this->_value + ":" + std::to_string(time(nullptr) / 86400) + ":0:::::"; + output_info("installfile:" + std::to_string(this->lineno()), + "rootpw: setting root passphrase"); + if(options.test(Simulate)) { std::cout << "(printf '" << root_line << "\\" << "n'; " << "cat /target/etc/shadow | sed '1d') > /tmp/shadow" |