aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-01-06 14:47:04 -0500
committerBill Nottingham <notting@redhat.com>2012-03-09 13:09:33 -0500
commit08a23c4f7c4e3b0c2fe42f926b7bc0536461697d (patch)
tree7d23cae7b5d9f273920f8f347084dd248e2a090f /systemd
parent59a9d2b792ff218f5ccd8e4e8c0ffe6f76efb13a (diff)
downloadinitscripts-08a23c4f7c4e3b0c2fe42f926b7bc0536461697d.tar
initscripts-08a23c4f7c4e3b0c2fe42f926b7bc0536461697d.tar.gz
initscripts-08a23c4f7c4e3b0c2fe42f926b7bc0536461697d.tar.bz2
initscripts-08a23c4f7c4e3b0c2fe42f926b7bc0536461697d.tar.xz
initscripts-08a23c4f7c4e3b0c2fe42f926b7bc0536461697d.zip
Handle dmraid sets with spaces (#728795, <lnykryn@redhat.com>)
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/fedora-storage-init3
1 files changed, 3 insertions, 0 deletions
diff --git a/systemd/fedora-storage-init b/systemd/fedora-storage-init
index 66ba6a82..565d8111 100755
--- a/systemd/fedora-storage-init
+++ b/systemd/fedora-storage-init
@@ -19,6 +19,8 @@ if ! strstr "$cmdline" nodmraid && [ -x /sbin/dmraid ]; then
modprobe dm-mirror >/dev/null 2>&1
dmraidsets=$(LC_ALL=C /sbin/dmraid -s -c -i)
if [ "$?" = "0" ]; then
+ SAVEIFS=$IFS
+ IFS=$(echo -en "\n\b")
for dmname in $dmraidsets; do
if [[ "$dmname" == isw_* ]] && \
! strstr "$cmdline" noiswmd; then
@@ -27,6 +29,7 @@ if ! strstr "$cmdline" nodmraid && [ -x /sbin/dmraid ]; then
/sbin/dmraid -ay -i --rm_partitions -p "$dmname" >/dev/null 2>&1
/sbin/kpartx -u -a -p p "/dev/mapper/$dmname"
done
+ IFS=$SAVEIFS
fi
fi