Tried to commit a trivial patch, but apparently I am not allowed to: lapse:d-i/packages/mdcfg> svn commit -m'only write mdadm.conf by mdcfg if not already present' Sending finish-install Transmitting file data .svn: Commit failed (details follow): svn: Can't create directory '/svn/d-i/db/transactions/39515-1.txn': Permission denied Anyway, here's the patch. Rationale: mdadm postinst already creates mdadm.conf, and does it a little better. =================================================================== --- packages/mdcfg/finish-install (revision 39515) +++ packages/mdcfg/finish-install (working copy) @@ -1,6 +1,6 @@ #!/bin/sh CF=/target/etc/mdadm/mdadm.conf -if [ -e /proc/mdstat ] && grep ^md /proc/mdstat >/dev/null; then +if [ ! -s $CF ] && [ -e /proc/mdstat ] && grep ^md /proc/mdstat >/dev/null; then mkdir -p /target/etc/mdadm echo "# Autogenerated by mdcfg. See mdadm.conf(5) for more details on this file." > /etc/mdadm.conf echo "DEVICE partitions" >> $CF -- 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 "life moves pretty fast. if you don't stop and look around once in awhile, you could miss it." -- ferris bueller
Attachment:
signature.asc
Description: Digital signature (GPG/PGP)