Project

General

Profile

« Previous | Next » 

Revision 0e40454d

Added by Renato Botelho about 10 years ago

Keep a copy of old mtree binary during upgrade and use it to avoid crashing. Fixes #4563

View differences:

tmp/post_upgrade_command
31 31

  
32 32
# Fixup permissions on installed files
33 33
if [ -f ${ROOT}etc/installed_filesystem.mtree ]; then
34
	/usr/sbin/mtree -U -e -q -f ${ROOT}etc/installed_filesystem.mtree -p ${ROOT} > /conf/mtree.log
34
	if [ -x "/tmp/mtree.old" ]; then
35
		MTREE_BIN=/tmp/mtree.old
36
	else
37
		MTREE_BIN=/usr/sbin/mtree
38
	fi
39
	${MTREE_BIN} -U -e -q -f ${ROOT}etc/installed_filesystem.mtree -p ${ROOT} > /conf/mtree.log
35 40
fi
36 41

  
37 42
# Make sure to preserve existing time zone

Also available in: Unified diff