dracut/dracut-010-devmapper_silent.patch

12 lines
525 B
Diff

diff -Nru dracut-010.orig//dracut-functions dracut-010/dracut-functions
--- dracut-010.orig//dracut-functions 2011-03-31 19:50:31.000000000 +0200
+++ dracut-010/dracut-functions 2011-06-02 20:20:35.858288574 +0200
@@ -190,6 +190,7 @@
# but you cannot create the logical volume without the volume group.
# And the volume group might be bigger than the devices the LV needs.
check_vol_slaves() {
+ [ -d /dev/mapper ] && \
for i in /dev/mapper/*; do
lv=$(get_numeric_dev $i)
if [[ $lv = $2 ]]; then