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

Re: [PATCH] Both the inittab and systemd sections can return. Move this part earlier.



This is useful for both master and F-14.

Bill Nottingham (notting redhat com) said: 
> ---
>  pyanaconda/desktop.py |    9 +++++----
>  1 files changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/pyanaconda/desktop.py b/pyanaconda/desktop.py
> index f9069ac..bc6f949 100644
> --- a/pyanaconda/desktop.py
> +++ b/pyanaconda/desktop.py
> @@ -49,6 +49,11 @@ class Desktop (SimpleConfigFile):
>          self.runlevel = 3
>  
>      def write (self, instPath):
> +        if self.getDefaultDesktop():
> +            f = open(instPath + "/etc/sysconfig/desktop", "w")
> +            f.write(str (self))
> +            f.close()
> +
>          try:
>              inittab = open (instPath + '/etc/inittab', 'r')
>          except IOError:
> @@ -73,7 +78,3 @@ class Desktop (SimpleConfigFile):
>              os.unlink(default_target)
>          os.symlink('/lib/systemd/system/runlevel' + str(self.runlevel) + '.target', default_target)
>  
> -        if self.getDefaultDesktop():
> -            f = open(instPath + "/etc/sysconfig/desktop", "w")
> -            f.write(str (self))
> -            f.close()
> -- 
> 1.7.2.3
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list redhat com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list


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