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 > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-25-2010, 12:34 AM
"Brian C. Lane"
 
Default Ignore immutable disks in clearPartitions (#657115)

Related: rhbz#614812
Resolves: rhbz#657115
---
storage/partitioning.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index e12b3e3..6e9b1ae 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -410,6 +410,10 @@ def clearPartitions(storage):
(storage.clearPartDisks and disk.name not in storage.clearPartDisks):
continue

+ # Don't touch immutable disks
+ if disk.immutable:
+ continue
+
# don't reinitialize the disklabel if the disk contains install media
if filter(lambda p: p.dependsOn(disk), storage.protectedDevices):
continue
--
1.7.3.2

_______________________________________________
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 07:55 AM.

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