107 Commits

Author SHA1 Message Date
Franco Fichtner
a7dbe83957 version: improved crypto flavour reading
product_flavour is embedded in the release package but the
package itself does not insist on a particular flavour other
than having knowledge about the flavour the package was
built for originally.  This is ok and direct crypto deps
seem to have failed to produce reliable upgrade / sidegrade
results in recent tests anyway.

Long story short: find out the real crypto flavour installed
from the OpenSSL binary or fall back to the metadata if said
binary cannot be found.
2018-09-26 20:30:45 +02:00
Franco Fichtner
ba7163a01b rc: last optimisation pass for opnsense-version 2018-09-17 07:50:33 +02:00
Franco Fichtner
d7a6e9c8bb rc: tweak opnsense-version to return custom string combinations 2018-09-17 07:49:47 +02:00
Franco Fichtner
8fcda9f8aa firmware: make firmware-upgrade the version file 2018-09-16 23:15:55 +02:00
Franco Fichtner
0cf4fe5e38 rc: hello opnsense-version! 2018-09-16 23:07:21 +02:00
Franco Fichtner
f811f9723f rc: explicity tell to unload
Otherwise we try to unload when it's there.  Logic was
correct but -b assumtion was incorrect as we do not touch
drivers there or require any pool listing.
2018-09-08 12:06:54 +02:00
Franco Fichtner
51d324013e importer: loop until successful or otherwise aborted
DO_DEV aborts directly after the attempt.  DO_BOOT takes priority.
2018-09-08 11:58:23 +02:00
Franco Fichtner
7745e25236 rc: actually parse -z option 2018-09-08 11:00:40 +02:00
Franco Fichtner
32596c4485 rc: work on importer to simplify and list ZFS pools as stand-alone 2018-09-08 10:04:43 +02:00
Franco Fichtner
2935f5689a importer: tweak previous, first pass
/dev/zfs/pool does not exist so we can do a "zfs/pool" input
in alignment with gmirror and graid inputs.  Move the probing
after zfs load to be able to unload again also.
2018-09-02 17:16:11 +02:00
Alexey Prokopchuk
1ca7c0081d Added probe and list for ZFS pools in opnsense-importer 2018-09-02 16:44:40 +02:00
Alexey Prokopchuk
e07927fbe2 Added probe for ZFS pool on partition 2018-09-02 16:44:40 +02:00
Franco Fichtner
8fe31c997d installer: keep typewriter end of sentence style for nostalgic reasons 2018-07-18 14:10:50 +02:00
stilez
bcb11c9682 After install, give basic tip that GUI IP can be set in console
If the user's existing subnet isn't 192.168.1.1/xx, then telling the user to use this IP will fail. So tell the user how to set a different IP after reboot, rather than just telling them to use an IP that won't work for them.

Kept short this time - 1 line only :)

Also edited wording re certificate, to be clearer about this as well, by starting with what they will actually see (*"Your browser may..."* rather than *"You might need to..."*). Added just 1 line there as well. 

Sorry for these - hopefully not overdoing it. (I'm a fan of making life fun for newcomers, and install is where newcomers first see if a thing works for them!) Perhaps they can be squashed down to save text space.  If so please do.
2018-07-18 14:06:27 +02:00
Franco Fichtner
e5cdce79a1 shell: move banner to top like it used to
Discussed with a number of people over the years.
2018-07-06 20:31:22 +00:00
Franco Fichtner
dc3df43a97 importer: clear DEV after use always 2018-07-04 17:05:14 +02:00
Franco Fichtner
c72b50a7a9 importer: simplify the loop 2018-07-04 16:44:16 +02:00
Franco Fichtner
faa2663e60 importer: it's complicated... 2018-07-04 16:33:50 +02:00
Franco Fichtner
8e57dfd58c installer: minor hiccup in setup 2018-07-04 16:23:35 +02:00
Franco Fichtner
8102296a90 importer: loop as long as mount is not successful 2018-07-04 15:40:32 +02:00
Franco Fichtner
c425bcd601 rc: whitespace issue in previous 2018-06-26 09:57:24 +02:00
Franco Fichtner
eb95e8f53e rc: allow config import from plain MSDOS drives; closes #1372
For now we only import on demand, but we could make this more automatic
in the near future as this proves to be useful.
2018-06-26 09:52:52 +02:00
Franco Fichtner
185d8fab90 rc: do not leak banner.php script location 2018-06-10 20:00:23 +00:00
Franco Fichtner
4e7b97cc39 rc: small carp audit, we should merge both scripts and use $type in devd 2018-06-07 11:30:39 +02:00
Franco Fichtner
635640ce4d rc: zfs tools are terrible for scripting 2018-05-28 09:10:20 +02:00
Franco Fichtner
3e94dd72e9 rc: zfs, zpool, confusion 2018-05-28 08:54:17 +02:00
Franco Fichtner
52d55ff5a3 rc: small tweaks 2018-05-28 08:40:57 +02:00
Franco Fichtner
426acedf52 rc: small tweak for clarity 2018-05-28 07:51:15 +02:00
Franco Fichtner
d893558687 rc: ZFS importer bits
For now only trigger on an explicit "zpool" input, because
otherwise we have to load ZFS earlier to probe for a particular
pool.  There is no nice way to list all pools available for
input, at least not in a single, script friendly line per pool.

PR: https://github.com/opnsense/bsdinstaller/issues/12
2018-05-28 07:47:22 +02:00
Franco Fichtner
7d14f2d8ee rc: opnsense-recover is now known as opnsense-shell #1966
Merge the purpose of these scripts now that we can execute other
commands using the shell menu trampoline.
2018-05-27 12:14:04 +02:00
Franco Fichtner
ac50d3e203 rc: modify the shell even more 2018-05-26 22:28:09 +02:00
Franco Fichtner
15ec336b0f rc: parse '-c', it's passed to the shell by sudo
The funny thing is su -m foobar -c "sh -c '$cmd'" could be as
short as su -m foobar -s /bin/sh -c "$cmd" but why bother selecting
a shell when you need to rely on a proper root shell to be set?
2018-05-26 08:51:05 +00:00
Franco Fichtner
57148f483a rc: remove unused variable 2018-05-20 09:11:24 +00:00
Franco Fichtner
68ac728d1f rc: gmirror/graid import was never broken
Simply list the devices that are available.  ;)
2018-05-19 21:04:12 +02:00
Franco Fichtner
2a14dd88ce rc: opnsense-importer [disk] is for installer
This will dedup the code and make the installer lighter!
2018-05-19 18:00:04 +00:00
Franco Fichtner
d12a594608 rc: parse arguments for our shell, harmless!? 2018-05-19 17:39:58 +00:00
Franco Fichtner
ef61ac3ed7 rc: different approach for tty detection 2018-05-19 16:18:59 +02:00
Franco Fichtner
272a5b8b41 rc: rc.initital is now opnsense-shell 2018-05-19 15:23:36 +02:00
Franco Fichtner
242912aa6d rc: increase both keypress timeouts slightly 2018-05-19 09:44:19 +02:00
Franco Fichtner
4ac26c6286 rc: merge rc.importer into opnsense-importer
Hooray for cleanups.  Let's try to thin out the rc.* files more.
2018-05-18 23:39:33 +02:00
Franco Fichtner
655f8ea573 installer: ifconfig knows this is 127.0.0.1/8
While here, also register ::1 -- it's only polite.
2018-05-18 19:48:15 +02:00
Franco Fichtner
fc0c0478b5 rc: bring in additions to start the installer early again
People ask for this sporadically, so we should weave this back
in a way that doesn't break the ncurses view and properly sets
up loopback when needed this early.
2018-05-18 19:42:35 +02:00
Franco Fichtner
9df08987b7 rc: merge rc.installer into opnsense-installer
We have successfully decoupled rc.installer from other components
so now we can merge both utilities.  We use opnsense-installer for
user support, which is easier to invoke and remember.
2018-05-18 19:42:34 +02:00
Franco Fichtner
00838b49ce src: move dhclient-script to proper location
".ext" came to be because dhclient-script from BSD is also under sbin/,
but since we always explicity use this one just move it to a neutral
location and point to it.
2018-05-06 14:32:06 +02:00
Franco Fichtner
d13da15cb1 system: move password policy settings to local database server edit #1929
A few review spots and regression fixes as well.
2018-05-01 13:44:38 +00:00
Franco Fichtner
b78654eb98 system: remove authmode_fallback, allow multiple authmode #1929
Simplifies and alignes the code, although that is a backwards-
incompatible change that should never have happened.  Still a
few things to do and extensive testing.
2018-04-29 19:00:14 +00:00
Franco Fichtner
12d161cb6d interfaces: that's why we have named variables 2018-03-21 19:37:28 +01:00
Franco Fichtner
a458aec929 plugins: remove spurious rc.plugins_configure
Prodded by: @adschellevis
2018-03-20 11:05:58 +01:00
Franco Fichtner
64057c136f interfaces: pppoe link down improvements 2018-03-04 10:43:40 +00:00
Franco Fichtner
d03799b312 interfaces: fix "route change", obsoleted a long time ago 2018-01-10 18:28:02 +01:00