Skip to contentSkip to conversation

mdadm: install mdcheck

PATCH ChenQi 1 participant 1 message Jan 26, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

ChenQi

author
#1 lore raw

Please ignore this patch, it will cause qa error for mdadm-ptest. I'll send out V2.

Quoted 77 lines · Chen Qi

This script is used in mdcheck_xxx.service files. So we need to install it. Also, as it requires bash, we add bash to RDEPENDS.

---
  .../files/0001-Makefile-install-mdcheck.patch | 30 +++++++++++++++++++
  meta/recipes-extended/mdadm/mdadm_4.2.bb      |  4 ++-
  2 files changed, 33 insertions(+), 1 deletion(-)

create mode 100644 meta/recipes-extended/mdadm/files/0001-Makefile-install-mdcheck.patch

meta/recipes-extended/mdadm/files/0001-Makefile-install-mdcheck.patch new file +30 -0
new file mode 100644
index 0000000000..3f76ef54d8
@@ -0,0 +1,30 @@
+From 97e776724ab9763c5bca9816370bb1635b7a8232 Mon Sep 17 00:00:00 2001
+From: Chen Qi <[email protected]>
+Date: Tue, 25 Jan 2022 16:25:01 +0800
+Subject: [PATCH] Makefile: install mdcheck
+
+The mdcheck_xxx.service files use mdcheck, but it's not installed.
+We need to install this script.
+
+Upstream-Status: Submitted [Sent patch to maintainer]
+
+Signed-off-by: Chen Qi <[email protected]>
+---
+ Makefile | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile b/Makefile
+index 2a51d813..db40c7fd 100644
+--- a/Makefile
++++ b/Makefile
+@@ -303,6 +303,7 @@ install-systemd: systemd/[email protected]
+ install-bin: mdadm mdmon
+ 	$(INSTALL) -D $(STRIP) -m 755 mdadm $(DESTDIR)$(BINDIR)/mdadm
+ 	$(INSTALL) -D $(STRIP) -m 755 mdmon $(DESTDIR)$(BINDIR)/mdmon
++	$(INSTALL) -D -m 755 misc/mdcheck $(DESTDIR)/usr/share/mdadm/mdcheck
+
+ uninstall:
+ 	rm -f $(DESTDIR)$(MAN8DIR)/mdadm.8 $(DESTDIR)$(MAN8DIR)/mdmon.8 $(DESTDIR)$(MAN4DIR)/md.4 $(DESTDIR)$(MAN5DIR)/mdadm.conf.5 $(DESTDIR)$(BINDIR)/mdadm
+--
+2.17.1
+
meta/recipes-extended/mdadm/mdadm_4.2.bb +3 -2
index fa51364283..4e477bd260 100644
@@ -22,6 +22,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \
             file://0001-mdadm-add-option-y-for-use-syslog-to-recive-event-re.patch \
             file://include_sysmacros.patch \
             file://0001-mdadm-skip-test-11spare-migration.patch \
+           file://0001-Makefile-install-mdcheck.patch \
             "
 
  SRC_URI[sha256sum] = "461c215670864bb74a4d1a3620684aa2b2f8296dffa06743f26dda5557acf01d"
@@ -92,7 +93,8 @@ do_install_ptest() {
  	done
  }
 
-RDEPENDS:${PN}-ptest += "bash e2fsprogs-mke2fs"
+RDEPENDS:${PN} += "bash"
+RDEPENDS:${PN}-ptest += "e2fsprogs-mke2fs"
  RRECOMMENDS:${PN}-ptest += " \
      coreutils \
      util-linux \
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#160913): https://lists.openembedded.org/g/openembedded-core/message/160913
Mute This Topic: https://lists.openembedded.org/mt/88667847/3618072
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-