From ea8c2529986d04fa6876369f72e6bee912c1297b Mon Sep 17 00:00:00 2001 From: Christopher Spinrath <christopher.spinrath@rwth-aachen.de> Date: Sun, 30 Aug 2015 21:13:18 +0200 Subject: [PATCH] image: introduce mount/umount helper targets --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index e797701..0a3707a 100644 --- a/Makefile +++ b/Makefile @@ -453,6 +453,12 @@ $(IMAGE_DIR)$(GRUB_INSTALL_DIR)/lipinfo.cfg : | $(WORKSPACE) echo "set lip_release=\"$(ISO_RELEASE)\"" >> "$@" echo "set lip_extra_info=\"$(IMAGE_EXTRA_INFO)\"" >> "$@" +image_mount_if : $(IMAGE_PART_FILE) + findmnt --target "$(IMAGE_DIR)" || mount "$(IMAGE_PART_FILE)" "$(IMAGE_DIR)" + +image_umount : + umount -d "$(IMAGE_DIR)" + image : image_content $(GRUB_ASSEMBLE_DIR)/mbr.img #The following target is not used by lipck itself. It may be used to create -- GitLab