[PATCH 2/7] Add --boot-drive option to kickstart bootloader command.

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

 



---
 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(spec)
+                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@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