Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-502

Using genkernel-3.4.40.1 and initramfs it is not possible to boot funtoo with root on software raid because mdadm is not found

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None

      genkernel-3.4.40.1 (and older versions) generates an initramfs where the command mdadm is under /sbin/sbin/mdadm. It is not possible to boot the system with root on a raid system because mdadm will not be found.

      The following patch will fix the problem:

      --- gen_initramfs.sh.ORG        2013-03-20 23:04:03.179945673 +0100
      +++ gen_initramfs.sh    2013-04-14 18:06:08.863337445 +0200
      @@ -320,7 +320,7 @@
                       && [ -e '/sbin/mdmon' ] && LC_ALL="C" ldd /sbin/mdmon | grep -q 'not a dynamic executable'
                       then
                               print_info 1 '          MDADM: Adding support (using local static binaries /sbin/mdadm and /sbin/mdmon)...'
      -                        copy_binaries "${TEMP}/initramfs-mdadm-temp/sbin" /sbin/{mdadm,mdmon} || gen_die 'Could not copy over mdadm!'
      +                        copy_binaries "${TEMP}/initramfs-mdadm-temp" /sbin/{mdadm,mdmon} || gen_die 'Could not copy over mdadm!'
                       else
                               gen_die "Could not find /sbin/mdadm or /sbin/mdmon for initramfs"
                       fi
      
      

      Do you need any further information? I have added the patch as a file.

      Matthias

            drobbins drobbins
            matboe Matthias Boerner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: