Create SES firmware update sentinels

This commit is contained in:
themylogin
2020-08-21 15:10:11 +02:00
parent 7770e7f5e3
commit b6da811fdf

View File

@@ -27,6 +27,7 @@ post-install =
/usr/bin/touch /boot/kernel/linker.hints
/usr/bin/touch /boot/modules/linker.hints
/usr/bin/touch /data/.hba_firmware_update
/usr/bin/touch /data/.ses_firmware_update
post-upgrade =
has_alembic=$(echo "SELECT name FROM sqlite_master WHERE name = 'alembic_version'" | sqlite3 /data/freenas-v1.db)
@@ -54,6 +55,7 @@ post-upgrade =
/usr/bin/touch /boot/kernel/linker.hints
/usr/bin/touch /boot/modules/linker.hints
/usr/bin/touch /data/.hba_firmware_update
/usr/bin/touch /data/.ses_firmware_update
if [ -c /dev/null ]; then
for disk in $(sysctl -n kern.disks); do
if gpart show ${disk} | grep -q freebsd-boot; then