Skip to content

Commit

Permalink
fixup! Use DVD image to bootstrap pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Feb 13, 2024
1 parent 3131100 commit cee91d9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion resources/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,17 @@ upstream_pkg_site_available() {
}

bootstrap_pkg() {
if [ -e /dev/iso9660 ]; then
local device_path=/dev/iso9660
elif [ -e /dev/cd0 ]; then
local device_path=/dev/cd0
else
echo "ERROR: There is no DVD/CDROM device available to mount" >&2
exit 1
fi

sed -i '' 's/signature_type: "fingerprints"/signature_type: "none"/' /etc/pkg/FreeBSD.conf
mount -t cd9660 /dev/cd0 /mnt
mount -t cd9660 "$device_path" /mnt
export PACKAGESITE="file:///mnt/packages/FreeBSD:$ABI_VERSION:$PKG_SITE_ARCHITECTURE"
ASSUME_ALWAYS_YES=yes pkg bootstrap
}
Expand Down

0 comments on commit cee91d9

Please sign in to comment.