Skip to content

Commit

Permalink
mkhrmpf.sh: enable socklog, log to tty12
Browse files Browse the repository at this point in the history
  • Loading branch information
leahneukirchen committed Jan 5, 2023
1 parent 041cec6 commit 475f09c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mkhrmpf.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
#!/bin/sh

rm -rf hrmpf-include

# Create an empty zpool.cache to prevent importing at boot
mkdir -p hrmpf-include/etc/zfs
: > hrmpf-include/etc/zfs/zpool.cache

mkdir -p hrmpf-include/etc/runit/runsvdir/default
ln -s /etc/sv/nanoklogd hrmpf-include/etc/runit/runsvdir/default/
ln -s /etc/sv/socklog-unix hrmpf-include/etc/runit/runsvdir/default/socklog-unix
mkdir -p hrmpf-include/etc/sv/socklog-unix/log
printf '%s\n' '#!/bin/sh' 'exec svlogd -ttt /var/log/socklog/* 2>/dev/tty12' > hrmpf-include/etc/sv/socklog-unix/log/run
chmod +x hrmpf-include/etc/sv/socklog-unix/log/run
mkdir -p hrmpf-include/var/log/socklog/tty12
printf '%s\n' '-*' 'e*' 'Eauth.*' 'Eauthpriv.*' > hrmpf-include/var/log/socklog/tty12/config


./mklive.sh \
-T "hrmpf live/rescue system" \
-C "loglevel=6 printk.time=1 consoleblank=0 net.ifnames=0" \
Expand Down

0 comments on commit 475f09c

Please sign in to comment.