mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add copies of pre|post upgrade script in /tmp on nanobsd images, they are used by old versions on this path. It fixes #6120
This commit is contained in:
parent
8fdddd5143
commit
7efd78c936
@ -621,6 +621,18 @@ create_nanobsd_diskimage () {
|
||||
fi
|
||||
echo 'autoboot_delay="5"' >> ${LOADERCONF}
|
||||
|
||||
# Old systems will run (pre|post)_upgrade_command from /tmp
|
||||
if [ -f ${FINAL_CHROOT_DIR}${PRODUCT_SHARE_DIR}/pre_upgrade_command ]; then
|
||||
cp -p \
|
||||
${FINAL_CHROOT_DIR}${PRODUCT_SHARE_DIR}/pre_upgrade_command \
|
||||
${FINAL_CHROOT_DIR}/tmp
|
||||
fi
|
||||
if [ -f ${FINAL_CHROOT_DIR}${PRODUCT_SHARE_DIR}/post_upgrade_command ]; then
|
||||
cp -p \
|
||||
${FINAL_CHROOT_DIR}${PRODUCT_SHARE_DIR}/post_upgrade_command \
|
||||
${FINAL_CHROOT_DIR}/tmp
|
||||
fi
|
||||
|
||||
for _NANO_MEDIASIZE in ${2}; do
|
||||
if [ -z "${_NANO_MEDIASIZE}" ]; then
|
||||
continue;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user