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-04-2011, 06:02 PM
David Lehman
 
Default Add --boot-drive option to kickstart bootloader command.

---
pyanaconda/kickstart.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 287be38..176bbfc 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -257,7 +257,7 @@ class AutoStep(commands.autostep.FC3_AutoStep):
flags.autostep = 1
flags.autoscreenshot = self.autoscreenshot

-class Bootloader(commands.bootloader.F15_Bootloader):
+class Bootloader(commands.bootloader.F17_Bootloader):
def execute(self):
if self.location == "none":
location = None
@@ -300,6 +300,11 @@ class Bootloader(commands.bootloader.F15_Bootloader):

self.anaconda.bootloader.drive_order = self.driveorder

+ if self.bootDrive:
+ spec = udev_resolve_devspec(self.bootDrive)
+ drive = self.anaconda.storage.devicetree.getDeviceByName(s pec)
+ self.anaconda.bootloader.stage1_drive = drive
+
self.anaconda.dispatch.skip_steps("upgbootloader", "bootloader")

class ClearPart(commands.clearpart.FC3_ClearPart):
--
1.7.3.4

_______________________________________________
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:35 PM.

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