Skip to content

Commit

Permalink
Set a timestamp in filesystems to mitigate ostreedev/ostree#3022
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe committed Sep 20, 2023
1 parent 00505a4 commit ff1d297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/ostree/image.ostree.raw
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ partitions=$(mktemp)
# fixme: make disk size dynamic
truncate -s 900M "$efi_partition"
# make_reproducible_vfat $OSTREE_SYSROOT/boot "$efi_partition"
make_reproducible_vfat $boot_dir "$efi_partition"
make_reproducible_vfat -t 11111111 $boot_dir "$efi_partition"
size_uefi=$(du -b "$efi_partition" | awk '{ padded_size = $1 + (MB - ($1 % MB) % MB); print (padded_size / MB) }' "MB=1048576")
part_uuid_uefi=b0e0359c-007b-4361-a0d1-a7ca2d73fe3c
echo -e "$part_uuid_uefi\tuefi\t$size_uefi\t0\t$efi_partition\tEFI" >> "$partitions"

truncate -s 3G "$root_partition"
make_reproducible_ext4 -l ROOT "$MYROOT"/sysroot "$root_partition"
make_reproducible_ext4 -t 11111111 -l ROOT "$MYROOT"/sysroot "$root_partition"
size_rootfs=$(du -b "$root_partition" | awk '{ padded_size = $1 + (MB - ($1 % MB) % MB); print (padded_size / MB) }' "MB=1048576")
part_uuid_rootfs=a9bef950-8218-4888-9f1c-1ad8bb481807
echo -e "$part_uuid_rootfs\tlinux\t$size_rootfs\t0\t$root_partition\tROOT" >> "$partitions"
Expand Down

0 comments on commit ff1d297

Please sign in to comment.