FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 12-22-2010, 09:22 AM
Ales Kozumplik
 
Default On PPC64 /var/log exists already.

And 7ecfc716475b89c43808962c757dfd9d775e7c76 will cause a traceback there.

Related: rhbz#636570
---
anaconda | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/anaconda b/anaconda
index 417e114..0f9f88e 100755
--- a/anaconda
+++ b/anaconda
@@ -679,7 +679,10 @@ if __name__ == "__main__":

setupEnvironment()
# make sure we have /var/log soon, some programs fail to start without it
- os.mkdir("/var/log", 0755)
+ try:
+ os.mkdir("/var/log", 0755)
+ except OSError as e:
+ pass

pidfile = open("/var/run/anaconda.pid", "w")
pidfile.write("%s
" % (os.getpid(),))
--
1.7.3.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-03-2011, 06:40 PM
Peter Jones
 
Default On PPC64 /var/log exists already.

On 12/22/2010 05:22 AM, Ales Kozumplik wrote:
> And 7ecfc716475b89c43808962c757dfd9d775e7c76 will cause a traceback there.
>
> Related: rhbz#636570
> ---
> anaconda | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/anaconda b/anaconda
> index 417e114..0f9f88e 100755
> --- a/anaconda
> +++ b/anaconda
> @@ -679,7 +679,10 @@ if __name__ == "__main__":
>
> setupEnvironment()
> # make sure we have /var/log soon, some programs fail to start without it
> - os.mkdir("/var/log", 0755)
> + try:
> + os.mkdir("/var/log", 0755)
> + except OSError as e:
> + pass
>
> pidfile = open("/var/run/anaconda.pid", "w")
> pidfile.write("%s
" % (os.getpid(),))

Looks fine, ACK.

--
Peter

Growth for the sake of growth is the ideology of the cancer cell.

01234567890123456789012345678901234567890123456789 012345678901234567890123456789

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

Thread Tools




All times are GMT. The time now is 01:51 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org