Project

General

Profile

Bug #7345 ยป pfSense-upgrade.patch.txt

Andrew Hotlab, 03/02/2017 05:33 PM

 
1
--- pfSense-upgrade	2017-03-02 18:25:54.000000000 +0100
2
+++ pfSense-upgrade	2017-03-03 00:29:07.772639000 +0100
3
@@ -717,6 +717,7 @@
4
 
5
 	# Make sure resolv.conf is present, otherwise upgrade may fail (bug #6557)
6
 	local _resolv_conf=$(readlink -f /etc/resolv.conf)
7
+	_exec "unlink ${chroot_dir}/etc/resolv.conf" mute ignore_result
8
 	_exec "cp -f ${_resolv_conf} ${chroot_dir}/etc/resolv.conf" \
9
 		"Copying resolv.conf to upgrade partition" mute ignore_result
    (1-1/1)