Sponsored Content
Operating Systems AIX How to avoid errors when moving files in a bff? Post 303042905 by kevinl on Friday 10th of January 2020 06:25:58 AM
Old 01-10-2020
How to avoid errors when moving files in a bff?

I am building a bff using mkinstallp.

My template file is :

Code:
Package Name: svr_exForum
Package VRMF: 7.2
Update: N
Fileset
        Fileset Name: svr_exForum.rte
        Fileset VRMF: 7.2
        USRLIBLPPFiles
                Pre-installation Script: /lppdir/lpp/exForum/F_pre_i
                Post-installation Script: /lppdir/lpp/exForum/F_post_i
                Pre_rm Script: /lppdir/lpp/exForum/F_prerm_i
                Unpre-installation Script: /lppdir/lpp/exForum/F_unpre_i
                Unpost-installation Script: /lppdir/lpp/exForum/F_unpost_i
                Pre-deinstall Script: /lppdir/lpp/exForum/F_predes_i
        EOUSRLIBLPPFiles
        USRFiles
                /exForum7/
                /exForum7/full/
                /exForum7/full/exForum7
                /exForum7/exForum7up
        EOUSRFiles
        Fileset Description: Package d'installation du produit exForum pour aix versions 6.1-7.1
        Bosboot required: N
        License agreement acceptance required: N
        Include license files in this package: N
        Copyright file path: /lppdir/lpp/exForum/svr_exForum.copyright
        Requisites:
        ROOT Part: N
        ROOTLIBLPPFiles
        EOROOTLIBLPPFiles
        ROOTFiles
        EOROOTFiles
        Relocatable: N
        OVERRIDE_INVENTORY: /lppdir/lpp/exForum/svr_exForum.override
EOFileset

I have a compressed source file and once decompress I have to move some files in a different location.
In my Post-installation Script I am then moving some of the USRFiles is a different location.

If I do that when installing the bff I get the following error message :

Code:
sysck: 3001-022 The file ...   was not found.

Is there a way to skeep the test done during the installation of the bff that verify if all the USRFiles are present?
If I have done the same operations in rpm packages and I would use the missingok in the %files section.

Thank you

Last edited by kevinl; 01-13-2020 at 07:13 AM.. Reason: giving more information and showing my script
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

avoid displaying errors while executing a script

Hi all, I am running a script on bash shell, although it gives me the desired output, it displays some errors at the prompt like this directory doesnt exists unary operator etc etc Is there someway to avoid these errors ?? Its very annoying to have these errors while the script is... (4 Replies)
Discussion started by: vikas027
4 Replies

2. Programming

What is the proper way to combine C++ files (with g++) to avoid link (ld) errors?

Problem background: gcc v 4.1 2 .cpp files, 2 .h files Files: main.cpp a.cpp a.h b.h Organization: main.cpp includes a.h (because it calls a.cpp code) a.cpp includes a.h a.h includes b.h (because a class in a.h uses a b.h class) There is no inheritance between a.h or b.h or any of... (1 Reply)
Discussion started by: johnqsmith
1 Replies

3. Shell Programming and Scripting

Avoid files being archived

hi all, i want to write a shell script which can automatically touch my all files within a folder in an interval of 90 days ...so that i can avoid them being archived. I don't want to manually touch the all files instead i want an automated shell script to do this. Thanks in advance, Om (3 Replies)
Discussion started by: koti
3 Replies

4. AIX

Creating/Installing a bff

I posted my question here regarding creating/installing a bff package to a directory of user's choice (instead of fixed one), still looking for an answer :o mklpp does not seem to handle this. (Can someone confirm?) Can the .toc file edited prior to installing the bff and modified so that the... (2 Replies)
Discussion started by: JStone
2 Replies

5. Shell Programming and Scripting

How to avoid duplication within 2 files?

Hi all, Actually 2 files are there - file1, file2. file1 contains ---> london mosco america russia mosco file2 contains --> europe india japan mosco england london Question is I want to print all the city names without duplication cities in those... (10 Replies)
Discussion started by: balan_mca
10 Replies

6. Solaris

Any way to avoid these errors?

Hello, this is solaris 10 on SF v440, I know below errors might go away if I put a new PS or put the original one back in socket but is there any other way to stop these errors from appearing in /var/adm/messages ? I do not want to put the failed PS1 in socket neither do we want to spend on... (5 Replies)
Discussion started by: upengan78
5 Replies

7. AIX

BFF to ISO conversion

Hi, I did a search but could not find this.I have some bff images of AIX 5.3 and VIOS as well on my windows laptop. I need to create their iso images so that I could load them onto the lpars. I cant ftp/scp etc these images to the box. I also cant copy them to CD and mount them on the AIX... (4 Replies)
Discussion started by: theaixeman
4 Replies

8. AIX

bff package

Guys, I wana know whats the package name for a .bff file Example: Whats the package name for the update file - U833703.bff ? is there a way to convert it back to regular format? (5 Replies)
Discussion started by: muzahed
5 Replies

9. Shell Programming and Scripting

Avoid locking between two files:

Hi frnz, I have requirement as follows.. There are two Modules say A and B...n both have few set of files..we have one script which read these files and load into database(vertica) table..while running script smtimes i encounter an error like one table is getting loaded from A module file... (7 Replies)
Discussion started by: gnnsprapa
7 Replies
DH_MISSING(1)                                                        Debhelper                                                       DH_MISSING(1)

NAME
dh_missing - check for missing files SYNOPSIS
dh_missing [-Xitem] [--sourcedir=dir] [debhelperoptions] DESCRIPTION
dh_missing compares the list of installed files with the files in the source directory. If any of the files (and symlinks) in the source directory were not installed to somewhere, it will warn on stderr about that (--list-missing) or fail (--fail-missing). Please note that without either of these options, dh_missing will silently do nothing. This may be useful if you have a large package and want to make sure that you don't miss installing newly added files in new upstream releases. Remember to test different kinds of builds (dpkg-buildpackage -A/-B/...) as you may experience varying results when only a subset of the packages are built. FILES
debian/not-installed List the files that are deliberately not installed in any binary package. Paths listed in this file are ignored by dh_missing. However, it is not a method to exclude files from being installed by any of the debhelper tool. If you want a tool to not install a given file, please use its --exclude option (where available). dh_missing will expand wildcards in this file (since debhelper 11.1). Wildcards without matches will be ignored. OPTIONS
--list-missing Warn on stderr about source files not installed to somewhere. Note that files that are excluded from being moved via the -X option are not warned about. This is the default in compat 12 and later. --fail-missing This option is like --list-missing, except if a file was missed, it will not only list the missing files, but also fail with a nonzero exit code. SEE ALSO
debhelper(7) This program is a part of debhelper. AUTHOR
Michael Stapelberg <stapelberg@debian.org> 11.1.6ubuntu2 2018-05-10 DH_MISSING(1)
All times are GMT -4. The time now is 08:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy