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.master
parent
a87a7d6f3e
commit
e0c9689841
|
@ -2,10 +2,14 @@
|
||||||
Description=Initialize persistent data storage
|
Description=Initialize persistent data storage
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Before=local-fs-pre.target
|
Before=local-fs-pre.target
|
||||||
|
After=systemd-journald.service
|
||||||
|
After=systemd-remount-fs.service
|
||||||
|
After=systemd-sysctl.service
|
||||||
|
After=systemd-udev-trigger.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/libexec/init-storage
|
ExecStart=/usr/libexec/init-storage
|
||||||
StandardInput=null
|
StandardInput=null
|
||||||
StandardOutput=journal
|
StandardOutput=journal+console
|
||||||
StandardError=journal
|
StandardError=journal+console
|
||||||
|
|
Reference in New Issue