# $HeadURL$ $LastChangedRevision$ ifndef FACILITY_GRUB_MK FACILITY_GRUB_MK = 1 # In pass #1: load recipe generators # In pass #0: load generated recipes include method-generator.mk # Variables mentioned both in pass#1 and pass#0. # Tell recipe generators what to generate recipes for ifeq ($(PCMS_PASS_NUM),3) all.generator: $(shell encode /etc/default/grub).generator else ifeq ($(PCMS_PASS_NUM),2) else ifeq ($(PCMS_PASS_NUM),1) # The real Makefile else ifeq ($(PCMS_PASS_NUM),0) ifneq ($(HOST_HARDWARE_PROFILE),container) all.facility: grub.facility endif grub.facility: grub2-common.fix kernel-img.fix $(shell encode /etc/default/grub).copy touch $@ grub2-common.fix: $(shell encode /etc/default/grub).copy update-grub touch $@ kernel-img.fix: /etc/kernel-img.conf lineinfile --replace='^do_symlinks =.*' --text='do_symlinks = no' --file=/etc/kernel-img.conf $(RM) /{initrd.img,vmlinuz}{,.old} touch $@ # Prevent update-grub recreating symlinks we've not yet disable. grub2-common.fix: kernel-img.fix endif # PCMS_PASS_NUM endif # FACILITY_GRUB_MK