summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-08-17 17:17:50 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-08-17 17:17:50 -0400
commitc82ca058b303b16f33d665d77096b4e694ae0535 (patch)
treeced7762fcf6e77c76d2f538a486aac5a8906a946
parentf3d0f31c9a1ecba1a4b0ed339d1931a97d2506b8 (diff)
osi-mk.d: osi-shell: Do a proper login
-rw-r--r--osi-mk.d/systemd-osi-shell.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/osi-mk.d/systemd-osi-shell.sh b/osi-mk.d/systemd-osi-shell.sh
index 86f6b2e..99f222f 100644
--- a/osi-mk.d/systemd-osi-shell.sh
+++ b/osi-mk.d/systemd-osi-shell.sh
@@ -12,7 +12,7 @@ systemd-osi-shell:post_install() {
Conflicts=rescue.target
AllowIsolate=yes
EOT
- ln -sT -- osi-shell.target "${arg_mountpoint}/etc/systemd/system/default.target"
+ ln -sfT -- osi-shell.target "${arg_mountpoint}/etc/systemd/system/default.target"
cat <<-'EOT' > "${arg_mountpoint}/etc/systemd/system/osi-shell.service"
[Unit]
@@ -25,7 +25,7 @@ systemd-osi-shell:post_install() {
KillMode=process
IgnoreSIGPIPE=no
- ExecStart=/bin/sh
+ ExecStart=/bin/login -p -f root
StandardInput=tty
TTYPath=/dev/ttyS0
TTYReset=yes