mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
firmware: pre-upgrade hook #6594
Make sure we are ready for reboot with kernel replaced but not yet booted. This way we can run the migration in the last possible correct spot. We might even abort on errors here which might be handy to catch issues... to be discussed.
This commit is contained in:
parent
af5834600c
commit
cea3afd44c
@ -38,6 +38,8 @@ echo "Currently running $(opnsense-version) at $(date)" >> ${LOCKFILE}
|
||||
|
||||
${TEE} ${LOCKFILE} < ${PIPEFILE} &
|
||||
if opnsense-update -u > ${PIPEFILE} 2>&1; then
|
||||
/usr/local/etc/rc.syshook upgrade
|
||||
|
||||
echo '***REBOOT***' >> ${LOCKFILE}
|
||||
sleep 5
|
||||
/usr/local/etc/rc.reboot
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user