diff --git a/_servicedata b/_servicedata
index 380f67b..69e14ef 100644
--- a/_servicedata
+++ b/_servicedata
@@ -1,5 +1,5 @@
https://github.com/openSUSE/microos-tools.git
- 7d23be033a4701998eabd3f1dadea01afce2c910
+ 2415b7e4e235ea0cba7fd94fe6f9114c4cd3b752
\ No newline at end of file
diff --git a/microos-tools-2.21+git16.obscpio b/microos-tools-2.21+git16.obscpio
deleted file mode 100644
index 2bacc61..0000000
--- a/microos-tools-2.21+git16.obscpio
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:107811947ac08fa386bdc3750b109c1510afabad4c940b5319da65a9b5073e5a
-size 52235
diff --git a/microos-tools-4.0.obscpio b/microos-tools-4.0.obscpio
new file mode 100644
index 0000000..7d79870
--- /dev/null
+++ b/microos-tools-4.0.obscpio
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8660b6f8c5934b16e68877b75cea1fbfebca6a3a77420e2753b750ab42113a90
+size 61451
diff --git a/microos-tools.changes b/microos-tools.changes
index 7391078..3bef96e 100644
--- a/microos-tools.changes
+++ b/microos-tools.changes
@@ -1,3 +1,16 @@
+-------------------------------------------------------------------
+Mon Oct 07 13:51:51 UTC 2024 - Fabian Vogt
+
+- Update to version 4.0:
+ * Release version 4.0
+ * Have the autorelabel hook propagate failure from relabelling
+ * Split SELinux relabelling code into separate package
+ * Make 98selinux-microos usable on non-transactional systems
+ * selinux-autorelabel-generator: Don't hardcode mountpoints
+ * Consistently use tabs in selinux-autorelabel-generator
+ * Add automated testing of SELinux relabelling functionality
+ * Fix OBS workflow for pushes to master
+
-------------------------------------------------------------------
Wed Sep 25 13:13:28 UTC 2024 - Fabian Vogt
diff --git a/microos-tools.obsinfo b/microos-tools.obsinfo
index b83277d..c7cb424 100644
--- a/microos-tools.obsinfo
+++ b/microos-tools.obsinfo
@@ -1,4 +1,4 @@
name: microos-tools
-version: 2.21+git16
-mtime: 1727267231
-commit: 7d23be033a4701998eabd3f1dadea01afce2c910
+version: 4.0
+mtime: 1728308724
+commit: 2415b7e4e235ea0cba7fd94fe6f9114c4cd3b752
diff --git a/microos-tools.spec b/microos-tools.spec
index fa6a3d0..8a52dd9 100644
--- a/microos-tools.spec
+++ b/microos-tools.spec
@@ -19,7 +19,7 @@
%{!?_distconfdir: %global _distconfdir %{_prefix}%{_sysconfdir}}
Name: microos-tools
-Version: 2.21+git16
+Version: 4.0
Release: 0
Summary: Files and Scripts for openSUSE MicroOS
License: GPL-2.0-or-later
@@ -33,12 +33,22 @@ BuildRequires: pkgconfig(dracut)
BuildRequires: pkgconfig(rpm)
BuildRequires: pkgconfig(systemd)
Requires: read-only-root-fs
+Requires: selinux-autorelabel = %{version}
# for man-online
Requires: mandoc-bin
%description
Files, scripts and directories for openSUSE MicroOS.
+%package -n selinux-autorelabel
+Summary: Automatic SELinux relabelling during early boot
+Requires: /usr/bin/findmnt
+Requires: policycoreutils
+
+%description -n selinux-autorelabel
+This package contains a dracut module and systemd generator for relabelling
+the system during early boot.
+
%package -n microos-devel-tools
Summary: Tools to develop MicroOS
@@ -86,7 +96,6 @@ This package contains tools to make developing of MicroOS easier.
%service_del_postun microos-ro.service
%files
-%license COPYING
%dir %{_sysconfdir}/selinux
%config %{_sysconfdir}/selinux/fixfiles_exclude_dirs
%{_unitdir}/printenv.service
@@ -98,12 +107,15 @@ This package contains tools to make developing of MicroOS easier.
%dir %{_distconfdir}/tukit.conf.d
%{_distconfdir}/tukit.conf.d/salt-tukit.conf
%{_sbindir}/setup-systemd-proxy-env
+%{_bindir}/man-online
+%{_distconfdir}/profile.d/man-online.sh
+
+%files -n selinux-autorelabel
+%license COPYING
%dir %{_prefix}/lib/dracut
%dir %{_prefix}/lib/dracut/modules.d
%{_prefix}/lib/dracut/modules.d/98selinux-microos
%{_systemdgeneratordir}/selinux-autorelabel-generator
-%{_bindir}/man-online
-%{_distconfdir}/profile.d/man-online.sh
%files -n microos-devel-tools
%{_unitdir}/microos-ro.service