mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
use makefiles
This commit is contained in:
parent
7e1143c0a5
commit
8b9e474a67
6 changed files with 65 additions and 34 deletions
27
Makefile
Normal file
27
Makefile
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
arch = "x86_64"
|
||||
version = "39"
|
||||
base_dir = $(shell pwd)
|
||||
image_repo = "ghcr.io/ublue-os"
|
||||
image_name = "base-main"
|
||||
|
||||
deploy.iso: boot.iso xorriso/input.txt $(image_name)-$(version)
|
||||
xorriso -dialog on < xorriso/input.txt
|
||||
|
||||
boot.iso: lorax_templates/set_installer.tmpl
|
||||
lorax -p Fedora -v $(version) -r $(version) -t Server \
|
||||
--isfinal --buildarch=$(arch) --volid=Fedora-S-dvd-$(arch)-$(version) \
|
||||
--macboot --noupgrade \
|
||||
--repo /etc/yum.repos.d/fedora.repo \
|
||||
--repo /etc/yum.repos.d/fedora-updates.repo \
|
||||
--add-template $(base_dir)/lorax_templates/set_installer.tmpl \
|
||||
--rootfs-size 2 \
|
||||
./results/
|
||||
mv results/images/boot.iso $(base_dir)/
|
||||
|
||||
$(image_name)-$(version):
|
||||
podman pull $(image_repo)/$(image_name):$(version)
|
||||
podman save --format oci-dir -o $(image_name)-$(version) $(image_repo)/$(image_name):$(version)
|
||||
podman rmi $(image_repo/$(image_name):$(version)
|
||||
|
||||
install-deps:
|
||||
dnf install -y lorax xorriso podman git rpm-ostree
|
||||
Loading…
Add table
Add a link
Reference in a new issue