Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mkosi #127

Merged
merged 2 commits into from
Jul 30, 2024
Merged

Mkosi #127

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ chkconfig
ntsysv
po/*.mo
.vscode/
build/**
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions mkosi.build.chroot
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

make clean
make
make check
make install
29 changes: 29 additions & 0 deletions mkosi.conf
Original file line number Diff line number Diff line change
@@ -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