Hi d-i folks, I am doing some serious maintenance on mdadm and am about to release a new version, which will deprecate /sbin/mdrun. Here's a patch against the latest d-i SVN checkout, which should replace all the mdrun stuff with appropriate mdadm calls. I would appreciate if someone could whack together an image with this patch and mdadm-udeb from experimental. I'll give it a spin, and anyone else would be very welcome. 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 -- Please do not send copies of list mail to me; I read the list! .''`. martin f. krafft <madduck@debian.org> : :' : proud Debian developer and author: http://debiansystem.info `. `'` `- Debian - when you have better things to do than fixing a system my other computer is your windows box.
Attachment:
signature.asc
Description: Digital signature (GPG/PGP)