Skip to content
Snippets Groups Projects
Commit ce3380b6 authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

image_mount_if: make sure the mount point exists

parent 483e28ba
Branches pyzabbix
No related tags found
No related merge requests found
...@@ -454,6 +454,7 @@ $(IMAGE_DIR)$(GRUB_INSTALL_DIR)/lipinfo.cfg : | $(WORKSPACE) ...@@ -454,6 +454,7 @@ $(IMAGE_DIR)$(GRUB_INSTALL_DIR)/lipinfo.cfg : | $(WORKSPACE)
echo "set lip_extra_info=\"$(IMAGE_EXTRA_INFO)\"" >> "$@" echo "set lip_extra_info=\"$(IMAGE_EXTRA_INFO)\"" >> "$@"
image_mount_if : $(IMAGE_PART_FILE) image_mount_if : $(IMAGE_PART_FILE)
mkdir -p "$(IMAGE_DIR)"
findmnt --target "$(IMAGE_DIR)" || mount "$(IMAGE_PART_FILE)" "$(IMAGE_DIR)" findmnt --target "$(IMAGE_DIR)" || mount "$(IMAGE_PART_FILE)" "$(IMAGE_DIR)"
image_umount : image_umount :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment