Commit d0fc9787 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
target all: LC_ALL=$(SYSTEM_LOCALE)
all: systemd-user-sessions network-config
tar xf systemd-239.tar.gz
ln -s /tools/bin/true /usr/bin/xsltproc
cd systemd-239 && tar xf ../systemd-man-pages-239.tar.xz
cd systemd-239 && sed -i 's/GROUP="render", //' rules/50-udev-default.rules.in
cd systemd-239 && mkdir -p build
cd systemd-239/build && meson --prefix=/usr --sysconfdir=/etc --localstatedir=/var -Dblkid=true -Dbuildtype=release -Ddefault-dnssec=no -Dfirstboot=false -Dkill-path=/bin/kill -Dkmod-path=/bin/kmod -Dldconfig=false -Dmount-path=/bin/mount -Drootprefix= -Drootlibdir=/lib -Dsplit-usr=true -Dsulogin-path=/sbin/sulogin -Dsysusers=false -Dumount-path=/bin/umount -Db_lto=false ..
cd systemd-239/build && ninja
cd systemd-239/build && ninja install
rm -rfv /usr/lib/rpm
for tool in runlevel reboot shutdown poweroff halt telinit; do \
ln -sfv /bin/systemctl /sbin/$$tool ; \
done
ln -sfv /lib/systemd/systemd /sbin/init
rm -f /usr/bin/xsltproc
touch /etc/machine-id
chmod 444 /etc/machine-id
@echo "$$SYSTEMD_USER_SESSIONS" > /lib/systemd/systemd-user-sessions
chmod 755 /lib/systemd/systemd-user-sessions
@echo "$$NETWORK_CONFIG" > /etc/systemd/network/eth0.network
ln -sfv /lib/systemd/resolv.conf /etc/resolv.conf
tests:
ln -s /tools/bin/true /usr/bin/xsltproc
-if [[ ! "$(BUILD_OPTIONS)" =~ no-tests ]] ; then \
cd systemd-239/build ; \
ninja test ; \
fi
rm -f /usr/bin/xsltproc
-umount systemd-239/build/test/tmpfs
$(MAKE) -C .. success
rm -rf system-239
systemd-user-sessions:
define SYSTEMD_USER_SESSIONS
#!/bin/bash
rm -f /run/nologin
endef
export SYSTEMD_USER_SESSIONS
network-config:
define NETWORK_CONFIG
[Match]
Name=eth0
[Network]
DHCP=ipv4
[DHCP]
UseDomains=true
endef
export NETWORK_CONFIG
bin
/bin/.*
/usr/bin/.*
/usr/share/systemd/.*
/usr/share/factory/.*
/usr/lib/kernel/.*
/usr/lib/systemd/.*
/usr/lib/sysctl.d/.*
/usr/lib/tmpfiles.d/.*
headers
/usr/include/.*
locale
/usr/share/locale/.*
polkit
/usr/share/polkit-1/.*
zsh
/usr/share/zsh/.*
dbus
/usr/share/dbus-1/.*
bash-completion
/usr/share/bash-completion/.*
doc
/usr/share/doc/.*
man
/usr/share/man/.*
pkg
/usr/share/pkgconfig/.*
bytecode
/.*\.py[oc]
pkg
/usr/lib/pkgconfig/.*
lib
/lib/lib.*
/lib/modprobe.d/.*
/lib/systemd/.*
/lib/udev/.*
log
/var/log/.*
cache
/var/lib/systemd/.*
etc
/etc/.*
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment