mgahagan / rpms / dracut

Forked from rpms/dracut 6 years ago
Clone
Blob Blame History Raw
From 1658b392d7988c685f875ae885c795196c0cb14f Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Thu, 8 Jul 2010 16:14:55 +0200
Subject: [PATCH] dmsquash-live: depend on dm module

---
 modules.d/90dmsquash-live/check |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules.d/90dmsquash-live/check b/modules.d/90dmsquash-live/check
index 54e5007..ae7306e 100755
--- a/modules.d/90dmsquash-live/check
+++ b/modules.d/90dmsquash-live/check
@@ -2,7 +2,10 @@
 
 # if dmsetup is not installed, then we cannot support fedora/red hat 
 # style live images
-which dmsetup >/dev/null 2>&1 || exit 1
+if [ "$1" = "-d" ]; then
+    echo dm
+    exit 0
+fi
 
 # a live host-only image doesn't really make a lot of sense
 if [ "$1" = "-h" ] ; then