diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-12-01 21:39:58 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-12-01 21:47:21 -0600 |
commit | 36dc1b7a2ea44321a2c233fd7ea576ed516d4ccc (patch) | |
tree | 323d215d395f5e7b276f7fe267d9952e884cce69 /hscript/meta.hh | |
parent | 8e5abd31f932c51a1f153e02d769eaebd6a2a543 (diff) | |
download | horizon-36dc1b7a2ea44321a2c233fd7ea576ed516d4ccc.tar.gz horizon-36dc1b7a2ea44321a2c233fd7ea576ed516d4ccc.tar.bz2 horizon-36dc1b7a2ea44321a2c233fd7ea576ed516d4ccc.tar.xz horizon-36dc1b7a2ea44321a2c233fd7ea576ed516d4ccc.zip |
Add 'rootshell' key to determine root's shell
* Key added to code and documentation.
* Tests added and pass locally on gwyn (ppc64) and fran (aarch64).
* Qt UI automatically sets /bin/zsh as root's shell (ref: packages#206).
* ISO image creator backend no longer has root shell hack.
Diffstat (limited to 'hscript/meta.hh')
-rw-r--r-- | hscript/meta.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hscript/meta.hh b/hscript/meta.hh index 32f8eb7..3d1382e 100644 --- a/hscript/meta.hh +++ b/hscript/meta.hh @@ -146,6 +146,17 @@ public: bool execute() const override; }; +class RootShell : public StringKey { +private: + RootShell(const Script *_s, const ScriptLocation &_p, + const std::string &_v) : + StringKey(_s, _p, _v) {} +public: + static Key *parseFromData(const std::string &, const ScriptLocation &, + int *, int *, const Script *); + bool execute() const override; +}; + class Bootloader : public Key { private: const std::string _device; |