Remove stratis module
It is obsolete. An approach which does not start the daemon is being worked on. Signed-off-by: mulhern <amulhern@redhat.com>master
parent
f7e924c577
commit
fe761330e5
|
@ -366,7 +366,6 @@ install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kerne
|
||||||
%{dracutlibdir}/modules.d/90mdraid
|
%{dracutlibdir}/modules.d/90mdraid
|
||||||
%{dracutlibdir}/modules.d/90multipath
|
%{dracutlibdir}/modules.d/90multipath
|
||||||
%{dracutlibdir}/modules.d/90nvdimm
|
%{dracutlibdir}/modules.d/90nvdimm
|
||||||
%{dracutlibdir}/modules.d/90stratis
|
|
||||||
%{dracutlibdir}/modules.d/90ppcmac
|
%{dracutlibdir}/modules.d/90ppcmac
|
||||||
%{dracutlibdir}/modules.d/90qemu
|
%{dracutlibdir}/modules.d/90qemu
|
||||||
%{dracutlibdir}/modules.d/91crypt-gpg
|
%{dracutlibdir}/modules.d/91crypt-gpg
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
||||||
|
|
|
@ -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
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
stratisd-init --debug > /dev/kmsg 2>&1 &
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
[ -f /lib/dracut-lib.sh ] && . /lib/dracut-lib.sh
|
|
||||||
|
|
||||||
pid=$(pidof stratisd-init)
|
|
||||||
[ -n "$pid" ] && kill ${pid}
|
|
Loading…
Reference in New Issue