diff --git a/gnu/build/image.scm b/gnu/build/image.scm index c99446f738..d68fb29e05 100644 --- a/gnu/build/image.scm +++ b/gnu/build/image.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès +;;; Copyright © 2013-2020, 2025 Ludovic Courtès ;;; Copyright © 2016 Christine Lemmer-Webber ;;; Copyright © 2016, 2017 Leo Famulari ;;; Copyright © 2017 Marius Bakke @@ -118,7 +118,14 @@ turn doesn't take any constant overhead into account, force a 1-MiB minimum." (size-in-kib (if (eq? size 'guess) (estimate-partition-size root) - size))))))) + size))))) + + ;; 'mke2fs' does not create directory indexes by default, meaning that + ;; directories have a limit of 65,000 sub-directories, which can be + ;; problematic for the store. To avoid that, run 'e2fsck -D' to create + ;; those directory indexes. See + ;; . + (invoke "e2fsck" "-fDy" target))) (define* (make-f2fs-image partition target root #:key