mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-04 16:37:50 +00:00
busybox: rework and enable /var/log relink to persistent store logfiles on /storage
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
4fd5d8afc5
commit
8a404d346b
@ -92,4 +92,5 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 $USER_PASSWORD`"
|
||||
enable_service debug-shell.service
|
||||
enable_service show-version.service
|
||||
enable_service var.mount
|
||||
enable_service var-log-debug.service
|
||||
|
||||
|
@ -1,11 +1,15 @@
|
||||
[Unit]
|
||||
Description=Debug /var/log relink
|
||||
DefaultDependencies=false
|
||||
After=systemd-tmpfiles-setup.service var.mount
|
||||
|
||||
ConditionKernelCommandLine=debugging
|
||||
ConditionKernelCommandLine=!installer
|
||||
|
||||
[Service]
|
||||
Environment=HOME=/storage
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c 'rm -rf /var/log && mkdir -p /storage/log && ln -sf /storage/log /var/log'
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=local-fs.target
|
||||
WantedBy=sysinit.target
|
||||
|
Loading…
x
Reference in New Issue
Block a user