The filesystem-cleanup script has recently shown that it can create some
false-positives. By running it on top of the generated images we should
be able to catch these problems during the build stage.
I have unfortunately no way to run this for any add-on packages.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# Create mount points
$(call CREATE_MOUNTPOINTS,$(DIR_TMP)/root)
+ # Run the filesystem cleanup script
+ chroot $(DIR_TMP)/root /usr/local/bin/filesystem-cleanup > $(DIR_TMP)/cleanup.log
+
+ # Check if any files have been deleted
+ [ -s "$(DIR_TMP)/cleanup.log" ]
+
# Create the archive
$(call COMPRESS_ZSTD,$(DIR_TMP)/root,$(DIR_TMP)/cdrom/distro.img)
chroot $(MNThdd) /usr/bin/perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
+ # Run the filesystem cleanup script
+ chroot $(MNThdd) /usr/local/bin/filesystem-cleanup > $(DIR_TMP)/cleanup.log
+
+ # Check if any files have been deleted
+ [ -s "$(DIR_TMP)/cleanup.log" ]
+
# Create /etc/fstab
printf "$(FSTAB_FMT)" "$$(blkid -o value -s UUID $(PART_BOOT))" "/boot" \
"auto" "defaults,nodev,noexec,nosuid" 1 2 > $(MNThdd)/etc/fstab