OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 15.7 Legacy Series »
  • [SOLVED] Can't upgrade freshly installed nano 15.7 to 15.7.7 on ALIX
« previous next »
  • Print
Pages: 1 2 [3]

Author Topic: [SOLVED] Can't upgrade freshly installed nano 15.7 to 15.7.7 on ALIX  (Read 19147 times)

gpac

  • Newbie
  • *
  • Posts: 21
  • Karma: 1
    • View Profile
Re: [SOLVED] Can't upgrade freshly installed nano 15.7 to 15.7.7 on ALIX
« Reply #30 on: January 23, 2016, 10:13:57 am »
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.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 12773
  • Karma: 1094
    • View Profile
Re: [SOLVED] Can't upgrade freshly installed nano 15.7 to 15.7.7 on ALIX
« Reply #31 on: January 23, 2016, 07:16:08 pm »
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.)
Logged

  • Print
Pages: 1 2 [3]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 15.7 Legacy Series »
  • [SOLVED] Can't upgrade freshly installed nano 15.7 to 15.7.7 on ALIX
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2022 All rights reserved
  • SMF 2.0.18 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2