How to call /etc/system/sysinit from OS image without using

I am creating an OS boot image, and I don’t want to use diskboot. It’s
for booting a hard-disk on a desktop. See attached rescue.build file.

I have read all the chapter: Controlling How Neutrino Starts, and all
the relevant utilites docs. All what it says is that diskboot starts
/etc/system/sysinit, but it doesn’t say how.

With the following line, I manage to start the HD driver and mount my
partition as /.

devb-eide quiet blk cache=2m,automount=hd0t79:/,automount=cd0:/cd &

However, even though I can see the file as a result of:
“cat /etc/system/sysinit”, executing /etc/system/sysinit says:

Unable to start “/etc/system/sysinit” (8)

Any ideas?

Alain Achkar <js@simplytech.com> wrote:

This is a multi-part message in MIME format.
--------------030709050705000102040802
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

I am creating an OS boot image, and I don’t want to use diskboot. It’s
for booting a hard-disk on a desktop. See attached rescue.build file.

I have read all the chapter: Controlling How Neutrino Starts, and all
the relevant utilites docs. All what it says is that diskboot starts
/etc/system/sysinit, but it doesn’t say how.

With the following line, I manage to start the HD driver and mount my
partition as /.

devb-eide quiet blk cache=2m,automount=hd0t79:/,automount=cd0:/cd &

However, even though I can see the file as a result of:
“cat /etc/system/sysinit”, executing /etc/system/sysinit says:

Unable to start “/etc/system/sysinit” (8)

Any ideas?

Yup, it isn’t an executable, despite having the +x bit set.

Try:
ksh /etc/system/sysinit

Or, add as the first line of sysinit:
#!/bin/ksh

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com