Bug 1410145

Summary: build: avoid creation of temporary file in %pretrans scriptlets
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Milind Changire <mchangir>
Component: buildAssignee: Milind Changire <mchangir>
Status: CLOSED ERRATA QA Contact: Vivek Das <vdas>
Severity: high Docs Contact:
Priority: medium    
Version: rhgs-3.2CC: amukherj, atumball, nchilaka, rhs-bugs, sanandpa, sheggodu, sisharma, smali, storage-qa-internal, vbellur
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.4.z Batch Update 4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.12.2-41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-27 03:43:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1676380    

Description Milind Changire 2017-01-04 15:13:59 UTC
Description of problem:
Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1362044

Instead of writing the bash script to a temporary file and then executing it, the script can directly be executed via "bash -c" command-line directly from the lua environment.

Comment 6 Amar Tumballi 2018-11-20 05:32:33 UTC
Looks like this is already fixed as part of rebase. Can we close the bug? or is there anything else to change in RHGS specific spec files?

Comment 7 Milind Changire 2018-11-20 08:25:04 UTC
Changes are required in downstream SPEC file since %pretrans scriptlets are specific to downstream

Comment 16 errata-xmlrpc 2019-03-27 03:43:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0658