Skip to content

Commit

Permalink
grub: shrink image to 1.5gb
Browse files Browse the repository at this point in the history
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
  • Loading branch information
AuxXxilium committed Sep 19, 2024
1 parent b4ede7e commit ee7200e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/grub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ jobs:
run: |
. scripts/grub.sh "grub-2.12" "i386-pc i386-efi x86_64-efi"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: grub
path: |
grub.img.gz
- name: Check and Push
if: success() && inputs.push == true
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/grub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ done
popd

rm -f grub.img
dd if=/dev/zero of=grub.img bs=1M seek=2048 count=0
dd if=/dev/zero of=grub.img bs=1M seek=1536 count=0
echo -e "n\np\n1\n\n+50M\nn\np\n2\n\n+100M\nn\np\n3\n\n\na\n1\nw\nq\n" | fdisk grub.img
fdisk -l grub.img

Expand Down

0 comments on commit ee7200e

Please sign in to comment.