Re: [PATCH] Remove /mnt/sysimage from target system after installation (#577627)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/19/2010 10:52 AM, Chris Lumens wrote:
>> diff --git a/backend.py b/backend.py
>> index 2ec2109..6fd4698 100644
>> --- a/backend.py
>> +++ b/backend.py
>> @@ -60,7 +60,13 @@ class AnacondaBackend:
>>          self._loopbackFile = None
>>  
>>      def postAction(self, anaconda):
>> -        pass
>> +        # Remove /mnt/sysimage/mnt/sysimage tree
>> +        try:
>> +            path = "/mnt/sysimage/mnt/sysimage"
>> +            shutil.rmtree(path)
>> +            log.info("Removed directory tree: %s" % path)
>> +        except Exception, e:
>> +            log.error("Unable to remove directory tree: %s %s" % (path, e))
>>  
>>      def doPreSelection(self, intf, id, instPath):
>>          pass
> 
> I should have looked more closely at the original bug report.  Why are
> we creating /mnt/sysimage/mnt/sysimage in the first place?
> 

I'm not sure exactly.

It looks like it is used for yum cache during some part of the install.
It has var/lib/yum/<stuff> in it.

- -- 
Brian C. Lane <bcl@xxxxxxxxxx>
Red Hat / Port Orchard, WA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEVAwUBS8yZ1xF+jBaO/jp/AQLHEgf7BWA4X8hEtCMvmmweYFVNahavkTK0T2xl
ArJzYS0apj17RA9n2HoC8GvOu+T0o0W9vqgEq1Y49iFvqs2+PwJQft+3PWkNM6RO
LoCu8m6vZhO10qa1hmVLOaJ8RUdVij2ksIR1eOfax/VUNRJyAjh+Z/lwknJ86YrO
ql/vQiBdRWf4mucyJpfW28zIHdUlfnHnV/rLEL0ZI9AODlDsztzRTvwXysVaCI+4
bKaX4J+dzQy6dDVmOG8Pb+Gl/UQIp3+AVwCf4j2omUS2V49TOErx6UIpHgQX9B8x
Go6am7QEJrA1ZCGMc9pA2xuYfPSTTQoh7S7v3UqlY31WgckpmbGtjA==
=3vvt
-----END PGP SIGNATURE-----

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux