sysupgrade script diff for people with small /home

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

sysupgrade script diff for people with small /home

Jiri B-3
Hi,

see $subj, some people have so small /home and currently sysupgrade
doesn't like symlink to bigger partition. (I know that bad symlink can
make it explode.)

--- /usr/sbin/sysupgrade.orig   Mon Aug 12 19:07:11 2019
+++ /usr/sbin/sysupgrade        Mon Aug 12 18:51:28 2019
@@ -119,6 +119,7 @@ else
 fi

 if [[ -e ${SETSDIR} ]]; then
+       [[ -h ${SETSDIR} ]] && SETSDIR=$(readlink -f $SETSDIR)
        eval $(stat -s ${SETSDIR})
        [[ $st_uid -eq 0 ]] ||
                 ug_err "${SETSDIR} needs to be owned by root:wheel"

j.