Re: [PATCH] Do not crash on .autorelabel when using read only rescue mount (#568367)

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

 



On 03/15/2010 03:00 PM, Martin Sivak wrote:
+                    # we have to catch the exception
+                    # because we support read-only mounting (#568367)

Let's not write down the bug numbers. It's enough to say why you did this.

+                    try:
+                        fd = open("%s/.autorelabel" % anaconda.rootPath, "w+")
+                        fd.close()
+                    except Exception, e:
+                        log.warning("error touching /.autorelabel")

If it's an error you should 'log.error' or it's not an error.

Ales

_______________________________________________
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