Page 1 of 1

Reboot fails when sysresccd is started with pxe

Posted: 21 Jun 2012, 00:04
by echo083
Hello,

An issue very annoying in my opinion and reported a long time ago is to be able to reboot after starting with pxe. After launching the command reboot, the reboot process is locked with the following messages :
INIT: cannot execute "/sbin/reboot"
INIT: no more processes left in this runlevel

A fix to this could be added to the official sysresccd release ?

Thanks.

Re: Reboot fails when sysresccd is started with pxe

Posted: 21 Jun 2012, 16:47
by gernot
here is a workaround for this "root filesystem over network" problem.
http://www.sysresccd.org/forums/viewtop ... =13&t=3279

touch /sbin/reboot
touch /sbin/halt
work too.
HTML boot or docache is not affected by this problem.

Gernot

Re: Reboot fails when sysresccd is started with pxe

Posted: 24 Jun 2012, 14:23
by echo083
Yes but my request was to know if it could be added to the official CD release. This fix could be applied during the boot process for example.

Re: Reboot fails when sysresccd is started with pxe

Posted: 28 Apr 2015, 14:44
by goodbytes
Sorry for reviving an old thread. But even though this patch was included it seems the problem is still there.

It looks like the grep criteria does not match the kernel cmdline when the setting the nbd parameter first.

Code: Select all

cat /proc/cmdline
netboot=nbd://x.x.x.x:xxxx dodhcp backstore=off
The previously submitted patch mentioned in http://www.sysresccd.org/forums/viewtop ... =13&t=3279 should be edited to remove the spaces in front of nbdboot and netboot, as following:

Code: Select all

        # ---- allow reboot after dropping the nbd conection ----
        if echo ${CMDLINE} | grep -q 'nbdboot=\|netboot=nbd:'
It would be really nice if this could be included in the official System Rescue CD.

Thank you.