liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b1a89ae8c3927d94be33cfb93ed646a5a21a8232
parent 11f2715d18d82949db75521c0cff30bd49730940
Author: Daniel Barlow <dan@telent.net>
Date:   Sat, 15 Apr 2023 17:23:58 +0100

jffs2: squash uids, enable lzo compression

Diffstat:
Mmodules/jffs2.nix | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/modules/jffs2.nix b/modules/jffs2.nix @@ -13,7 +13,14 @@ in ./initramfs.nix ]; config = mkIf (config.rootfsType == "jffs2") { - kernel.config.JFFS2_FS = "y"; + kernel.config = { + JFFS2_FS = "y"; + JFFS2_LZO = "y"; + JFFS2_RTIME = "y"; + JFFS2_COMPRESSION_OPTIONS = "y"; + JFFS2_ZLIB = "y"; + JFFS2_CMODE_SIZE = "y"; + }; boot.initramfs.enable = true; outputs = rec { systemConfiguration = @@ -34,7 +41,7 @@ in }} cp $pkgClosure/registration nix-path-registration grafts=$(sed < $pkgClosure/store-paths 's/^\(.*\)$/--graft \1:\1/g') - mkfs.jffs2 ${endian} -e ${config.hardware.flash.eraseBlockSize} --pad --root $TMPDIR/empty --output $out $grafts + mkfs.jffs2 --compression-mode=size ${endian} -e ${config.hardware.flash.eraseBlockSize} --enable-compressor=lzo --pad --root $TMPDIR/empty --output $out $grafts --squash --faketime ''; jffs2boot = let o = config.outputs; in