Skip to content

Commit

Permalink
Ensure SD card updater runs after networking and Docker (#741)
Browse files Browse the repository at this point in the history

Co-authored-by: Luke Childs <lukechilds123@gmail.com>
  • Loading branch information
AaronDewes and lukechilds authored Apr 24, 2021
1 parent 8fb101e commit 5d63f36
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Umbrel External Storage SDcard Updater
# Installed at /etc/systemd/system/umbrel-external-storage-sdcard-update.service

[Unit]
Description=External Storage SDcard Updater
Requires=umbrel-external-storage.service
After=umbrel-external-storage.service
Wants=network-online.target
After=network-online.target
Wants=docker.service
After=docker.service

[Service]
Type=oneshot
Restart=no
ExecStart=/home/umbrel/umbrel/scripts/umbrel-os/external-storage/update-from-sdcard
TimeoutStartSec=45min
User=root
Group=root
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=external storage updater
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
1 change: 0 additions & 1 deletion scripts/umbrel-os/services/umbrel-external-storage.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Before=docker.service
Type=oneshot
Restart=no
ExecStart=/home/umbrel/umbrel/scripts/umbrel-os/external-storage/mount
ExecStartPost=/home/umbrel/umbrel/scripts/umbrel-os/external-storage/update-from-sdcard
TimeoutStartSec=45min
User=root
Group=root
Expand Down
2 changes: 2 additions & 0 deletions scripts/umbrel-os/services/umbrel-startup.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
Description=Umbrel Startup Service
Requires=umbrel-external-storage.service
After=umbrel-external-storage.service
Requires=umbrel-external-storage-sdcard-update.service
After=umbrel-external-storage-sdcard-update.service
Wants=network-online.target
After=network-online.target
Wants=docker.service
Expand Down

0 comments on commit 5d63f36

Please sign in to comment.