Created
February 17, 2026 10:38
-
-
Save sulincix/a7b660913082f3c524c5487854ea3e19 to your computer and use it in GitHub Desktop.
destroy journald
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # remove init symlink (or move) | |
| rm /sbin/init | |
| # write preinit | |
| cat > /sbin/init <<EOF | |
| mkdir /run/systemd | |
| touch /run/systemd/journal | |
| exec /lib/systemd/systemd | |
| EOF | |
| # make executable | |
| chmod 755 /sbin/init |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment