Last active
May 11, 2022 12:15
-
-
Save memoryleak/d786b6bfffe6f169252d16a50a5c913c to your computer and use it in GitHub Desktop.
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
BUILD_PROJECT=Fedora | |
BUILD_VERSION=36 | |
BUILD_VARIANT=KDE | |
BUILD_ARCH=x86_64 | |
BUILD_OUTPUT_DIR=build | |
BUILD_SRC_DIR=src | |
BUILD_KICKSTART=kickstart-kde | |
BUILD_BOOT_ISO=https://mirror.datacenter.by/pub/fedoraproject.org/linux/releases/$(BUILD_VERSION)/Everything/$(BUILD_ARCH)/os/images/boot.iso | |
BUILD_NUMBER:=$(shell date +%Y-%m-%d-%H%M%S) | |
iso: | |
sudo rm -rf $(BUILD_OUTPUT_DIR)/result | |
sudo livemedia-creator \ | |
--vnc vnc=:0 \ | |
--make-iso \ | |
--iso $(BUILD_OUTPUT_DIR)/boot.iso \ | |
--iso-only \ | |
--iso-name $(BUILD_PROJECT)-$(BUILD_VERSION)-$(BUILD_VARIANT)-Live-$(BUILD_NUMBER).iso \ | |
--ks $(BUILD_OUTPUT_DIR)/flat-$(BUILD_KICKSTART).ks \ | |
--logfile $(BUILD_OUTPUT_DIR)/log/livemedia.log \ | |
--tmp $(BUILD_OUTPUT_DIR)/tmp \ | |
--resultdir $(BUILD_OUTPUT_DIR)/result \ | |
--macboot \ | |
--fs-label $(BUILD_PROJECT)-$(BUILD_VERSION)-$(BUILD_VARIANT)-Live \ | |
--ram 4096 \ | |
--vcpus 2 \ | |
--project $(BUILD_PROJECT) \ | |
--releasever $(BUILD_VERSION) \ | |
--volid $(BUILD_PROJECT)-$(BUILD_VERSION)-$(BUILD_VARIANT)-Live | |
boot-iso: | |
# wget -nc -q $(BUILD_BOOT_ISO) -O boot.iso | |
aria2c -x10 -j10 $(BUILD_BOOT_ISO) -o $(BUILD_OUTPUT_DIR)/boot.iso | |
kickstart: | |
ksflatten -c $(BUILD_SRC_DIR)/$(BUILD_KICKSTART).ks -o $(BUILD_OUTPUT_DIR)/flat-$(BUILD_KICKSTART).ks | |
patch $(BUILD_OUTPUT_DIR)/flat-$(BUILD_KICKSTART).ks $(BUILD_SRC_DIR)/patches/01-change-partsize.patch | |
ksvalidator $(BUILD_OUTPUT_DIR)/flat-$(BUILD_KICKSTART).ks | |
clean: | |
sudo rm -rf $(BUILD_OUTPUT_DIR)/ | |
mkdir -p $(BUILD_OUTPUT_DIR)/{tmp,log,tmpdir} | |
all: clean kickstart iso |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment