Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kexec init script fails without separate boot partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
furanku
l33t
l33t


Joined: 08 May 2003
Posts: 905
Location: Hamburg, Germany

PostPosted: Sat Oct 13, 2012 10:11 am    Post subject: kexec init script fails without separate boot partition Reply with quote

Whenever kexec starts I get the error message

Code:
# /etc/init.d/kexec restart
 * Caching service dependencies ...                                       [ ok ]
 * Configuring kexec ...
 * Mounting /boot ...
mount: can't find /boot in /etc/fstab                                     [ !! ]
 * ERROR: kexec failed to start


KNAME ist set correctly in /etc/conf.d/kexec, everything else left to default. The problem seems to be, that the kexec init script tries to mount a separet /boot partition during it's automatic configuration, which fails of course, if /boot is just a directory in / and not on its own partition.

AFAIK a separate boot partition is no dependecy for a gentoo system, so I would consider this as bug. Any ideas, before I file a bug report?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat Oct 13, 2012 12:54 pm    Post subject: Reply with quote

furanku ...

looking at /etc/init.d/kexec it only tries to mount /boot if the image can't be found:

Code:
if [ -z "${img}" ] ; then
    # If we cannot find our image, try mounting ${BOOTPART}

So, it doesn't expect that /boot is a partition that needs mounted, only that it can find ${KNAME} which in your case doesn't seem to be happening. If your sure that ${KNAME} is correct you might try uncommenting BOOTPART="/boot" (though from the script it would seem that this shouldn't be needed).

best ... khay
Back to top
View user's profile Send private message
furanku
l33t
l33t


Joined: 08 May 2003
Posts: 905
Location: Hamburg, Germany

PostPosted: Sat Oct 13, 2012 1:32 pm    Post subject: Reply with quote

If I comment out the whole if-block I get

Code:
# /etc/init.d/kexec restart
 * Caching service dependencies ...                                       [ ok ]
 * Configuring kexec ...
 * Loading kernel image /boot/kernel-3.6.2-gentoo for kexec ...
 *    Setting kexec with  --reuse-cmdline -l /boot/kernel-3.6.2-gentoo root=/dev/root


I double checked that the kernel image exists:

Code:
$ ls  /boot/kernel-3.6.2-gentoo
/boot/kernel-3.6.2-gentoo


So I tried a reboot.

Now the system took a loooong time to
Code:
 * Saving system dependcies cache


and hangs after
Code:
Starting new kernel
.

I still hear the hard disks clicking, so there still seems to be acitivity.

Strange ... Without kexec the system reboots normally via bios.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum