615967
From 2fe454f21b6b3890b02f52810a662530ec019968 Mon Sep 17 00:00:00 2001
615967
From: mulhern <amulhern@redhat.com>
615967
Date: Wed, 19 Aug 2020 11:11:14 -0400
615967
Subject: [PATCH] Remove stratis module
615967
615967
It is obsolete. An approach which does not start the daemon is being worked
615967
on.
615967
615967
Signed-off-by: mulhern <amulhern@redhat.com>
615967
(cherry picked from commit fe761330e5db60f19f0ab2d937ea71a5b2438656)
615967
615967
Cherry-picked from: fe761330e5db60f19f0ab2d937ea71a5b2438656
615967
Resolves: #1950572
615967
---
615967
 dracut.spec                               |  1 -
615967
 modules.d/90stratis/module-setup.sh       | 33 -------------------------------
615967
 modules.d/90stratis/stratisd-init.service | 15 --------------
615967
 modules.d/90stratis/stratisd-start.sh     |  3 ---
615967
 modules.d/90stratis/stratisd-stop.sh      |  6 ------
615967
 5 files changed, 58 deletions(-)
615967
615967
diff --git a/dracut.spec b/dracut.spec
615967
index fa3e4b99..dcaafa61 100644
615967
--- a/dracut.spec
615967
+++ b/dracut.spec
615967
@@ -365,7 +365,6 @@ install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kerne
615967
 %{dracutlibdir}/modules.d/90lvm
615967
 %{dracutlibdir}/modules.d/90mdraid
615967
 %{dracutlibdir}/modules.d/90multipath
615967
-%{dracutlibdir}/modules.d/90stratis
615967
 %{dracutlibdir}/modules.d/90qemu
615967
 %{dracutlibdir}/modules.d/91crypt-gpg
615967
 %{dracutlibdir}/modules.d/91crypt-loop
615967
diff --git a/modules.d/90stratis/module-setup.sh b/modules.d/90stratis/module-setup.sh
615967
deleted file mode 100755
615967
index 943f572e..00000000
615967
--- a/modules.d/90stratis/module-setup.sh
615967
+++ /dev/null
615967
@@ -1,33 +0,0 @@
615967
-#!/bin/bash
615967
-
615967
-# called by dracut
615967
-check() {
615967
-    require_binaries stratisd-init thin_check thin_repair mkfs.xfs xfs_admin xfs_growfs || return 1
615967
-    return 255
615967
-}
615967
-
615967
-# called by dracut
615967
-depends() {
615967
-    echo dm
615967
-    return 0
615967
-}
615967
-
615967
-# called by dracut
615967
-installkernel() {
615967
-    instmods xfs
615967
-}
615967
-
615967
-# called by dracut
615967
-install() {
615967
-
615967
-    inst_multiple stratisd-init thin_check thin_repair mkfs.xfs xfs_admin xfs_growfs
615967
-
615967
-    if dracut_module_included "systemd"; then
615967
-        inst_simple "${moddir}/stratisd-init.service" "${systemdsystemunitdir}/stratisd-init.service"
615967
-        systemctl -q --root "$initdir" enable stratisd-init.service
615967
-    else
615967
-        inst_hook cmdline 25 "$moddir/stratisd-start.sh"
615967
-        inst_hook cleanup 25 "$moddir/stratisd-stop.sh"
615967
-    fi
615967
-}
615967
-
615967
diff --git a/modules.d/90stratis/stratisd-init.service b/modules.d/90stratis/stratisd-init.service
615967
deleted file mode 100644
615967
index 318e8c27..00000000
615967
--- a/modules.d/90stratis/stratisd-init.service
615967
+++ /dev/null
615967
@@ -1,15 +0,0 @@
615967
-[Unit]
615967
-Description=A daemon that manages a pool of block devices to create flexible file systems
615967
-Documentation=man:stratisd(8)
615967
-Before=local-fs-pre.target
615967
-DefaultDependencies=no
615967
-
615967
-[Service]
615967
-Type=simple
615967
-ExecStart=/sbin/stratisd-init --debug
615967
-KillSignal=SIGINT
615967
-StandardOutput=syslog
615967
-StandardError=syslog
615967
-
615967
-[Install]
615967
-WantedBy=sysinit.target
615967
diff --git a/modules.d/90stratis/stratisd-start.sh b/modules.d/90stratis/stratisd-start.sh
615967
deleted file mode 100755
615967
index afcd81fd..00000000
615967
--- a/modules.d/90stratis/stratisd-start.sh
615967
+++ /dev/null
615967
@@ -1,3 +0,0 @@
615967
-#!/bin/sh
615967
-
615967
-stratisd-init --debug > /dev/kmsg 2>&1 &
615967
\ No newline at end of file
615967
diff --git a/modules.d/90stratis/stratisd-stop.sh b/modules.d/90stratis/stratisd-stop.sh
615967
deleted file mode 100755
615967
index f394a843..00000000
615967
--- a/modules.d/90stratis/stratisd-stop.sh
615967
+++ /dev/null
615967
@@ -1,6 +0,0 @@
615967
-#!/bin/sh
615967
-
615967
-[ -f /lib/dracut-lib.sh ] && . /lib/dracut-lib.sh
615967
-
615967
-pid=$(pidof stratisd-init)
615967
-[ -n "$pid" ] && kill ${pid}
ab92d3