Today, I ran a Fedora update that included a new kernel. The Makefile worked 
properly!
Remember that the indented lines need TAB characters should you copy this from 
the email.

The Makefile:

.SUFFIXES:
.PHONY: all upgrade

all: upgrade .make.grubenv

upgrade:
        dnf upgrade

### dnf bug where a kernel upgrade changes the default boot target
### we need to boot with the Xen hypervisor for the guest OS
###
.make.grubenv: /boot/grub2/grubenv
        grub2-editenv list
        grub2-set-default 'Fedora, with Xen hypervisor'
        touch $@

-- 
Lloyd Kvam
Venix
DLSLUG/GNHLUG library
http://dlslug.org/library.html
http://www.librarything.com/catalog/dlslug
http://www.librarything.com/catalog/dlslug&sort=stamp
http://www.librarything.com/rss/recent/dlslug



_______________________________________________
DLSLUG-Announce mailing list
dlslug-annou...@dlslug.org
https://mail.dlslug.org/mailman/listinfo/dlslug-announce
_______________________________________________
gnhlug-announce mailing list
gnhlug-announce@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-announce/

Reply via email to