Operating System - HP-UX
1833189 Members
2887 Online
110051 Solutions
New Discussion

make_sys_image error when using the -f option

 
SOLVED
Go to solution
Gerry Gerofsky
Advisor

make_sys_image error when using the -f option

When I run the make_sys_image command:

bash-3.2# /opt/ignite/data/scripts/make_sys_image -s local -d /var/tmp -f /tmp/HPUXGM_26421_12021 -l 2 -n Hewlett-Packard_Unix_ver-B1111_-1030 -w /tmp/GMimageLogFile_26421_12021 -m t -c g -v

In the resulting terminal output I always see the following:
/opt/ignite/data/scripts/make_sys_image[18]: 1: not found.

When I run it without the -f option as:
bash-3.2# /opt/ignite/data/scripts/make_sys_image -s local -d /var/tmp -l 2 -n Hewlett-Packard_Unix_ver-B1111_-1030 -w /tmp/GMimageLogFile_26421_12021 -m t -c g -v

the offending line is gone.


This is how the file I pass to -f looks like:
bash-3.2# cat /tmp/HPUXGM_26421_12021
+RESET
/etc/motd
/etc/issue
+NO_ARCHIVE
/tmp/*
/var/tmp/Hewlett-Packard_Unix_ver-B1111_-1030

In either case the archive looks OK.

What does the error mean? Can I safely ignore it?
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: make_sys_image error when using the -f option

Shalom,

No, don't ignore it.

make_sys_image needs to be run with a supporte d shell such as posix or korn. Not bash.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sameer_Nirmal
Honored Contributor

Re: make_sys_image error when using the -f option

The message /opt/ignite/data/scripts/make_sys_image[18]: 1: not found point to the file name "Hewlett-Packard_Unix_ver-B1111_-1030" in this case. This file is not yet preset under /var/tmp/ when you just start "make_sys_image" where it will first check the "-f" attribute ( i.e parsing the file list for the archive ). You might want use "/var/tmp/*" instead in "/tmp/HPUXGM_26421_12021 "

If you open the "make_sys_image" script, you would notice why it might give this kinda message.
Gerry Gerofsky
Advisor

Re: make_sys_image error when using the -f option

>The message /opt/ignite/data/scripts/make_sys_image[18]: 1: not found point to the file name "Hewlett-Packard_Unix_ver-B1111_-1030" in this case. This file is not yet preset under /var/tmp/ when you just start "make_sys_image" where it will first check the "-f" attribute ( i.e parsing the file list for the archive ). You might want use "/var/tmp/*" instead in "/tmp/HPUXGM_26421_12021 "

>If you open the "make_sys_image" script, you would notice why it might give this kinda message

If I have make_sys_image creating a file in a folder: /var/tmp, and I do have some files in /var/tmp that I want to back up. What do I do? I just want it to not start backing up the file it is creating and then running into a circular issue
Sameer_Nirmal
Honored Contributor
Solution

Re: make_sys_image error when using the -f option

>If I have make_sys_image creating a file in a folder: /var/tmp, and I do have some files in /var/tmp that I want to back up. What do I do? I just want it to not start backing up the file it is creating and then running into a circular issue.

Even by modifying the "/var/tmp/Hewlett-Packard_Unix_ver-B1111_-1030" by "/var/tmp/Hewlett-Packard_Unix_ver-B1111_-1030.gz" in the file "/tmp/HPUXGM_26421_12021". However you might end up with the message. You can try it though.

I think if you use pattern matching, the message might go away. Since you are specifying the name of the archive (-n option ), use like "/var/tmp/Hewlett-Packard_Unix_ver-B1111_-1030*" in the file "/tmp/HPUXGM_26421_12021"

With this way, you are sure that you are not including the archive itself generated out of make_sys_image in the final image.