github.com/rkt/rkt@v1.30.1-0.20200224141603-171c416fac02/stage1/usr_from_kvm/files.mk (about) 1 $(call setup-stamp-file,UFKF_STAMP) 2 UFKF_DIR := $(MK_SRCDIR)/files 3 UFKF_BASE := $(S1_RF_ACIROOTFSDIR) 4 UFKF_REST := var/run 5 UFKF_DIR_CHAIN := $(call dir-chain,$(UFKF_BASE),$(UFKF_REST)) 6 UFKF_VAR_RUN := $(UFKF_BASE)/$(UFKF_REST) 7 8 UFKF_ACI_FILES := \ 9 $(S1_RF_ACIROOTFSDIR)/etc/passwd \ 10 $(S1_RF_ACIROOTFSDIR)/etc/shadow \ 11 $(S1_RF_ACIROOTFSDIR)/usr/lib64/systemd/system/sshd.socket \ 12 $(S1_RF_ACIROOTFSDIR)/etc/group \ 13 $(S1_RF_ACIROOTFSDIR)/etc/ssh/sshd_config \ 14 $(S1_RF_ACIROOTFSDIR)/usr/lib64/systemd/system/sshd-prep.service \ 15 $(S1_RF_ACIROOTFSDIR)/usr/lib64/systemd/system/sshd@.service 16 17 UFKF_SRC_FILES := $(addprefix $(UFKF_DIR)/,$(notdir $(UFKF_ACI_FILES))) 18 19 S1_RF_SECONDARY_STAMPS += $(UFKF_STAMP) 20 S1_RF_INSTALL_FILES += $(call install-file-triplets,$(UFKF_SRC_FILES),$(UFKF_ACI_FILES),0644) 21 S1_RF_INSTALL_DIRS += \ 22 $(addsuffix :0755,$(UFKF_DIR_CHAIN) $(sort $(call to-dir,$(UFKF_ACI_FILES)))) 23 24 $(call generate-stamp-rule,$(UFKF_STAMP),$(UFKF_ACI_FILES),$(UFKF_VAR_RUN)) 25 26 $(call undefine-namespaces,UFKF)