# Copies the temporary boot logs from /run into /var/log/system
# and replaces s6-svscan-log with one that logs there
foreground { s6-svc -OhwD /run/service/s6-svscan-log }
foreground { mkdir -p -m 770 /var/log/system/ }
foreground { chgrp log /var/log/system/ }
foreground {
	redirfd -a 1 /var/log/system/current
	cat /run/uncaught-logs/current
}
foreground { chmod u+x /var/log/system/current }
foreground { cp /usr/libexec/init/persist-log/run /run/service/s6-svscan-log/ }
s6-svc -u /run/service/s6-svscan-log
