aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/fedora-storage-init
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-01-06 14:47:04 -0500
committerBill Nottingham <notting@redhat.com>2012-01-06 14:47:04 -0500
commit7414b9457fba61af86b0756a37bc994d079bc621 (patch)
tree6a5ae26de69bd26b33a457070b8f35e3e4e1d04f /systemd/fedora-storage-init
parent893d37b3ed9d273653c38a4749a7d7d2ed8996ad (diff)
downloadinitscripts-7414b9457fba61af86b0756a37bc994d079bc621.tar
initscripts-7414b9457fba61af86b0756a37bc994d079bc621.tar.gz
initscripts-7414b9457fba61af86b0756a37bc994d079bc621.tar.bz2
initscripts-7414b9457fba61af86b0756a37bc994d079bc621.tar.xz
initscripts-7414b9457fba61af86b0756a37bc994d079bc621.zip
Handle dmraid sets with spaces (#728795, <lnykryn@redhat.com>)
Diffstat (limited to 'systemd/fedora-storage-init')
-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