Sometimes genkernel generates an empty linuxrc inside initrd. This renders the initrd unusable. I attach a patch to fix the problem. Reproducible: Sometimes Steps to Reproduce: 1. run genkernel 2. mount the generated initrd 3. check the file linuxrc Actual Results: The file linuxrc has size 0 Expected Results: The linuxrc should contain a script
Created attachment 17361 [details, diff] Patch to fix empty linuxrc This patch fixes the problem. The problem is that since linux is multitasking, sometimes the > redirection starts before the cat cleaning up the file, and the cat outputs an empty file. The patch fixes the problem by doing all the replaces inside just one sed command. Another approach would be to chain all the sed commands with pipes and the last one doing the >
gack, yep this is bad shell code. Will fix in next release.
fixed in my working 1.7 version, closing...