Loading sysrcd.dat via TFTP instead of HTTP

Post there if you plan to contribute to this SystemCd
SvOlli
Posts: 4
Joined: 23 Dec 2007, 14:38

Loading sysrcd.dat via TFTP instead of HTTP

Postby SvOlli » 23 Dec 2007, 15:05

Hello,

I've modified the /linuxrc-script (and /usr/share/udhcpc/default.script) to use tftp instead of wget to load the sysrcd.dat onto the system. Right now, I've replaced all http code with tftp. That version is available on request if anyone else has a use for it.

I could hack up a version that supports both, http and tftp, but that's some more work I'd only put in there if that change would make it into the distribution.

Greetings,
SvOlli

gizmo
Posts: 6
Joined: 11 Jan 2008, 18:11

Postby gizmo » 11 Jan 2008, 18:14

Hello,


would you be so kind and publish your script?
I have also an http server but i want everything on one machine (wanna use tftp).

thanks

gizmo

SvOlli
Posts: 4
Joined: 23 Dec 2007, 14:38

Postby SvOlli » 11 Jan 2008, 21:31

I've put up a small webpage that offers a patch for download with some installation instructions, so you can redo my effort in a way that leaves you with the most options.

It's available at http://svolli.org/software/sysrescpxe/. I'm pretty sure that I'll get an email if there are any problems left ;-), but please let me also know if it worked for you. Thanks.

gizmo
Posts: 6
Joined: 11 Jan 2008, 18:11

Postby gizmo » 12 Jan 2008, 11:10

the script works fine but i get the following error when i boot via PXE:

Code: Select all

...
!! Media not found
!! Could not find CD to boot, something else needed!
!! Running a mini shell (cannot complete the boot process)
...


any ideas?

thanks

p.s.
i got an error, see:
http://nopaste.php-quake.net/14313
Last edited by gizmo on 12 Jan 2008, 11:19, edited 1 time in total.

SvOlli
Posts: 4
Joined: 23 Dec 2007, 14:38

Postby SvOlli » 12 Jan 2008, 11:14

Yes, the "APPEND="-line got truncated.

It should be:
APPEND initrd=/sysresccd/svolli.cpio.gz video=ofonly vga=0 cdroot scandelay=5 boottftp=/sysresccd/sysrcd.dat dostartx

I'll fix the documentation soon.

gizmo
Posts: 6
Joined: 11 Jan 2008, 18:11

Postby gizmo » 12 Jan 2008, 12:18

thanks a lot!
it works perfect!

do you mind publishing this as a tutorial/how2 in the sysrescd-wiki?

SvOlli
Posts: 4
Joined: 23 Dec 2007, 14:38

Postby SvOlli » 12 Jan 2008, 14:58

No, not at all.

As long as I don't have to do it... ;-)

gizmo
Posts: 6
Joined: 11 Jan 2008, 18:11

Postby gizmo » 12 Jan 2008, 17:22

SvOlli wrote:No, not at all.

As long as I don't have to do it... ;-)


okay i'll publish it in the wiki... soon :wink:

edit: I'm not priviledged to edit the Wiki :evil:

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 27 Jan 2008, 21:38

Loading sysrcd.dat via TFTP support instead of HTTP has been added to the official SystemRescueCd version 0.4.4-beta4. More details there:
http://www.sysresccd.org/news/2008/01/2 ... l-as-http/

moobyfr
Posts: 1
Joined: 14 May 2008, 09:15

http, tftp, but ftp ?

Postby moobyfr » 14 May 2008, 09:31

Hi,
I see that sysrescuecd has the great ability to use http and tftp to get sysrescd.dat
As wget is used for http, should it be possible to add ftp support too ? (anonymous ftp)

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 15 May 2008, 06:35

There is no plan to add support for FTP for the moment, since it would introduce complexity in the start-up script, and it would be one more boot option to test before each release.


Return to “Contributions”

Who is online

Users browsing this forum: No registered users and 1 guest