Summary: | freebsd-update should use /boot/kernel.old and not kernel.old1 | ||
---|---|---|---|
Product: | Base System | Reporter: | Walter von Entferndt <walter.von.entferndt> |
Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Open --- | ||
Severity: | Affects Only Me | CC: | allanjude, emaste |
Priority: | --- | ||
Version: | 9.3-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
Walter von Entferndt
2015-03-30 22:33:34 UTC
Note that FreeBSD-update first tries kernel.old, then kernel.old1 etc.: # We could not use current directory name, so add counter to # the end and try again. CNT=$((CNT + 1)) if [ $CNT -gt 9 ]; then echo "Could not find valid backup dir ($BASEDIR/$BACKUPKERNELDIR)" exit 1 fi BACKUPKERNELDIR="`echo $BACKUPKERNELDIR | sed -Ee 's/[0-9]\$//'`" BACKUPKERNELDIR="${BACKUPKERNELDIR}${CNT}" Allan has some WIP to automatically determine the available kernel list; this problem will likely be solved with that work. |