Skip to content

Commit

Permalink
SQUASH
Browse files Browse the repository at this point in the history
  • Loading branch information
jlduran committed Oct 15, 2024
1 parent 5be6e80 commit dff19f3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 3 additions & 0 deletions http/installerconfig
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,8 @@ echo 'vagrant' | pw usermod root -h 0
# The console is not interactive, so we might as well boot quickly
sysrc -f /boot/loader.conf autoboot_delay=-1

# Save file system type
echo "$FILESYSTEM" > /tmp/fstyp

# Reboot
shutdown -r now
18 changes: 17 additions & 1 deletion scripts/pkgbase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,23 @@ rm -f /usr/sbin/freebsd-update

# Upgrade boot partition
fetch -o /tmp https://raw.githubusercontent.com/freebsd/freebsd-src/main/tools/boot/install-boot.sh
sh /tmp/install-boot.sh
GEOM=""
if [ -e /dev/ada0 ]; then
GEOM=ada0 # ATA (VirtualBox)
fi
if [ -e /dev/da0 ]; then
GEOM=da0 # SCSI (VMWare)
fi
if [ -e /dev/vtbd0 ]; then
GEOM=vtbd0 # VirtIO (QEMU)
fi

if [ -n $GEOM ]; then
echo "$FILESYSTEM" # XXX JL
cat /tmp/fstyp # XXX JL
sh /tmp/install-boot.sh -b legacy -f 'zfs' -s gpt "$GEOM"
fi

# XXX Change root's password to vagrant (again)
# pkgbase overwrites master.passwd
echo 'vagrant' | pw usermod root -h 0

0 comments on commit dff19f3

Please sign in to comment.