Skip to content

Commit

Permalink
fixed hardcoded download URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
geek-at committed Feb 9, 2024
1 parent cc13116 commit e635066
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/make_usb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ jobs:
- name: Create USB Image
run: |
sudo apt-get install grub-efi-amd64 parted kpartx
chmod +x ./create-usb-image.sh
sudo ./create-usb-image.sh ${{ github.event.release.tag_name }}
sudo ./create-usb-image.sh "https://github.com/${{github.repository}}/releases/download/${{ github.event.release.tag_name }}"
- name: Release
uses: softprops/action-gh-release@v1
Expand Down
12 changes: 6 additions & 6 deletions create-usb-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

set -e

targetrelease=$1
dl_url=$1

if [ -z "$targetrelease" ]; then
echo "Usage: $0 <release>"
echo "Example: $0 20231208"
if [ -z "$dl_url" ]; then
echo "Usage: $0 <base URL for downloading bzImage and init.xz>"
echo "Example: $0 https://github.com/fogproject/fos/releases/download/20231208"
exit 1
fi

Expand Down Expand Up @@ -35,8 +35,8 @@ echo Install GRUB
grub-install --removable --no-nvram --no-uefi-secure-boot --efi-directory=/mnt --boot-directory=/mnt/boot --target=x86_64-efi

echo Download the FOG kernels and inits
wget -P /mnt/boot/ https://github.com/geek-at/fos/releases/download/$targetrelease/bzImage
wget -P /mnt/boot/ https://github.com/geek-at/fos/releases/download/$targetrelease/init.xz
wget -P /mnt/boot/ ${dl_url}/bzImage
wget -P /mnt/boot/ ${dl_url}/init.xz
wget -P /mnt/boot/ https://github.com/FOGProject/fogproject/blob/dev-branch/packages/web/service/ipxe/memdisk
wget -P /mnt/boot/ https://github.com/FOGProject/fogproject/blob/dev-branch/packages/web/service/ipxe/memtest.bin
wget -P /mnt/boot/ https://github.com/FOGProject/fogproject/blob/dev-branch/packages/tftp/ipxe.krn
Expand Down

0 comments on commit e635066

Please sign in to comment.