Description of problem: dracut cannot create a working initramfs. Looking at the generated initramfs, it has symlinks such as: lib -> ../../../ar/tmp/initramfs.<mktemp spew>/usr/lib Obviously, this doesn't work. dracut-018-78.git20120622.fc17 works ok, modulo the systemd incompatibilities. Version-Release number of selected component (if applicable): dracut-022-5.git20120723.fc18.x86_64 \
wow... how did you run into this? can you please post the output of: # dracut -f test.img --debug &> debug.txt ?
lrwxrwxrwx 1 root root 7 Jul 23 15:25 lib -> usr/lib looks good here.
what is the ouput of: # ls -al /
[root@weirzbowski /]# ls -al / total 176 dr-xr-xr-x. 20 root root 4096 Jul 25 15:53 . dr-xr-xr-x. 20 root root 4096 Jul 25 15:53 .. lrwxrwxrwx. 1 root root 7 Jul 25 15:53 bin -> usr/bin dr-xr-xr-x. 6 root root 4096 Jul 24 15:08 boot drwxr-xr-x. 18 root root 3580 Jul 25 11:25 dev drwxr-xr-x. 154 root root 12288 Jul 25 15:16 etc drwxr-xr-x. 4 root root 4096 Jul 19 10:58 home lrwxrwxrwx. 1 root root 7 Jul 25 15:53 lib -> usr/lib lrwxrwxrwx. 1 root root 9 Jul 25 15:53 lib64 -> usr/lib64 drwx------. 2 root root 16384 Mar 24 14:30 lost+found drwxr-xr-x. 2 root root 4096 Jul 19 10:58 media drwxr-xr-x. 2 root root 0 Jul 25 11:25 misc drwxr-xr-x. 2 root root 4096 Jul 19 10:58 mnt drwxr-xr-x. 2 root root 0 Jul 25 11:25 net drwxr-xr-x. 2 root root 4096 Jul 19 10:58 opt dr-xr-xr-x. 177 root root 0 Jul 25 11:25 proc -rw-r--r--. 1 root root 97321 Jul 10 15:35 .readahead dr-xr-x---. 21 root root 12288 Jul 25 15:14 root drwxr-xr-x. 41 root root 1460 Jul 25 15:52 run lrwxrwxrwx. 1 root root 8 Jul 25 15:53 sbin -> usr/sbin drwxr-xr-x. 1 root root 122 Jul 19 10:58 srv dr-xr-xr-x. 13 root root 0 Jul 25 11:25 sys drwxrwxrwt. 18 root root 420 Jul 25 15:16 tmp drwxr-xr-x. 13 root root 4096 Jul 24 14:31 usr drwxr-xr-x. 20 root root 4096 Jul 24 17:18 var
Created attachment 600388 [details] gzipped debug.txt
very very odd... can you try this? $ rm -fr /var/tmp/initramfs.P9CSWu $ mkdir -m 0755 -p /var/tmp/initramfs.P9CSWu/usr/bin $ /usr/lib/dracut/dracut-install --debug -D /var/tmp/initramfs.P9CSWu /bin /bin dracut-install: dracut_install('/bin', '/bin') dracut-install: dracut_install('/usr/bin', '/usr/bin') dracut-install: '/var/tmp/initramfs.P9CSWu/usr/bin' already exists dracut-install: ln -s 'usr/bin' '/var/tmp/initramfs.P9CSWu/bin'
$ rpm -q glibc; uname -r glibc-2.16-5.fc18.x86_64 3.5.0-0.rc7.git0.1.fc18.x86_64
[root@weirzbowski ~]# /usr/lib/dracut/dracut-install --debug -D /var/tmp/initramfscow/ /bin /bin dracut-install: dracut_install('/bin', '/bin') dracut-install: dracut_install('/usr/bin', '/usr/bin') dracut-install: '/var/tmp/initramfscow//usr/bin' already exists dracut-install: ln -s '../../../ar/tmp/initramfscow//usr/bin' '/var/tmp/initramfscow//bin' [root@weirzbowski ~]# rpm -q glibc ; uname -r glibc-2.16-3.fc18.x86_64 3.4.3-1.fc17.x86_64
Can you please strace and ltrace that?
Created attachment 600573 [details] ltrace log
What *may* be happening here is that /var/tmp is a symlink to /srv/tmp?
(In reply to comment #11) > What *may* be happening here is that /var/tmp is a symlink to /srv/tmp? So "/ar/tmp" exists?
does dracut-022-63.git20120727.fc18 fix the issue?
It fixes this, yes. (systemd fails to start everything up, but that seems unrelated to dracut). Thanks!