]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Remove stratis module
authormulhern <amulhern@redhat.com>
Wed, 19 Aug 2020 15:11:14 +0000 (11:11 -0400)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 20 Aug 2020 16:39:44 +0000 (18:39 +0200)
It is obsolete. An approach which does not start the daemon is being worked
on.

Signed-off-by: mulhern <amulhern@redhat.com>
dracut.spec
modules.d/90stratis/module-setup.sh [deleted file]
modules.d/90stratis/stratisd-init.service [deleted file]
modules.d/90stratis/stratisd-start.sh [deleted file]
modules.d/90stratis/stratisd-stop.sh [deleted file]

index 872c21cf3647639938c82b1b97c5c4d6413f7fca..b1891a2fef8a5362efbd7b4f7b0434b756f31065 100644 (file)
@@ -366,7 +366,6 @@ install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kerne
 %{dracutlibdir}/modules.d/90mdraid
 %{dracutlibdir}/modules.d/90multipath
 %{dracutlibdir}/modules.d/90nvdimm
-%{dracutlibdir}/modules.d/90stratis
 %{dracutlibdir}/modules.d/90ppcmac
 %{dracutlibdir}/modules.d/90qemu
 %{dracutlibdir}/modules.d/91crypt-gpg
diff --git a/modules.d/90stratis/module-setup.sh b/modules.d/90stratis/module-setup.sh
deleted file mode 100755 (executable)
index e13000b..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-
-# called by dracut
-check() {
-    require_binaries stratisd-init thin_check thin_repair mkfs.xfs xfs_admin xfs_growfs || return 1
-    return 255
-}
-
-# called by dracut
-depends() {
-    echo dm
-    return 0
-}
-
-# called by dracut
-installkernel() {
-    instmods xfs
-}
-
-# called by dracut
-install() {
-
-    inst_multiple stratisd-init thin_check thin_repair mkfs.xfs xfs_admin xfs_growfs
-
-    if dracut_module_included "systemd"; then
-        inst_simple "${moddir}/stratisd-init.service" "${systemdsystemunitdir}/stratisd-init.service"
-        systemctl -q --root "$initdir" enable stratisd-init.service
-    else
-        inst_hook pre-mount 25 "$moddir/stratisd-start.sh"
-        inst_hook cleanup 25 "$moddir/stratisd-stop.sh"
-    fi
-}
-
diff --git a/modules.d/90stratis/stratisd-init.service b/modules.d/90stratis/stratisd-init.service
deleted file mode 100644 (file)
index 1be2e33..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-Description=A daemon that manages a pool of block devices to create flexible file systems
-Documentation=man:stratisd(8)
-Before=local-fs-pre.target
-DefaultDependencies=no
-
-[Service]
-Type=simple
-ExecStart=/sbin/stratisd-init --debug
-KillSignal=SIGINT
-
-[Install]
-WantedBy=sysinit.target
diff --git a/modules.d/90stratis/stratisd-start.sh b/modules.d/90stratis/stratisd-start.sh
deleted file mode 100755 (executable)
index afcd81f..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-stratisd-init --debug > /dev/kmsg 2>&1 &
\ No newline at end of file
diff --git a/modules.d/90stratis/stratisd-stop.sh b/modules.d/90stratis/stratisd-stop.sh
deleted file mode 100755 (executable)
index f394a84..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-[ -f /lib/dracut-lib.sh ] && . /lib/dracut-lib.sh
-
-pid=$(pidof stratisd-init)
-[ -n "$pid" ] && kill ${pid}