-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove large (>2GB) ISO release support
- Loading branch information
1 parent
de5ec2a
commit 6ed7588
Showing
1 changed file
with
3 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |