linuxrc in initramfs links to /var/tmp/genkernel/4078.8177.6654.17758/initramfs-aux-temp/init $ zcat initramfs-aux.cpio.gz | cpio -tv -rwxr-xr-x 1 root root 17192 Sep 11 15:50 init drwxr-xr-x 2 root root 0 Sep 11 15:50 sbin lrwxrwxrwx 1 root root 7 Sep 11 15:50 sbin/init -> ../init -rwxr-xr-x 1 root root 2299 Sep 11 15:50 sbin/modprobe lrwxrwxrwx 1 root root 63 Sep 11 15:50 linuxrc -> /var/tmp/genkernel/4078.8177.6654.17758/initramfs-aux-temp/init I think that it should use hard link in this case. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 68160 [details, diff] gen_initramfs.sh patch
Changed directory before making symlink, making it a relative link. Making it a hard link just hid the problem, it didn't resolve it.
*** Bug 109364 has been marked as a duplicate of this bug. ***
fixed in 3.3.7