Page 1 of 1

Porteus 1.1 64bit: A mistake in linuxrc??

Posted: 28 Feb 2012, 12:46
by 326bd935
What I think the problem is:
In linuxrc, line 132:

Code: Select all

    udhcpc; mkdir -p /mnt/httpfs/porteus/base; httpfs http://$IP /mnt/httpfs/porteus/base
Should be:

Code: Select all

    udhcpc; mkdir -p /mnt/httpfs; httpfs http://$IP /mnt/httpfs
Why do I think so?
1. The 32bit version is like this.
2. PXE boot doesn't work unless you change this.

Re: Porteus 1.1 64bit: A mistake in linuxrc??

Posted: 28 Feb 2012, 13:28
by Hamza
Yeah, I see the mistake too you are trying to show us. Linuxrc is preparing the local mouting point to root tftp directory server. But you are using it in production like in a company, you will have to make some tweaks with tftp server.

So, the base modules should there => http://xxx.xxx.xxx.xxx/001-core.xzm and not in the directory porteus after in the directory base.

Re: Porteus 1.1 64bit: A mistake in linuxrc??

Posted: 28 Feb 2012, 13:45
by fanthom
hello 326bd935,
(you are not making my life easier with remembering your nickname)
2. PXE boot doesn't work unless you change this.
works fine here.

64bit version has "crippled" PXE boot functionality comparing to 32bits.
some highlights:
httpfs client (placed inside initrd) was rewritten by Tomas M in slax-6.07 times and works fine only with certain number of http servers.
for example it works perfect with Monkey httpd version 9.x but not 10.x
I failed to compile Monkey-9.x in 64bits (code is too old? - dunno) and decided to use webfs instead due to it's small size (40KB or so).
unfortunately webfs is not fully compatible with httpfs client.
httpfs can read files but not folders served by webfs so the only folder which is exposed by webfs is /porteus/base.
that means: no /rootcopy and /optional in 64bit edition when doing PXE boot. every file which goes to the live filesystem must be packed up in xzm inside /base folder.

i have tried dozen of other web servers and only apache and nginx worked the same way as monkey-9.x.
i haven't included them in the ISO for two reasons:
1) they are much larger than webfs
2) PXE boot option is not very popular (you are the first person who pointed this out)

if someone gets monkey-9.x to work in 64bits (or show me another small http server fully compatible with httpfs client) then i would be more than happy to replace webfs with it and restore whole functionality.

Re: Porteus 1.1 64bit: A mistake in linuxrc??

Posted: 29 Feb 2012, 02:42
by 326bd935
o ok, sorry i forgot to mention i have a fedora running dnsmasq/apache computer at home that does the pxe, its more of a hobby than commercial.
I guess thats why i also can get /optional to work and as long as keep alive is on and unlimited, i can boot normally (as opposed to copy2ram), so i can have multiple porteus versions running from the same computer with a simple from_dir as long as the mount point is /mnt/httpfs