OPNsense Forum

English Forums => Development and Code Review => Topic started by: NOYB on December 15, 2017, 09:15:00 am

Title: core repo not mounting at bootup
Post by: NOYB 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
Title: Re: core repo not mounting at bootup
Post by: mimugmail 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

Title: Re: core repo not mounting at bootup
Post by: NOYB on December 15, 2017, 09:40:33 am
Well no I want it to be on current production.
Title: Re: core repo not mounting at bootup
Post by: franco 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
Title: Re: core repo not mounting at bootup
Post by: NOYB 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."  :)