Skip to content
Snippets Groups Projects
Commit ed1b492d authored by Julian Rother's avatar Julian Rother
Browse files

Makefile: Correct calculation of filesystem.size

This should fix that the progress bar shows 100% for most of the installation
process.

Reference: https://help.ubuntu.com/community/LiveCDCustomizationFromScratch
parent e2094e2b
No related branches found
No related tags found
No related merge requests found
...@@ -308,9 +308,8 @@ $(call gentargets,$(CHECKSUMS)) : $(call archdir,%)$(STATE_DIR)/rootfs_remastere ...@@ -308,9 +308,8 @@ $(call gentargets,$(CHECKSUMS)) : $(call archdir,%)$(STATE_DIR)/rootfs_remastere
rootfs_fssize: $(ARCH_DIR)/filesystem.size rootfs_fssize: $(ARCH_DIR)/filesystem.size
$(call gentargets,/filesystem.size) : $(call archdir,%)$(STATE_DIR)/rootfs_remastered $(call gentargets,/filesystem.size) : $(call archdir,%)$(STATE_DIR)/rootfs_remastered
IN_BYTES=$$(du -s "$(call archdir,$*)$(ROOTFS)"|cut -f1) && \ IN_BYTES=$$(du -sx --block-size=1 "$(call archdir,$*)$(ROOTFS)"|cut -f1) && \
IN_SECTORS=$$(($$IN_BYTES * 512)) && \ echo $$IN_BYTES > $(call archdir,$*)/filesystem.size
echo $$IN_SECTORS > $(call archdir,$*)/filesystem.size
rootfs_deduplicate $(COMMON_DIR)$(STATE_DIR)/rootfs_deduplicated: $(PRIMARY_ARCH_DIR)$(CHECKSUMS) $(SECONDARY_ARCH_DIR)$(CHECKSUMS) rootfs_deduplicate $(COMMON_DIR)$(STATE_DIR)/rootfs_deduplicated: $(PRIMARY_ARCH_DIR)$(CHECKSUMS) $(SECONDARY_ARCH_DIR)$(CHECKSUMS)
mkdir -p "$(COMMON_DIR)$(STATE_DIR)" mkdir -p "$(COMMON_DIR)$(STATE_DIR)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment