lib/getch/gentoo/bootloader.rb in getch-0.7.3 vs lib/getch/gentoo/bootloader.rb in getch-0.11.0
- old
+ new
@@ -24,11 +24,15 @@
Config::Grub.new
else
bootctl
end
- # ChrootOutput.new('emerge --config sys-kernel/gentoo-kernel')
- ChrootOutput.new('emerge --config sys-kernel/gentoo-kernel-bin') # should also reload grub-mkconfig
+ # should also reload grub-mkconfig
+ if OPTIONS[:binary]
+ ChrootOutput.new('emerge --config sys-kernel/gentoo-kernel-bin')
+ else
+ ChrootOutput.new('emerge --config sys-kernel/gentoo-kernel')
+ end
end
def bootctl
if @boot
with_boot