118 Commits

Author SHA1 Message Date
Franco Fichtner
4cef794d42 installer: find all possible configs and include them
Sooner or later we will remove custom configs and this is in the
way of simply zapping a file by statically including it.
2018-12-28 08:05:52 +01:00
Franco Fichtner
60ccde58af importer: wrong language 2018-12-27 18:23:09 +01:00
Franco Fichtner
0b551b34d3 importer: make current zpool visible, but immune to import
This is for consistency with hard disk device visibility as it
could be mounted / active.  While here, stop cleaning up MNT as
it is only a directory in /tmp that should cause issues...
2018-12-27 18:19:06 +01:00
Franco Fichtner
c95c82cb87 firmware: rework opnsense-version again 2018-11-29 08:22:50 +00:00
Franco Fichtner
7f4f0821eb firmware: to ease transition sanitise version 2018-11-28 13:51:13 +00:00
Franco Fichtner
d37a1410c8 firmware: support architecture as well 2018-11-28 13:45:25 +00:00
Franco Fichtner
43b513ec7b firmware: fixup previous, we parsed twice 2018-11-28 09:38:54 +00:00
Franco Fichtner
0eb1f10095 firmware: rename "opnsense" version file to "core"
We already have "kernel" and "base" and plugins also follow this
pattern by only registering its name once per devel or release
version.  This kills ambiguity for "opnsense" vs. "opnsense-version"
and makes it more branding friendly.  Suffice to say "core", "kernel"
and "base" are reserved names and also align with tools.git.
2018-11-28 09:30:09 +01:00
Franco Fichtner
4e5d3b6ccc firmware: usual whitepsace noise 2018-11-28 09:16:09 +01:00
Franco Fichtner
16088285d8 firmware: allow size or version read from other components 2018-11-28 09:15:00 +01:00
Franco Fichtner
245401492b importer: make clear that /conf/config.xml is required 2018-11-20 18:44:02 +01:00
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