Added a symlink for device-mapper stuff. This should resolve both bug #142775 and...
authorChris Gianelloni <wolf31o2@gentoo.org>
Thu, 14 Sep 2006 18:20:11 +0000 (18:20 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Thu, 14 Sep 2006 18:20:11 +0000 (18:20 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@441 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/initrd.scripts

index 9dfbdb2faedf7bfbfa7c8b60261e6f629b894f40..bd22ad43e3550d5426233a23847d671e9f17d188 100644 (file)
@@ -487,6 +487,14 @@ chooseKeymap() {
 
 startVolumes() {
        #good_msg 'Checking if volumes need to be started...'
+
+       # Here, we check for /dev/device-mapper, and if it exists, we setup a
+       # a symlink, which should hopefully fix bug #142775 and bug #147015
+       if [ -e /dev/device-mapper ]
+       then
+               mkdir -p /dev/mapper
+               ln -sf /dev/device-mapper /dev/mapper/control
+       fi
        
        if [ "${USE_DMRAID_NORMAL}" -eq '1' ]
        then