# $HeadURL$ $LastChangedRevision$ ifndef FILE_FSTAB_MK FILE_FSTAB_MK = 1 # In pass #1: load recipe generators # In pass #0: load generated recipes include method-fstabent.mk # Tell recipe generators what to generate recipes for ifeq ($(PCMS_PASS_NUM),1) all.fstabent: $(shell encode UUID=$(shell df -P /boot | sed -e 1d -e 's/ .*//' | xargs lsblk --noheadings -o UUID) /boot ext4 defaults,noatime,nodiratime 0 2).fstabent all.fstabent: $(shell encode /dev/mapper/vg0-root / ext4 errors=remount-ro,noatime,nodiratime 0 1).fstabent all.fstabent: $(shell encode tmpfs /tmp tmpfs nodev,nosuid 0 0).fstabent # The real Makefile else ifeq ($(PCMS_PASS_NUM),0) # It is intentional that /etc/fstab is a dependency and a side-product. fstab.file: /etc/fstab $(FSTABENT_FILES) msg --progname=$(PROGNAME) --debug=$(VERBOSELEVEL) info "combining fstabents ..." cat $(FSTABENT_FILES) /dev/null > /etc/fstab mount -a swapon -a touch $@ # Stuff that is allowed not to exist. /etc/fstab: ; endif # PCMS_PASS_NUM endif # FILE_FSTAB_MK