aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Karbowski <jabberuser@gmail.com>2016-02-21 07:43:48 +0100
committerPiotr Karbowski <jabberuser@gmail.com>2016-02-21 07:43:48 +0100
commit470b0d97eec92970c3035164a130b2a169894250 (patch)
tree014a71175978473f9dacb40466de49ec0747c036
parentMerge remote-tracking branch 'zx2c4/master' into devel (diff)
parentDo not die with RAID (diff)
downloadbetter-initramfs-470b0d97eec92970c3035164a130b2a169894250.tar.xz
better-initramfs-470b0d97eec92970c3035164a130b2a169894250.zip
Merge pull request #36 from zx2c4/devel
Do not die with RAID
-rwxr-xr-xsourceroot/functions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sourceroot/functions.sh b/sourceroot/functions.sh
index 3666883..a11b296 100755
--- a/sourceroot/functions.sh
+++ b/sourceroot/functions.sh
@@ -118,8 +118,8 @@ populate_dev_disk_by_label_and_uuid() {
vars="${blkid_output#*:}"
eval "${vars}"
- [ "${LABEL}" ] && run ln -s "../../${block_device}" "/dev/disk/by-label/${LABEL}"
- [ "${UUID}" ] && run ln -s "../../${block_device}" "/dev/disk/by-uuid/${UUID}"
+ [ "${LABEL}" ] && run ln -sf "../../${block_device}" "/dev/disk/by-label/${LABEL}"
+ [ "${UUID}" ] && run ln -sf "../../${block_device}" "/dev/disk/by-uuid/${UUID}"
done
}