Bug#369748: please use mdadm, not mdrun
martin f krafft
madduck at debian.org
Thu Jun 1 00:50:20 UTC 2006
Package: mdcfg
Version: 1.14
Severity: wishlist
Tags: patch
Please stop using mdrun and use mdadm instead. mdrun will be removed
in a future release. The following (untested) patch should work. You
can use either of mdadm 2.4.1-2/unstable or 2.5-1/experimental for
testing.
Index: packages/mdcfg/mdcfg.sh
===================================================================
--- packages/mdcfg/mdcfg.sh (revision 37707)
+++ packages/mdcfg/mdcfg.sh (working copy)
@@ -484,7 +484,8 @@
mkdir -p /dev/md
# Try to detect MD devices, and start them
-mdrun
+mdadm --examine --scan --config=partitions > /tmp/mdadm.conf
+mdadm --assemble --scan --config=/tmp/mdadm.conf --auto=yes
# Make sure that we have md-support
if [ ! -e /proc/mdstat ]; then
Index: packages/rescue/debian/rescue-mode.postinst
===================================================================
--- packages/rescue/debian/rescue-mode.postinst (revision 37707)
+++ packages/rescue/debian/rescue-mode.postinst (working copy)
@@ -28,7 +28,8 @@
try_load_module raid0
try_load_module raid1
try_load_module raid5
-log-output -t rescue mdrun || true
+mdadm --examine --scan --config=partitions > /tmp/mdadm.conf || true
+log-output -t rescue mdadm --assemble --scan --config=/tmp/mdadm.conf --auto=yes || true
# LVM support
try_load_module dm-mod
Index: packages/rootskel/src/lib/debian-installer-startup.d/S02udev-fixup
===================================================================
--- packages/rootskel/src/lib/debian-installer-startup.d/S02udev-fixup (revision 37707)
+++ packages/rootskel/src/lib/debian-installer-startup.d/S02udev-fixup (working copy)
@@ -1,6 +1,8 @@
# This is S02udev-fixup because udev-udeb already installs S02udev.
if type udevd >/dev/null 2>&1; then
# needed to make some programs (e.g. mdrun) behave correctly
+ # this used to say mdrun, but mdrun has been deprecated. do we still
+ # need it?
mkdir -p /.dev
mount -o bind /dev /.dev
fi
Index: packages/partman/partman-md/init.d/md
===================================================================
--- packages/partman/partman-md/init.d/md (revision 37707)
+++ packages/partman/partman-md/init.d/md (working copy)
@@ -10,7 +10,8 @@
#modprobe raid1 1>/dev/null 2>&1
#
## Detect and start MD devices
-#/sbin/mdrun
+#/sbin/mdadm --examine --scan --config=partitions > /tmp/mdadm.conf
+#/sbin/mdadm --assemble --scan --config=/tmp/mdadm.conf --auto=yes
# Mark all RAID partitions as being MD
for dev in /var/lib/partman/devices/*; do
-- System Information:
Debian Release: testing/unstable
APT prefers stable
APT policy: (700, 'stable'), (600, 'testing'), (98, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
--
Please do not send copies of list mail to me; I read the list!
.''`. martin f. krafft <madduck at debian.org>
: :' : proud Debian developer and author: http://debiansystem.info
`. `'`
`- Debian - when you have better things to do than fixing a system
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (GPG/PGP)
Url : http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20060601/773a3008/attachment.pgp
More information about the pkg-mdadm-devel
mailing list