martin f. krafft: Do not single-quote homehost in initramfs script

Martin F. Krafft madduck at alioth.debian.org
Wed Jan 27 02:02:50 UTC 2010


Module: mdadm
Branch: master
Commit: 1e6fe6ea067d0afd9365261745d343235c344476
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=1e6fe6ea067d0afd9365261745d343235c344476

Author: martin f. krafft <madduck at debian.org>
Date:   Wed Jan 27 14:06:46 2010 +1300

Do not single-quote homehost in initramfs script

Debbug: 549083
Signed-off-by: martin f. krafft <madduck at debian.org>

---

 debian/changelog                  |    1 +
 debian/initramfs/script.local-top |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 24007ad..c088f30 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,7 @@ mdadm (3.1.1-1) unstable; urgency=low
   * Update mdadd.sh (formerly /usr/share/doc/mdadm/examples/newdisk.gz) from
     Arno's website, refactoring the script into its own branch/patch
     (closes: #539103).
+  * Do not single-quote homehost in initramfs script (closes: #549083).
 
  -- martin f. krafft <madduck at debian.org>  Wed, 27 Jan 2010 10:14:25 +1300
 
diff --git a/debian/initramfs/script.local-top b/debian/initramfs/script.local-top
index 0148f24..7ef6d4f 100644
--- a/debian/initramfs/script.local-top
+++ b/debian/initramfs/script.local-top
@@ -76,8 +76,8 @@ if [ "$MD_DEVS" = all ]; then
 
   verbose && log_begin_msg "Assembling all MD arrays"
   extra_args=''
-  [ -n "${MD_HOMEHOST:-}" ] && extra_args="--homehost='$MD_HOMEHOST'"
-  if $MDADM --assemble --scan --run --auto=yes $extra_args; then
+  [ -n "${MD_HOMEHOST:-}" ] && extra_args="--homehost=$MD_HOMEHOST"
+  if $MDADM --assemble --scan --run --auto=yes${extra_args:+ $extra_args}; then
     verbose && log_success_msg "assembled all arrays."
   else
     log_failure_msg "failed to assemble all arrays."




More information about the pkg-mdadm-commits mailing list