]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
mdraid: also accept ID_FS_UUID for rd.md.uuid
authorHarald Hoyer <harald@redhat.com>
Thu, 23 Oct 2014 12:37:02 +0000 (14:37 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 23 Oct 2014 12:37:02 +0000 (14:37 +0200)
As blkid also reports MD_UUID as ID_FS_UUID, although in slightly
different format, accept it also.

modules.d/90mdraid/parse-md.sh

index 98f9e9f68ea1c39422402ba4b6515d912c2edcb1..7a3e87ab7700f1cfc6f93ae97c64a85b691aa02a 100755 (executable)
@@ -15,6 +15,7 @@ else
                     printf 'IMPORT{program}="/sbin/mdadm --examine --export $tempnode"\n'
                     for uuid in $MD_UUID; do
                         printf 'ENV{MD_UUID}=="%s", GOTO="md_uuid_ok"\n' $uuid
+                        printf 'ENV{ID_FS_UUID}=="%s", GOTO="md_uuid_ok"\n' $uuid
                     done;
                     printf 'GOTO="md_end"\n'
                     printf 'LABEL="md_uuid_ok"\n'