Bug 798807 - symlinks in lib* dirs: Failed to execute /init
Summary: symlinks in lib* dirs: Failed to execute /init
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 17
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: dracut-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-29 22:31 UTC by Sami Farin
Modified: 2012-07-03 08:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-03 08:01:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sami Farin 2012-02-29 22:31:57 UTC
Description of problem:

systems fails to boot with "Failed to execute /init".

dracut creates this kind of dir structure:

# ls -ld lib64/libtinfo.so* usr usr/lib64 lib64
lrwxrwxrwx 1 root root      9 Mar  1 00:14 lib64 -> usr/lib64
lrwxrwxrwx 1 root root     15 Mar  1 00:14 lib64/libtinfo.so -> libtinfo.so.5.9
lrwxrwxrwx 1 root root     28 Mar  1 00:14 lib64/libtinfo.so.5 -> ../usr/lib64/libtinfo.so.5.9
-rwxr-xr-x 1 root root 167608 Mar  1 00:14 lib64/libtinfo.so.5.9
drwxr-xr-x 7 root root     61 Mar  1 00:14 usr
drwxr-xr-x 4 root root   8192 Mar  1 00:14 usr/lib64
# file {/,}lib64/libtinfo.so.5
/lib64/libtinfo.so.5: symbolic link to `libtinfo.so.5.9'
lib64/libtinfo.so.5:  broken symbolic link to `../usr/lib64/libtinfo.so.5.9'

# chroot /boot/grub2/x lib64/ld-2.15.so bin/bash
bin/bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

I think this is why on boot kernel fails to execute /init .
Most of the other symlinks are broken, too.  When I fix them (like they are in the real /lib64 , that chroot command works.

Version-Release number of selected component (if applicable):
016-9.git20120217.fc17

How reproducible:
100%

Steps to Reproduce:
1. run dracut
2.
3.
  
Actual results:


Expected results:


Additional info:
initrd created with dracut-014 manages to boot the system (but system shutdown does not work)

Comment 2 Sami Farin 2012-03-01 14:47:34 UTC
at least it now creates dir structure which works with that chroot test.
but I am not doing a reboot test right now..

Comment 3 Sami Farin 2012-03-02 16:27:28 UTC
had to reboot due to drm problems, now with this updated dracut and 3.3rc5 kernel, it works ok, and reboot also works without panic.


Note You need to log in before you can comment on or make changes to this bug.