We are attempting to use the following lines in a QNX build file:
/bin/mount
$ mount -p /dev/hd0 /dev/hd0t77 /local
/bin/sinit
$ sinit -r /local/ TERM=qnx
i.e. we want to mount the drive as /local and then map / to that.
This does not seem to work, in that the boot “hangs” on the sinit step.
Why does this not work?
Suggestions on an alternative approach?
Thanks
Glen Legere
Glen A. Legere <glen@wordstock.com> wrote:
We are attempting to use the following lines in a QNX build file:
/bin/mount
$ mount -p /dev/hd0 /dev/hd0t77 /local
/bin/sinit
$ sinit -r /local/ TERM=qnx
Is this a logical thing to do? What do you achieve by telling the
system that /local exists and telling it that it doesn’t. Or am I
misunderstanding this?
What are you trying to achieve here?
Regards
William Morris
wrm@innovation-tk.com
I think I can see the reasoning here.
If you mount something as ‘/’ and then prefix something else as ‘/’ it hides
the original ‘/’. By mounting the partition as ‘/local’ you can prefix
something else to ‘/’ and still have visibility to your original partition.
I think that’s an interesting approach.
Unfortunately, he is saying that it doesn’t actually work. Here are my
thoughts on that. The -r option to sinit is meant to redirect the local ‘/’
to another node. It just might not work tryint to redirect to a
subdirectory on the local node. But here is something to try:
$ sinit -r //0/local/ TERM=qnx
Let us know if you have any luck.
–
Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net
“William Morris” <wrm@innovation-tk.com> wrote in message
news:9qop4o$o3h$1@inn.qnx.com…
Glen A. Legere <> glen@wordstock.com> > wrote:
We are attempting to use the following lines in a QNX build file:
/bin/mount
$ mount -p /dev/hd0 /dev/hd0t77 /local
/bin/sinit
$ sinit -r /local/ TERM=qnx
Is this a logical thing to do? What do you achieve by telling the
system that /local exists and telling it that it doesn’t. Or am I
misunderstanding this?
What are you trying to achieve here?
Not sure if you can do this…
One of the things that sinit does is resolve licenses from /.licenses and
/etc/licenses - I don’t know what will happen if it can at least find a
filesystem.
One option that I haven’t tried is to put a prefix statement in the build
file to prefix /=/local then you can do a prefix -R later to replace it.
Jay
Bill Caroselli (Q-TPS) wrote in message <9qpa31$4vu$1@inn.qnx.com>…
I think I can see the reasoning here.
If you mount something as ‘/’ and then prefix something else as ‘/’ it
hides
the original ‘/’. By mounting the partition as ‘/local’ you can prefix
something else to ‘/’ and still have visibility to your original partition.
I think that’s an interesting approach.
Unfortunately, he is saying that it doesn’t actually work. Here are my
thoughts on that. The -r option to sinit is meant to redirect the local
‘/’
to another node. It just might not work tryint to redirect to a
subdirectory on the local node. But here is something to try:
$ sinit -r file://0/local/ TERM=qnx
Let us know if you have any luck.
–
Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net
“William Morris” <> wrm@innovation-tk.com> > wrote in message
news:9qop4o$o3h$> 1@inn.qnx.com> …
Glen A. Legere <> glen@wordstock.com> > wrote:
We are attempting to use the following lines in a QNX build file:
/bin/mount
$ mount -p /dev/hd0 /dev/hd0t77 /local
/bin/sinit
$ sinit -r /local/ TERM=qnx
Is this a logical thing to do? What do you achieve by telling the
system that /local exists and telling it that it doesn’t. Or am I
misunderstanding this?
What are you trying to achieve here?