tar problem in boot floppy

Hi,

We built a boot file (“mkifs -v m_boot.build m_boot.ifs”) that was later
dinitialized to a floppy disk i.e. “dinit -f m_boot.ifs /dev/fd0”

We want to “unzip” a tar.gz file from a 1st harddrive to a 2nd harddrive,
in order to validate that we take the correct steps before “unzipping” a
backup to a hardrive.

Here is the error we get:
“tar : (Child): Cannot exec gzip: no such file or directory”.

When we do it without booting from the floppy, it works fine, so obviously
there is something wrong in our boot script. Can you get a look at it and
tell me what’s wrong?

There is the file we use:

[virtual=x86,bios +compress] boot = {
startup-bios -s64k
PATH=/proc/boot:/bin:/usr/bin
LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll procnto
}

[+script] startup-script = {
display_msg " "
display_msg “Neutrino Inside! (QNX 6.3.0)”
display_msg " "
procmgr_symlink …/…/proc/boot/libc.so.2 /usr/lib/ldqnx.so.2

display_msg “—> Starting PCI Services”
seedres &
pci-bios &
waitfor /dev/pci

Start pipe manager

display_msg “—> Starting Pipe Manager”
pipe &

display_msg “—> Starting Console Manager”
devc-con -n8
waitfor /dev/con1
reopen /dev/con1

display_msg “—> Starting EIDE Driver”
devb-eide blk auto=partition dos exe=all cam quiet
waitfor /dev/hd0
waitfor /dev/hd1

display_msg “—> Mounting /dev/hd0t79”
mount /dev/hd0t79 /

display_msg “—> Mounting /dev/cd0”
mount -tcd /dev/cd0 /fs/cd0

display_msg “—> dinit /dev/hd1t77”
dinit -q -h /dev/hd1t77

display_msg “—> Mounting /dev/hd1t77”
mount /dev/hd1t77 /fs/hd1

display_msg “—> Unzipping test”
tar -C /fs/hd1 -xzf /boot/build/test.tgz

display_msg “—> Starting /etc/system/sysinit”
ksh -c /etc/system/sysinit
}

libc.so
libcam.so
io-blk.so
cam-disk.so
fs-qnx4.so
fs-dos.so
fs-ext2.so
cam-cdrom.so
fs-cd.so

[data=copy]
seedres
pci-bios
slogger
ksh
devc-con
devb-eide
mount
dinit
tar
pipe
gzip


Thanks,
Martin Fillion

My guess is that tar is looking for gzip in a specific location and it is
not finding it.
Try placing gzip in /bin. You can also try running gzip directly on the
archive.

Regards,

Joe

“Louis Chretien” <lchretien@mechtronix.ca> wrote in message
news:cv2tl5$gqp$1@inn.qnx.com

Hi,

We built a boot file (“mkifs -v m_boot.build m_boot.ifs”) that was later
dinitialized to a floppy disk i.e. “dinit -f m_boot.ifs /dev/fd0”

We want to “unzip” a tar.gz file from a 1st harddrive to a 2nd harddrive,
in order to validate that we take the correct steps before “unzipping” a
backup to a hardrive.

Here is the error we get:
“tar : (Child): Cannot exec gzip: no such file or directory”.

When we do it without booting from the floppy, it works fine, so obviously
there is something wrong in our boot script. Can you get a look at it and
tell me what’s wrong?

There is the file we use:

[virtual=x86,bios +compress] boot = {
startup-bios -s64k
PATH=/proc/boot:/bin:/usr/bin
LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll procnto
}

[+script] startup-script = {
display_msg " "
display_msg “Neutrino Inside! (QNX 6.3.0)”
display_msg " "
procmgr_symlink …/…/proc/boot/libc.so.2 /usr/lib/ldqnx.so.2

display_msg “—> Starting PCI Services”
seedres &
pci-bios &
waitfor /dev/pci

Start pipe manager

display_msg “—> Starting Pipe Manager”
pipe &

display_msg “—> Starting Console Manager”
devc-con -n8
waitfor /dev/con1
reopen /dev/con1

display_msg “—> Starting EIDE Driver”
devb-eide blk auto=partition dos exe=all cam quiet
waitfor /dev/hd0
waitfor /dev/hd1

display_msg “—> Mounting /dev/hd0t79”
mount /dev/hd0t79 /

display_msg “—> Mounting /dev/cd0”
mount -tcd /dev/cd0 /fs/cd0

display_msg “—> dinit /dev/hd1t77”
dinit -q -h /dev/hd1t77

display_msg “—> Mounting /dev/hd1t77”
mount /dev/hd1t77 /fs/hd1

display_msg “—> Unzipping test”
tar -C /fs/hd1 -xzf /boot/build/test.tgz

display_msg “—> Starting /etc/system/sysinit”
ksh -c /etc/system/sysinit
}

libc.so
libcam.so
io-blk.so
cam-disk.so
fs-qnx4.so
fs-dos.so
fs-ext2.so
cam-cdrom.so
fs-cd.so

[data=copy]
seedres
pci-bios
slogger
ksh
devc-con
devb-eide
mount
dinit
tar
pipe
gzip


Thanks,
Martin Fillion