airgap/config/buildroot/patches/deterministic-iso9660.patch

38 lines
1.1 KiB
Diff
Raw Normal View History

2020-07-12 09:45:12 +00:00
diff --git a/fs/iso9660/iso9660.mk b/fs/iso9660/iso9660.mk
2020-10-18 00:12:59 +00:00
index a129655ce3..1adaf15923 100644
2020-07-12 09:45:12 +00:00
--- a/fs/iso9660/iso9660.mk
+++ b/fs/iso9660/iso9660.mk
@@ -24,7 +24,7 @@
ROOTFS_ISO9660_BOOT_MENU = $(call qstrip,$(BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU))
-ROOTFS_ISO9660_DEPENDENCIES = host-cdrkit linux
+ROOTFS_ISO9660_DEPENDENCIES = host-xorriso host-cdrkit linux
ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
ROOTFS_ISO9660_USE_INITRD = YES
2020-10-18 00:12:59 +00:00
@@ -129,10 +129,20 @@ ROOTFS_ISO9660_PRE_GEN_HOOKS += ROOTFS_ISO9660_DISABLE_EXTERNAL_INITRD
2020-07-12 09:45:12 +00:00
endif # ROOTFS_ISO9660_USE_INITRD
define ROOTFS_ISO9660_CMD
- $(HOST_DIR)/bin/genisoimage -J -R -b $(ROOTFS_ISO9660_BOOT_IMAGE) \
- -no-emul-boot -boot-load-size 4 -boot-info-table \
+ $(HOST_DIR)/bin/xorriso \
+ -as mkisofs \
2020-10-18 00:12:59 +00:00
+ -R \
+ -joliet \
+ -eltorito-boot $(ROOTFS_ISO9660_BOOT_IMAGE) \
+ -no-emul-boot \
+ -boot-load-size 4 \
+ -boot-info-table \
2020-07-12 09:45:12 +00:00
$(ROOTFS_ISO9660_GENISOIMAGE_OPTS) \
2020-10-18 00:12:59 +00:00
- -o $@ $(ROOTFS_ISO9660_TMP_TARGET_DIR)
+ -o $@ $(ROOTFS_ISO9660_TMP_TARGET_DIR) \
+ -- \
+ -uid 0 \
+ -gid 0 \
+ -volume_date all_file_dates "=$(SOURCE_DATE_EPOCH)"
endef
2020-10-18 00:12:59 +00:00
ifeq ($(BR2_TARGET_ROOTFS_ISO9660_HYBRID),y)