Skip to content

Commit

Permalink
v9.4
Browse files Browse the repository at this point in the history
- DietPi-Imager | Strangely, touch -t '197001010000' on the FAT filesystem leads to a 1980 timestamp, while only 197001010001 on the ext4 197001010001 gave the intended 1970 timestamp, sadly just older, so all configs were copied, even when not edited. I wasn't able to replicate locally when running these commands on a FAT filesytem file, but let's try with a more recent year, and a positive second in both cases.
  • Loading branch information
MichaIng committed May 12, 2024
1 parent 92fc5e1 commit 522409f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .build/images/dietpi-imager
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,8 @@
do
[[ -f $root_mountpoint/boot/$f ]] || continue
G_EXEC cp "$root_mountpoint/boot/$f" "$fat_mountpoint/"
TZ=UTC G_EXEC touch -t '197001010000' "$fat_mountpoint/${f#extlinux/}"
TZ=UTC G_EXEC touch -t '197001010001' "$root_mountpoint/boot/$f"
TZ=UTC G_EXEC touch -t '202101010001' "$fat_mountpoint/${f#extlinux/}"
TZ=UTC G_EXEC touch -t '202101010002' "$root_mountpoint/boot/$f"
done
cat << '_EOF_' > "$fat_mountpoint/README.txt"
DietPi config partition
Expand Down

0 comments on commit 522409f

Please sign in to comment.