]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-live: depend on dm module
authorHarald Hoyer <harald@redhat.com>
Thu, 8 Jul 2010 14:14:55 +0000 (16:14 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 8 Jul 2010 14:14:55 +0000 (16:14 +0200)
modules.d/90dmsquash-live/check

index 54e5007207c522cdb18753b80dcc53c3d4197d44..ae7306e09802a269f671395d784970926f6b3e8b 100755 (executable)
@@ -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