Quote from: franco on April 09, 2026, 08:19:06 AMDo you want to try a PR in update.git?Sure, I can have a stab.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: franco on April 09, 2026, 08:19:06 AMDo you want to try a PR in update.git?Sure, I can have a stab.
Quote from: franco on April 08, 2026, 02:48:18 PMWe could make opnsense-update a bit more helpful by adding a check if the origin is there (and script minimal recovery with it)?Sounds fair. Maybe even an early check for file locks on config.xml in opnsense-revert so it can bail before that becomes an issue?
Quote from: franco on April 08, 2026, 10:57:01 AMWe have a few spots already... yet... installing a package will render both OPNsense.conf and FreeBSD.conf so where do the files get lost except when the core package is gone (which is vital so pkg isn't supposed to remove it).
Quote from: franco on April 08, 2026, 10:11:40 AM3. We forcefully disable FreeBSD repo since a few years on firmware configure. We can't avoid user console fiddling with that neither, but at least preserve the integrity the system still has after the fact.I guess what I am trying to do is have a failsafe where the script aborts in between /usr/local/etc/pkg/repos/FreeBSD.conf being removed during the script's process (so the disable override is gone), and refresh.sh re-copying back the sample confs. Without that failsafe, the disable override isn't there when opnsense-revert or an update is run again, and so the system falls back to using /etc/pkg/FreeBSD.conf. This is what happened in my case. When I re-ran opnsense-revert after the first abort, I received an error about package conflicts (can't recall the exact message), and was prompted to reinstall/upgrade pkg. Not realising that this was because the FreeBSD repo was being used, I did that, and this led to my troubles.
--- a/src/revert/opnsense-revert.sh
+++ b/src/revert/opnsense-revert.sh
@@ -30,6 +30,24 @@ if [ "$(id -u)" != "0" ]; then
exit 1
fi
+REPOSDIR="/usr/local/etc/pkg/repos"
+
+recovery()
+{
+ if [ -f "${WORKPREFIX}/.recovery" ]; then
+ # post-install scripts may not have completed;
+ # attempt full reconfiguration first, fall back
+ # to restoring repo defaults if config.xml is
+ # not accessible (e.g. held by another process)
+ if ! timeout 30 /usr/local/etc/rc.configure_firmware; then
+ for CONF in $(find ${REPOSDIR} -name '*.conf.sample'); do
+ cp ${CONF} ${CONF%.sample}
+ done
+ fi
+ rm -f "${WORKPREFIX}/.recovery"
+ fi
+}
+
+trap recovery EXIT
+
WORKPREFIX="/tmp/opnsense-revert"
WORKDIR=${WORKPREFIX}/${$}
PKG="pkg-static"
@@ -93,6 +111,8 @@ done
for PACKAGE in ${@}; do
# reset automatic, vital as per package metadata
AUTOMATIC="1"
+
+ touch "${WORKPREFIX}/.recovery"
if [ -n "${COREPKG}" -a "$(echo "${COREDEP}" | grep -c ${PACKAGE})" != "0" ]; then
Quote from: nero355 on March 28, 2026, 12:09:43 AMThe expanded view ofcourse :)
Quote from: nero355 on March 27, 2026, 11:18:39 PMQuote from: Greelan on March 27, 2026, 09:41:38 PMI don't see how that could be sensibly changed. Only leaf menu items (Users in this case) actually have a page associated with them, the parent menu items are just group headings. So there is nothing opening them in a new tab is actually able to show, hence the behaviour.I can't say for 100% sure, but I am pretty sure that it can be done, however I am not a webdeveloper so I could be horribly wrong! :)
Quote from: nero355 on March 27, 2026, 03:32:13 PMExample :
- System
-- Access
--- Users
Only Users can be opened in a New Tab ;)
Mouse/Touchpad Middle Click or CTRL+Click = Open link in New Tab.
Quote from: sopex8260 on March 27, 2026, 12:41:07 PMIn my opinion, the biggest problem with the menu is that you can "middle click" to nothing. If you have not reached the last level of the menu with the actual settings...
Quote from: sopex8260 on March 27, 2026, 12:41:07 PMDisabling automatic menu collapsing in my mind would quickly lead to a monstrosity.