#!/usr/bin/python2.7 # # Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. # from bootmgmt.backend.loader.grub2 import GRUB2MenuEntryEmitter emitter = GRUB2MenuEntryEmitter(force_grub2=True) emitter.target = 'i386-pc' emitter.emit_entries()