Skip to content

Commit

Permalink
Fix y2038 file system warnings (#1589)
Browse files Browse the repository at this point in the history
* Bump buildroot

* buildroot 3c5f87185d...5ffdf6ccc5 (1):
  > package/e2fsprogs: Create y2038 capable file systems by default

* Use inode size of 256 bytes for overlayfs

By default older versions of mkfs.ext4 create file systems with inode
size of 128 bytes. This does not allow for 64-bit timestamps, which
leads to y2038 compatibility warnings. Use 256 bytes inodes.
  • Loading branch information
agners authored Oct 13, 2021
1 parent 53dcfd3 commit b211c65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildroot
2 changes: 1 addition & 1 deletion buildroot-external/scripts/hdd-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function create_overlay_image() {

rm -f "${overlay_img}"
truncate --size="${OVERLAY_SIZE}" "${overlay_img}"
mkfs.ext4 -L "hassos-overlay" -E lazy_itable_init=0,lazy_journal_init=0 "${overlay_img}"
mkfs.ext4 -L "hassos-overlay" -I 256 -E lazy_itable_init=0,lazy_journal_init=0 "${overlay_img}"
}


Expand Down

0 comments on commit b211c65

Please sign in to comment.