diff --git a/.gitignore b/.gitignore index 9e0d10e..9111384 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ chkconfig ntsysv po/*.mo .vscode/ +build/** diff --git a/Makefile b/Makefile index 99f9166..95ae1b4 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,6 @@ CFLAGS = -g -Wall $(RPM_OPT_FLAGS) -D_GNU_SOURCE LDFLAGS += -g MAN = chkconfig.8 ntsysv.8 alternatives.8 PROG = chkconfig -BINDIR = /sbin SBINDIR = /usr/sbin MANDIR = /usr/man ALTDIR = /var/lib/alternatives @@ -51,7 +50,6 @@ clean: rm -f chkconfig-*.tar.gz *~ *.old install: - [ -d $(DESTDIR)/$(BINDIR) ] || mkdir -p $(DESTDIR)/$(BINDIR) [ -d $(DESTDIR)/$(SBINDIR) ] || mkdir -p $(DESTDIR)/$(SBINDIR) [ -d $(DESTDIR)/$(MANDIR) ] || mkdir -p $(DESTDIR)/$(MANDIR) [ -d $(DESTDIR)/$(MANDIR)/man8 ] || mkdir -p $(DESTDIR)/$(MANDIR)/man8 diff --git a/mkosi.build.chroot b/mkosi.build.chroot new file mode 100755 index 0000000..d32259a --- /dev/null +++ b/mkosi.build.chroot @@ -0,0 +1,7 @@ +#!/bin/bash +set -e + +make clean +make +make check +make install diff --git a/mkosi.conf b/mkosi.conf new file mode 100644 index 0000000..e631851 --- /dev/null +++ b/mkosi.conf @@ -0,0 +1,29 @@ +[Distribution] +@Distribution=fedora +@Release=40 + +[Output] +@OutputDirectory=build/mkosi.output +@BuildDirectory=build/mkosi.builddir +@CacheDirectory=build/mkosi.cache + +[Content] +Bootable=yes +Autologin=yes +Packages=systemd + systemd-boot + kernel + initscripts + +BuildPackages=beakerlib + gcc + gettext + libselinux-devel + make + newt-devel + systemd + systemd-udev + popt-devel + +[Host] + ToolsTreeDistribution=fedora