firmware: only reroot on base upgrade #4500

This commit is contained in:
Franco Fichtner 2021-01-16 12:16:18 +01:00
parent c5521fecac
commit 74efc777fc

View File

@ -1,9 +1,12 @@
#!/bin/sh
# Perform major updates
for STAGE in B P; do
if opnsense-update -${STAGE}; then
# ideally reroot with `-r', but panics on ZFS
reboot
fi
done
if opnsense-update -B; then
reboot -r
fi
if opnsense-update -P; then
# XXX omit eventually?
reboot
fi