Porteus 1.1 64bit: A mistake in linuxrc??

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
326bd935
White ninja
White ninja
Posts: 17
Joined: 02 Dec 2011, 14:55
Location: Australia

Porteus 1.1 64bit: A mistake in linuxrc??

Post#1 by 326bd935 » 28 Feb 2012, 12:46

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.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

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

Post#2 by Hamza » 28 Feb 2012, 13:28

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.
NjVFQzY2Rg==

User avatar
fanthom
Site Admin
Site Admin
Posts: 4566
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

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

Post#3 by fanthom » 28 Feb 2012, 13:45

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.
Please add [Solved] to your thread title if the solution was found.

326bd935
White ninja
White ninja
Posts: 17
Joined: 02 Dec 2011, 14:55
Location: Australia

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

Post#4 by 326bd935 » 29 Feb 2012, 02:42

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

Post Reply