OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • core repo not mounting at bootup
« previous next »
  • Print
Pages: [1]

Author Topic: core repo not mounting at bootup  (Read 3418 times)

NOYB

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 6
    • View Profile
core repo not mounting at bootup
« on: December 15, 2017, 09:15:00 am »
According to the documentation is sounds like after cloning core reop into /root/core that it should mount automatically during bootup.  But it is not happening.

It can be manually mounted and unmounted and seems to work as expected.  But it doesn't mount at boot up.

There must be a catch. ??
Or am I misunderstanding how it is supposed to work?

17.7.10 in VirtualBox 5.2.2
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: core repo not mounting at bootup
« Reply #1 on: December 15, 2017, 09:33:32 am »
Hi,

if you want to make it persistant on devel you probably want to try via CLI:

opnsense-update -t opnsense-devel
opnsense-update -L (lock to 18.1)

To switch back just:

opnsense-update -t opnsense

Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

NOYB

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 6
    • View Profile
Re: core repo not mounting at bootup
« Reply #2 on: December 15, 2017, 09:40:33 am »
Well no I want it to be on current production.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1616
    • View Profile
Re: core repo not mounting at bootup
« Reply #3 on: December 15, 2017, 09:58:43 am »
Hi there,

This was deprecated a long time ago. "make mount" and "make umount" still work because Ad likes to work with it (wink), but I recommend "make upgrade" to properly install the changes prior to reboot. This is free of side-effects and kernel panics unlike the old auto-live-mount trick.

https://github.com/opnsense/core/commit/80a70ffe054

/root/core also changed to /usr/core subsequently to align with the directories used in the tools.

The dev workflow boils down to:

# opnsense-code core
# cd /usr/core
(your modifications)
# make upgrade

I'll fix the workflow doc for 18.1. It was written in 2015 and needs attention for sure. Thanks for bringing that up.


Cheers,
Franco
Logged

NOYB

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 6
    • View Profile
Re: core repo not mounting at bootup
« Reply #4 on: December 15, 2017, 10:23:24 am »
Well the mount method is kind of slick.  Having repo changes instantly in the GUI.  Can understand why Ad  likes to work with it.

Thanks for letting me know it's depreciated.  Now I can stop beating my head against that cold stone wall.

I'll go off and look into the make upgrade method.

Look forward to the updated documentation.
Once saw a plaque on a bathroom wall; "No job is finished until the paper work is done."  :)
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • core repo not mounting at bootup
 

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