[SOLVED] Can't upgrade freshly installed nano 15.7 to 15.7.7 on ALIX

Started by mircsicz, August 10, 2015, 01:32:07 PM

Previous topic - Next topic
Hello,

Please note that it doesn't seem t o work (ie rc.syshook not launched at startup).

Per you instructions I've created a symlink called mymount.early in /usr/local/etc/rc.syshook.d
Launching /usr/local/etc/rc.syshook.d/mymount.early from command line works, but when booting the alix the mounts are not done and I have no error messages in /var/log/system.log.

Credentials are the following :
-rwxr-xr-x   1 root     wheel     1912 Jan 18 10:59 rc.syshook
drwxr-xr-x   2 root     wheel      512 Jan 13 20:57 rc.syshook.d

and
/usr/local/etc/rc.syshook.d:
total 4
drwxr-xr-x   2 root  wheel   512 Jan 13 20:57 .
drwxr-xr-x  27 root  wheel  3584 Jan 23 09:38 ..
lrwxr-xr-x   1 root  wheel    29 Jan 13 20:57 mymount.early -> /root/var_cache_pkg_by_FXL.sh

and content of the batch file is :
mkdir -p /var/cache/pkg
fsck -y -t ufs /dev/da0p1
mount /dev/da0p1 /var/cache/pkg
mkdir -p /tmp/opnsense-update
fsck -y -t ufs /dev/da0p2
mount /dev/da0p2 /tmp/opnsense-update

If have an idea of the problem that would be very helpfull.

Best regards.

Quote from: gpac on January 23, 2016, 10:13:57 AM
lrwxr-xr-x   1 root  wheel    29 Jan 13 20:57 mymount.early -> /root/var_cache_pkg_by_FXL.sh

It only accepts a file, move /root/var_cache_pkg_by_FXL.sh to /usr/local/etc/rc.syshook.d/mymount.early

(A link could be a directory as well.)