From b02f3e797a8b5bc6c730223fa83468b7fa3b528f Mon Sep 17 00:00:00 2001 From: Steffen Winterfeldt Date: Thu, 27 Feb 2020 13:34:42 +0100 Subject: [PATCH] move #stage1 method into Grub2Base That is needed as ProposalClient expects a unified view of the bootloader class it works on. --- src/lib/bootloader/grub2.rb | 1 - src/lib/bootloader/grub2base.rb | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/bootloader/grub2.rb b/src/lib/bootloader/grub2.rb index 057aa773d..04da8f590 100644 --- a/src/lib/bootloader/grub2.rb +++ b/src/lib/bootloader/grub2.rb @@ -16,7 +16,6 @@ module Bootloader # Represents non-EFI variant of GRUB2 class Grub2 < Grub2Base - attr_reader :stage1 attr_reader :device_map def initialize diff --git a/src/lib/bootloader/grub2base.rb b/src/lib/bootloader/grub2base.rb index b0791a39d..e0ec0e070 100644 --- a/src/lib/bootloader/grub2base.rb +++ b/src/lib/bootloader/grub2base.rb @@ -54,6 +54,8 @@ class Grub2Base < BootloaderBase # @return [::Bootloader::SerialConsole] serial console or nil if none attr_reader :console + attr_reader :stage1 + def initialize super