From e57c56b6a8f02a4d222bd85d4e9a029cfef05716 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 20 Jun 2023 07:44:08 +0200 Subject: [PATCH] mxraid: Remove relict development files --- mxraid/README | 37 ----------------------------- mxraid/run_mxmount_after_raid.patch | 9 ------- mxraid/test_install.sh | 33 ------------------------- 3 files changed, 79 deletions(-) delete mode 100644 mxraid/README delete mode 100644 mxraid/run_mxmount_after_raid.patch delete mode 100755 mxraid/test_install.sh diff --git a/mxraid/README b/mxraid/README deleted file mode 100644 index 54d74d3..0000000 --- a/mxraid/README +++ /dev/null @@ -1,37 +0,0 @@ ---- aus einer mail -To: Peter Marquardt -From: Thomas Kreitler -Subject: mdadm.conf, kleiner ist besser :) -Date: Tue, 26 Sep 2017 17:03:10 +0200 ---- - -Hi, - -mit etwas probieren hab' ich die wohl 'minimalste' mdadm-config gefunden. - - -Vorher: --=-=-=-=-=-= schnipp =-=-=-=-=-=- -# /etc/local/mdadm/M0000.conf: -# config file for 'M0000', to be processed with: -# mdadm -A /dev/md0 -c /etc/local/mdadm/M0000.conf - -DEVICE /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi - -ARRAY /dev/md0 name=deadbird.molgen.mpg.de:M0000 metadata=1.2 level=raid6 num-devices=8 - -devices=/dev/sdb,/dev/sdc,/dev/sdd,/dev/sde,/dev/sdf,/dev/sdg,/dev/sdh,/dev/sdi --=-=-=-=-=-= schnipp =-=-=-=-=-=- - - -Nacher: --=-=-=-=-=-= schnipp =-=-=-=-=-=- -ARRAY /dev/md0 devices=/dev/sdb,/dev/sdc,/dev/sdd,/dev/sde,/dev/sdf,/dev/sdg,/dev/sdh,/dev/sdi --=-=-=-=-=-= schnipp =-=-=-=-=-=- - -leider geht kein: - - cat some.conf | mdadm -c- - - - diff --git a/mxraid/run_mxmount_after_raid.patch b/mxraid/run_mxmount_after_raid.patch deleted file mode 100644 index dc8e428..0000000 --- a/mxraid/run_mxmount_after_raid.patch +++ /dev/null @@ -1,9 +0,0 @@ ---- devel_mxmount/mxmount.service.old 2016-08-23 13:23:14.000000000 +0200 -+++ devel_mxmount/mxmount.service 2017-09-20 14:21:41.876330617 +0200 -@@ -1,5 +1,6 @@ - [Unit] - Description=MX mount local data filessystems -+After=mxraid.startup.service - ConditionPathExists=/etc/mxmounts - - [Service] diff --git a/mxraid/test_install.sh b/mxraid/test_install.sh deleted file mode 100755 index 6c5d1f4..0000000 --- a/mxraid/test_install.sh +++ /dev/null @@ -1,33 +0,0 @@ -#! /bin/sh - -# Script to *test* installation of mxraid related parts on a host. -# This is *not* the regular install script. - -function die() { echo $1; exit; } - -[ "$UID" != "0" ] && die 'must be root' - -cp -v mxraid /usr/sbin -cp -v mxraid_assemble /usr/sbin - -# systemd units -cp -v mxraid.startup.service /etc/systemd/system -cp -v mxraid.shutdown.service /etc/systemd/system - -# phase 1, keep mxmounts ability to assemble, because mxraid is still declawed -# # 'fix' mxmount -# sed -i -e '/mdadm --assemble/ s/system/# system/' /usr/bin/mxmount - -# adjust mxmount unit, this will be done 'correctly' in mxmount after testing - -if ! grep -q mxraid.startup.service /etc/systemd/system/mxmount.service ; then - CWD=`pwd` - ( - cd /etc/systemd/system - cat $CWD/run_mxmount_after_raid.patch | patch -p1 --verbose - ) -fi - -# this must be done manually after the real install -systemctl enable mxraid.startup.service -systemctl enable mxraid.shutdown.service