Skip to content

Commit

Permalink
installer: switch installer package
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Apr 13, 2021
1 parent 10ea353 commit a08b8ec
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ CORE_COPYRIGHT_WWW?= https://www.deciso.com/
CORE_COPYRIGHT_YEARS?= 2014-2021

CORE_DEPENDS_amd64?= beep \
bsdinstaller \
suricata-devel

CORE_DEPENDS?= ${CORE_DEPENDS_${CORE_ARCH}} \
Expand All @@ -133,6 +132,7 @@ CORE_DEPENDS?= ${CORE_DEPENDS_${CORE_ARCH}} \
ntp \
openssh-portable \
openvpn \
opnsense-installer \
opnsense-lang \
opnsense-update \
pam_opnsense \
Expand Down
22 changes: 13 additions & 9 deletions src/man/man8/opnsense-installer.8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\"
.\" Copyright (c) 2018 Franco Fichtner <franco@opnsense.org>
.\" Copyright (c) 2018-2021 Franco Fichtner <franco@opnsense.org>
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
Expand All @@ -24,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd May 19, 2018
.Dd April 13, 2021
.Dt OPNSENSE-INSTALLER 8
.Os
.Sh NAME
Expand All @@ -36,22 +36,26 @@
The
.Nm
utility will launch the graphical installation process.
The installation is driven by a frontend connected to the backend
process via local socket.
.Pp
The purpose of the installer is to install the system on a target
disk using several options like UFS, ZFS, GEOM mirror, GPT, MBR, etc.
disk using UFS or ZFS.
It may also carry out tasks such as configuration import or password
recovery.
.Sh SEE ALSO
.Xr opnsense-importer 8
.Xr bsdinstall 8 ,
.Xr opnsense-importer 8 ,
.Xr opnsense-shell 8
.Sh HISTORY
The
.Nm
utility operates the historical
utility operated the historical
.Nm bsdinstaller ,
which first appeared in
.Dx .
Both projects no longer use these programs.
.Dx ,
until OPNsense 21.1.
Due to modern incompatibilities in the graphical library and missing
features it has been migrated to
.Nm bsdinstall
in OPNsense 21.7.
.Sh AUTHORS
.An Scott Ullrich Aq Mt sullrich@gmail.com
16 changes: 13 additions & 3 deletions src/sbin/opnsense-installer
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

# Copyright (c) 2014-2018 Franco Fichtner <franco@opnsense.org>
# Copyright (c) 2014-2021 Franco Fichtner <franco@opnsense.org>
# Copyright (c) 2004-2009 Scott Ullrich <sullrich@gmail.com>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -29,6 +29,10 @@ if [ "$(id -u)" != "0" ]; then
exit 1
fi

rm -f /tmp/install_complete

bsdinstaller()
{
sysctl kern.geom.debugflags=16 >/dev/null
sysctl net.link.ether.inet.log_arp_wrong_iface=0 >/dev/null

Expand All @@ -44,8 +48,6 @@ if [ -z "${TERM}" ]; then
fi
fi

rm -f /tmp/install_complete

CONFIGDIR=/usr/local/share/dfuibe_lua
CONFIGS=${CONFIGDIR}/main.lua

Expand All @@ -62,6 +64,14 @@ conscontrol mute on > /dev/null
dfuife_curses -b /usr/local/share/dfuife_curses/hourglass.txt

conscontrol mute off > /dev/null
}

# XXX compat glue for now
if [ -e /usr/libexec/bsdinstall/opnsense ]; then
bsdinstall opnsense
else
bsdinstaller
fi

if [ ! -f /tmp/install_complete ]; then
echo "The installation was aborted."
Expand Down

0 comments on commit a08b8ec

Please sign in to comment.