Bug 241878

Summary: Anaconda raise a traceback if the %pre or %post script remove itself from /tmp
Product: Red Hat Enterprise Linux 5 Reporter: Klaus Ethgen <Klaus+rhbz>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 5.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-31 14:34:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Klaus Ethgen 2007-05-31 12:01:46 UTC
Description of problem:
Anaconda raise a traceback if the %pre or %post script remove itself from /tmp. 
This might be needed if one has to clean up the /tmp at the end of %post for 
leaving a clean one.

How reproducible:
%post
# Doing some stuff here
rm -fr /tmp/* /tmp/.??*

Actual results:
A traceback in anaconda

Expected results:
Maybe a warning but nothing more

Additional info:
I know that I can use "--nochroot" but anaconda should not be so fragil.

Comment 1 Chris Lumens 2007-05-31 13:19:13 UTC
Please attach the complete traceback to this bug report.

Comment 2 Klaus Ethgen 2007-05-31 14:21:52 UTC
I would be happy to do so but I do not know how to save such a traceback in the 
kickstart process. Also cut and paste do not work as there is no other terminal 
when anaconda halted the system.

I wrote down the message before the halt: "OSError: [Error 2] No such file or 
directory: '/mnt/sysimage/tmp/ks-script-xuAsIT'"


Comment 3 Chris Lumens 2007-05-31 14:34:15 UTC
This will be fixed in the next release of RHEL.  If you require this fix in an
update release, please speak to your support representative who will raise it
through the appropriate channels.  Thanks for the bug report.