mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Make sure resolv.conf is present during nanobsd upgrade. Fixes #6557
This commit is contained in:
parent
e558102464
commit
5fac13aafd
@ -549,6 +549,9 @@ setup_nanobsd_env() {
|
||||
_exec "/sbin/fsck -y -t ufs /dev/${_update_partition}" "Testing duplicated partition integrity" mute
|
||||
_exec "mount /dev/${_update_partition} ${chroot_dir}" "Mounting second partition to run upgrade" mute
|
||||
|
||||
# Make sure resolv.conf is present, otherwise upgrade may fail (bug #6557)
|
||||
_exec "cp -f /etc/resolv.conf ${chroot_dir}/etc" "Copying resolv.conf to upgrade partition" mute
|
||||
|
||||
sed -i '' -e "s,^${_cur_partition},/dev/${_update_partition}," \
|
||||
${chroot_dir}/etc/fstab
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user