Skip to content

Commit

Permalink
Update start-systemd-namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
akmorley authored Nov 8, 2023
1 parent 1e81697 commit d7a4db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start-systemd-namespace
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

SYSTEMD_EXE="/lib/systemd/systemd --unit=basic.target"
SYSTEMD_EXE="/lib/systemd/systemd --unit=multi-user.target"
SYSTEMD_PID="$(ps -eo pid=,args= | awk '$2" "$3=="'"$SYSTEMD_EXE"'" {print $1}')"
if [ "$LOGNAME" != "root" ] && ( [ -z "$SYSTEMD_PID" ] || [ "$SYSTEMD_PID" != "1" ] ); then
export | sed -e 's/^declare -x //;/^IFS=".*[^"]$/{N;s/\n//}' | \
Expand Down

0 comments on commit d7a4db3

Please sign in to comment.