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 Kernel Team

 
 
LinkBack Thread Tools
 
Old 03-12-2010, 02:16 PM
Chris Lumens
 
Default Before running shouldClear, make sure a real disk was specified (#572523).

The following patch should also be applied to rhel6-branch in the future. I
suppose it could also be considered for f13-branch, but it's not quite that
critical. Anyone else's thoughts on that?

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-12-2010, 02:16 PM
Chris Lumens
 
Default Before running shouldClear, make sure a real disk was specified (#572523).

---
kickstart.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index 36908d0..9803e3a 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -703,6 +703,9 @@ class PartitionData(commands.partition.F12_PartData):
names = [self.disk, "mapper/" + self.disk]
for n in names:
disk = devicetree.getDeviceByName(udev_resolve_devspec(n) )
+ if not disk:
+ raise KickstartValueError, formatErrorMsg(self.lineno, msg="Specified nonexistent disk %s in partition command" % disk)
+
should_clear = shouldClear(disk,
storage.clearPartType,
storage.clearPartDisks)
--
1.6.5.1

_______________________________________________
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 08:12 AM.

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