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

initramfs with problems [ sys-kernel/genkernel-3.4.40.7-r1 ] the system don't boot

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Normal Normal
    • None
    • None

      I have compiled with genkernel the gentoo-sources-3.13.1 but the system don't boot.

      There is a problem in the generated "initramfs" that include a busybox that go in Segmentation fault when mount the filesystem.

      Running "busybox mount" on the uncompressed initramfs:

       # ./busybox mount 
      Segmentation fault
      

      The workaround to reboot the system is:

      1) uncompress initramfs
      2) compile a static busybox in local.
      3) Substitute the busybox included in the initramfs with the local busybox
      4) remove "-n" in the modbrobe invocation in "etc/initrd.scripts"

      diff -u /usr/share/genkernel/defaults/initrd.scripts initrd.scripts
      --- /usr/share/genkernel/defaults/initrd.scripts	2014-01-02 11:57:28.080424214 +0100
      +++ initrd.scripts	2014-02-05 13:57:15.911565150 +0100
      @@ -33,7 +33,8 @@
       			if find /lib/modules/${KV} | grep /"${x}${KSUFF}" >/dev/null 2>&1
       			then
       				echo -ne "${BOLD}   ::${NORMAL} Scanning for ${x}..."
      -				modprobe ${x} -n
      +				#modprobe ${x} -n
      +				modprobe ${x}
       				backup
       				echo -ne "${NORMAL}"
       			fi
      

      5) rigenerate the fixed initramfs and install this in "/boot/"

        1. genkernel-initram-segmentation-fault.jpg
          112 kB
        2. grub.jpg
          grub.jpg
          63 kB
        3. erroe1.jpg
          erroe1.jpg
          91 kB
        4. erroe2.jpg
          erroe2.jpg
          102 kB
        5. dmesg.txt
          19 kB
        6. erroe3.jpg
          erroe3.jpg
          90 kB

            Unassigned Unassigned
            jabbadev jabbadev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: