summaryrefslogtreecommitdiffstats
path: root/src/VBox/Main/UnattendedTemplates/freebsd_installer.cfg
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:49:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:49:04 +0000
commit16f504a9dca3fe3b70568f67b7d41241ae485288 (patch)
treec60f36ada0496ba928b7161059ba5ab1ab224f9d /src/VBox/Main/UnattendedTemplates/freebsd_installer.cfg
parentInitial commit. (diff)
downloadvirtualbox-16f504a9dca3fe3b70568f67b7d41241ae485288.tar.xz
virtualbox-16f504a9dca3fe3b70568f67b7d41241ae485288.zip
Adding upstream version 7.0.6-dfsg.upstream/7.0.6-dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/VBox/Main/UnattendedTemplates/freebsd_installer.cfg')
-rw-r--r--src/VBox/Main/UnattendedTemplates/freebsd_installer.cfg30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/VBox/Main/UnattendedTemplates/freebsd_installer.cfg b/src/VBox/Main/UnattendedTemplates/freebsd_installer.cfg
new file mode 100644
index 00000000..06c3b97b
--- /dev/null
+++ b/src/VBox/Main/UnattendedTemplates/freebsd_installer.cfg
@@ -0,0 +1,30 @@
+### Partitioning
+PARTITIONS=ada0
+
+### Distribution files to install
+DISTRIBUTIONS="kernel.txz base.txz"
+
+################userad
+# Begin post installation modifications
+################
+#!/bin/sh
+
+# Set up Networking
+sysrc ifconfig_em0=DHCP
+sysrc sshd_enable=YES
+
+# Set Time Zone
+/bin/cp /usr/share/zoneinfo/UTC /etc/localtime
+/usr/bin/touch /etc/wall_cmos_clock
+/sbin/adjkerntz -a
+/usr/sbin/ntpdate -u 0.pool.ntp.org
+
+#Set Default Root Password
+echo @@VBOX_INSERT_ROOT_PASSWORD_SH@@|pw usermod root -h 0
+
+#Add configured user
+echo @@VBOX_INSERT_USER_PASSWORD_SH@@|pw useradd -c @@VBOX_INSERT_USER_FULL_NAME@@ -n @@VBOX_INSERT_USER_LOGIN_SH@@ -m -u 1001 -G wheel -s csh -h 0
+
+#Reboot System
+reboot
+