###############################################################################
# Installation Details
###############################################################################
-MNThdd := /install/harddisk
-IMG := /install/images/image.img
+MNThdd := $(DIR_TMP)/harddisk
+IMG := $(DIR_TMP)/image.img
# All sizes in blocks
ifeq "$(BUILD_PLATFORM)" "arm"
# Install IPFire
ifneq "$(BUILD_PLATFORM)" "arm"
- tar -x --xz -C $(MNThdd)/ -f /install/cdrom/distro.img
+ tar $(TAR_OPTIONS) -x --xz -C $(MNThdd)/ -f $(DIR_TMP)/cdrom/distro.img
else
- tar -x -C $(MNThdd)/ -f /install/cdrom/distro.img
+ tar $(TAR_OPTIONS) -x -C $(MNThdd)/ -f $(DIR_TMP)/cdrom/distro.img
endif
-touch $(MNThdd)/lib/modules/$(KVER)-ipfire/modules.dep
mkdir $(MNThdd)/proc
rm -f $(MNThdd)/etc/grub.d/11_linux_scon
endif
-ifeq "$(BUILD_ARCH)" "armv5tel"
+ifeq "$(BUILD_PLATFORM)" "arm"
# Insert the UUID to uENV.txt
sed -i $(MNThdd)/boot/uENV.txt \
-e "s/^root_dev=.*/root_dev=UUID=$$(blkid -o value -s UUID $(PART_ROOT))/g"
# Compress Image
xz $(XZ_OPT) < $(IMG) > $(IMAGE_FILE)
- rm -rf $(IMG) $(MNThdd)
+ rm -rf $(IMG) $(MNThdd) $(DIR_TMP)/cdrom