View previous topic :: View next topic |
Author |
Message |
furanku l33t
Joined: 08 May 2003 Posts: 905 Location: Hamburg, Germany
|
Posted: Sat Oct 13, 2012 10:11 am Post subject: kexec init script fails without separate boot partition |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat Oct 13, 2012 12:54 pm Post subject: |
|
|
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 |
|
|
furanku l33t
Joined: 08 May 2003 Posts: 905 Location: Hamburg, Germany
|
Posted: Sat Oct 13, 2012 1:32 pm Post subject: |
|
|
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 |
|
|
|