My initscript attached. I have in it: ROOTPART="$(sed -n '/^[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /etc/mtab)" So $ROOTPART is: $ echo $(sed -n '/^[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /etc/mtab) rootfs /dev/root This result is wrong. We need: 1. parse only one path to root partition 2. check if its symlink, and resolve it if needed Patch, that fixes the problem is attached. Reproducible: Always
I can't attach files, so I've uploaded them here: http://overlay.j3qq4.org/kexec kexec.old -- old initscript kexec -- new initscript kexec.patch -- patch
1) Please post or attach a diff between the original init.d script and yours. 2) Please post your `emerge --info' in any case. 3) I assume this is for =sys-apps/baselayout-2*
Created attachment 165552 [details, diff] diff between original kexec initscript and mine
Created attachment 165554 [details] my emerge --info
YES, it's for =sys-apps/baselayout-2* :)
I'll maintain kexec-tools now, looking at bugs in the next week. Thanks Marius for your work there.
Sergey, I appreciate your patch here but it looks like it was mostly already implemented. ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /etc/mtab)")" Please re-open if needed, I don't think it is anymore. Thanks.