Skip to content

Commit

Permalink
Fix up fake tail command
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Nov 10, 2024
1 parent e031f4c commit 1868f7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom/testing/tail
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def run_execve(cmd, args=None):
with open(cmd, "rb") as fp:
os.execve(fp.fileno(), args, os.environ)
else:
args = [cmd] + args
os.execve(cmd, args, os.environ)


Expand All @@ -33,7 +32,7 @@ if pid != 1:
else:
with open("/cmd.sh", "w") as fp:
if sys.argv[1:]:
fp.write(f"tail.real", sys.argv[1:])
fp.write(f"tail.real {' '.join(sys.argv[1:])}")
else:
fp.write(f"tail.real")
run_execve("/usr/lib/systemd/systemd", ["--systemd", "--unit=rescue.target"])

0 comments on commit 1868f7a

Please sign in to comment.