Skip to content

Commit

Permalink
Remove large (>2GB) ISO release support
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Oct 1, 2023
1 parent de5ec2a commit 6ed7588
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
#!/usr/bin/bash

cd /repo
cd fedora-kickstarts
cp -rfv /repo/*.ks ./
cd /repo/fedora-kickstarts
cp -rfv /repo/*.ks .
sudo ksflatten -c t2linux-fedora-workstation-live.ks -o flat.ks

livemedia-creator --ks flat.ks --no-virt --resultdir /var/lmc --project Fedora-Workstation-Live-t2linux --make-iso --volid Fedora-WS-Live-t2-38-3.0.0 --iso-only --iso-name Fedora-Workstation-Live-t2linux-x86_64-38-3.0.0.iso --releasever 38

cp -rfv /var/lmc/*.iso /repo/
cd /repo

mkdir -p _output
if (( $(stat -c%s *.iso) > 199999999 )); then
mv *.iso _output/
else
split -b 2000M -x ./*.iso ./_output/Fedora-Workstation-Live-t2linux-x86_64-38-2.0.0.iso.
fi
mkdir -p _output && mv /var/lmc/*.iso _output/

0 comments on commit 6ed7588

Please sign in to comment.