# $HeadURL$ $LastChangedRevision$ ifndef FACILITY_GRUB_MK FACILITY_GRUB_MK = 1 # In pass #1: load recipe generators # In pass #0: load generated recipes # I have no idea why I said grub depends on hostname! Commenting it out for # the time being. #include facility-hostname.mk include method-copy.mk # Variables mentioned both in pass#1 and pass#0. # Tell recipe generators what to generate recipes for ifeq ($(PCMS_PASS_NUM),1) all.copy: $(shell encode /etc/default/grub).copy # The real Makefile else ifeq ($(PCMS_PASS_NUM),0) all.facility: grub.facility grub.facility: grub2-common.fix kernel-img.fix 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