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 560e3ff commit 552bab1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions resources/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,13 @@ upstream_pkg_site_available() {
}

bootstrap_pkg() {
if [ -e /dev/iso9660 ]; then
local device_path=/dev/iso9660
elif [ -e /dev/cd0 ]; then
local device_version="$(echo "$OS_VERSION" | sed 's/\./_/')"
local device_arch="$(echo "$PKG_SITE_ARCHITECTURE" | tr '[:lower:]' '[:upper:]')"

if [ -e /dev/cd0 ]; then
local device_path=/dev/cd0
elif [ -e "/dev/iso9660/${device_version}_RELEASE_${device_arch}_BO" ]; then
local device_path="/dev/iso9660/${device_version}_RELEASE_${device_arch}_BO"
else
echo "ERROR: There is no DVD/CDROM device available to mount" >&2
exit 1
Expand Down

0 comments on commit 552bab1

Please sign in to comment.