FS#7046 - kexec in /usr/sbin and /usr on separate partition

Attached to Project: Arch Linux
Opened by Jan Peter den Heijer (klixon) - Tuesday, 01 May 2007, 17:25 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 13 May 2007, 11:57 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version 0.8 Voodoo
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

kexec-tools installs binary "kexec" in /usr/sbin. This causes problems for people who want to use it and have /usr on a separate partition (ie. /usr gets unmounted before kexec is called in rc.shutdown)
Also, kexec is linked against /usr/lib/libz.so.1, so it's not an option to just cp it to /sbin

Proposal: include a statically linked kexec and place it in /sbin in the kexec-tools package
This task depends upon

Closed by  Thomas Bächler (brain0)
Sunday, 13 May 2007, 11:57 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in new initscripts/kexec
Comment by Tobias Powalowski (tpowa) - Sunday, 06 May 2007, 09:24 GMT
kexec is executed before! /usr is unmounted when you use kexec daemon script
Comment by Jan Peter den Heijer (klixon) - Sunday, 06 May 2007, 14:36 GMT
Well, it's executed twice...
Once as an rc.d script to load the kernel into memory
The second time is in the very last section of rc.shutdown. There kexec gets called to switch to the kernel that was loaded by the previously mentioned script.
Comment by Jan Peter den Heijer (klixon) - Monday, 07 May 2007, 06:56 GMT
For the sake of clarity: It's of course the second call that gives problems.
It's a conditional statement that check if kexec is executable and, if it is, executes is, otherwise it does "/sbin/reboot -d -f -i"

Loading...