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

Re: [PATCH] Don't write out a duplicate mtab to /mnt/sysimage (#568539).



Ack.

On Wed, 2010-12-15 at 13:11 -0500, Chris Lumens wrote:
> We write out out in doPreInstall, so there should be no need to still write
> one out in doMethodComplete.  The latter one just confuses kickstart %post
> scripts these days.
> ---
>  pyanaconda/installmethod.py |    9 ---------
>  1 files changed, 0 insertions(+), 9 deletions(-)
> 
> diff --git a/pyanaconda/installmethod.py b/pyanaconda/installmethod.py
> index 17f1d3a..e96c54d 100644
> --- a/pyanaconda/installmethod.py
> +++ b/pyanaconda/installmethod.py
> @@ -45,12 +45,3 @@ def doMethodComplete(anaconda):
>      dev = _ejectDevice()
>      if dev:
>          dev.eject()
> -
> -    mtab = "/dev/root / ext3 ro 0 0\n"
> -    rootDevice = anaconda.storage.rootDevice
> -    if rootDevice:
> -        mtab = "/dev/root / %s ro 0 0\n" % rootDevice.format.type
> -
> -    f = open(anaconda.rootPath + "/etc/mtab", "w+")
> -    f.write(mtab)
> -    f.close()



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