Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219315 - [init.d] sys-apps/kexec-tools-1.101-r4 incompatible w/ udev-120 & openrc-0.2.2
Summary: [init.d] sys-apps/kexec-tools-1.101-r4 incompatible w/ udev-120 & openrc-0.2.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Miscellaneous
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-26 05:37 UTC by Richard Li
Modified: 2008-12-18 01:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for /etc/init.d/kexec (kexec.patch,820 bytes, patch)
2008-04-26 05:37 UTC, Richard Li
Details | Diff
diff file for the kexec.init file (kexec.patch,818 bytes, patch)
2008-12-17 23:21 UTC, Chris Slycord
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Li 2008-04-26 05:37:19 UTC
I have migrated to sys-apps/openrc (0.2.2), and upgraded sys-fs/udev to 120. And I am having two problems with kexec-tools:

1) /etc/init.d/kexec checks $RC_SOFTLEVEL when stopping. In my system, it does not work until I replace it with $RC_RUNLEVEL

2) Now the first two lines of my /etc/mtab are:
rootfs / rootfs rw 0 0
/dev/root / reiserfs rw,noatime 0 0

/dev/root is a symlink to /dev/hda1. I find /etc/init.d/kexec is passing "root=rootfs\n/dev/root" to the new kernel, resulting in kernel panic.

I made some modifications to /etc/init.d/kexec and it works for me. I'll post the patch soon.

Reproducible: Always
Comment 1 Richard Li 2008-04-26 05:37:54 UTC
Created attachment 150986 [details, diff]
Patch for /etc/init.d/kexec
Comment 2 Matthias Schwarzott gentoo-dev 2008-08-14 11:40:26 UTC
Does it work using kexec-tools-1.101-r5
Comment 3 Chris Slycord 2008-08-24 03:33:48 UTC
(In reply to comment #2)
> Does it work using kexec-tools-1.101-r5
> 

No. Identical problem as in this bug with -r5
Comment 4 Chris Slycord 2008-08-24 03:43:27 UTC
(In reply to comment #2)
> Does it work using kexec-tools-1.101-r5
> 

-r5 fails the same way as -r4 did. The uploaded diff works perfectly with -r5 and openrc
Comment 5 Chris Slycord 2008-08-24 03:43:27 UTC
(In reply to comment #2)
> Does it work using kexec-tools-1.101-r5
> 

-r5 fails the same way as -r4 did. The uploaded diff works perfectly with -r5 and openrc
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2008-12-04 21:56:44 UTC
Sorry for the delay here. Your patch no longer applies because some other change was made to fix the same bug, maybe?

Please post an updated patch if there are still problems (i think we still need the readlink bit at least)
Comment 7 Chris Slycord 2008-12-17 23:21:23 UTC
Created attachment 175661 [details, diff]
diff file for the kexec.init file
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2008-12-18 01:06:17 UTC
thanks, committed.