summaryrefslogtreecommitdiff
path: root/image/backends
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-12-01 21:39:58 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-12-01 21:47:21 -0600
commit36dc1b7a2ea44321a2c233fd7ea576ed516d4ccc (patch)
tree323d215d395f5e7b276f7fe267d9952e884cce69 /image/backends
parent8e5abd31f932c51a1f153e02d769eaebd6a2a543 (diff)
downloadhorizon-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 'image/backends')
-rw-r--r--image/backends/iso.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/image/backends/iso.cc b/image/backends/iso.cc
index 8ef4503..52f0367 100644
--- a/image/backends/iso.cc
+++ b/image/backends/iso.cc
@@ -303,11 +303,6 @@ public:
output_info("CD backend", "creating live environment /etc/fstab");
if(!write_fstab_to(target)) return FS_ERROR;
- /* REQ: ISO.13 */
- output_info("CD backend", "setting root shell");
- run_command("sed", {"-i", "s#/root:/bin/sh$#/root:/bin/zsh#",
- target + "/etc/passwd"});
-
/* REQ: ISO.15 */
output_info("CD backend", "configuring login services");
run_command("sed", {"-i", "s/pam_unix.so$/pam_unix.so nullok_secure/",