initrd
initrd copied to clipboard
KEXEC_INITRD does not follow symlinks, while KEXEC_KERNEL does
On Debian Jessie with linux-image-amd64 installed, /initrd.img and /vmlinuz are symlinks to the latest initrd and kernel available in /boot. Setting KEXEC_INITRD to /initrd.img and KEXEC_KERNEL to /vmlinuz results in the following:
>>> kexec: kernel=/vmlinuz initrd=/initrd.img append=''
wget: bad address ''
>>> kexec: initrd not found
Changing only KEXEC_INITRD to the full path: /boot/initrd.img-3.16.0-4-amd64, seems to fix the issue. I looked at the kexec portion of the init script but I couldn't figure out why this happens.
Ok, so the actual issue appears to be that /initrd.img links to "/boot/initrd.img-3.16.0-4-amd64". If I change it to "boot/initrd.img-3.16.0-4-amd64", kexec works. Notice the missing /.