Reboot fails when sysresccd is started with pxe

Questions related to network booting via PXE
Post Reply
echo083
Posts: 7
Joined: 20 Jun 2012, 23:47

Reboot fails when sysresccd is started with pxe

Post by echo083 » 21 Jun 2012, 00:04

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.

gernot
Posts: 1131
Joined: 07 Apr 2010, 16:19

Re: Reboot fails when sysresccd is started with pxe

Post by gernot » 21 Jun 2012, 16:47

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

echo083
Posts: 7
Joined: 20 Jun 2012, 23:47

Re: Reboot fails when sysresccd is started with pxe

Post by echo083 » 24 Jun 2012, 14:23

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.

goodbytes
Posts: 1
Joined: 28 Apr 2015, 14:32

Re: Reboot fails when sysresccd is started with pxe

Post by goodbytes » 28 Apr 2015, 14:44

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.

Post Reply