init-storage: Write output to system console

When troubleshooting issues with the *init-storage* service, it is
helpful to be able to see the output from it directly on the system
(serial) console.  If the initialization fails in certain situations, it
may be impossible to see the output otherwise.  For this to work,
though, the unit has to be activated after the systemd journal has
started.
gentoo
Dustin 2023-03-26 11:59:56 -05:00
parent a87a7d6f3e
commit e0c9689841
1 changed files with 6 additions and 2 deletions

View File

@ -2,10 +2,14 @@
Description=Initialize persistent data storage
DefaultDependencies=no
Before=local-fs-pre.target
After=systemd-journald.service
After=systemd-remount-fs.service
After=systemd-sysctl.service
After=systemd-udev-trigger.service
[Service]
Type=oneshot
ExecStart=/usr/libexec/init-storage
StandardInput=null
StandardOutput=journal
StandardError=journal
StandardOutput=journal+console
StandardError=journal+console