···2829- `util-linux` is now supported on Darwin and is no longer an alias to `unixtools`. Use the `unixtools.util-linux` package for access to the Apple variants of the utilities.
30000031## Other Notable Changes {#sec-release-23.11-notable-changes}
3233- The Cinnamon module now enables XDG desktop integration by default. If you are experiencing collisions related to xdg-desktop-portal-gtk you can safely remove `xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];` from your NixOS configuration.
···2829- `util-linux` is now supported on Darwin and is no longer an alias to `unixtools`. Use the `unixtools.util-linux` package for access to the Apple variants of the utilities.
3031+- `fileSystems.<name>.autoFormat` now uses `systemd-makefs`, which does not accept formatting options. Therefore, `fileSystems.<name>.formatOptions` has been removed.
32+33+- `fileSystems.<name>.autoResize` now uses `systemd-growfs` to resize the file system online in stage 2. This means that `f2fs` and `ext2` can no longer be auto resized, while `xfs` and `btrfs` now can be.
34+35## Other Notable Changes {#sec-release-23.11-notable-changes}
3637- The Cinnamon module now enables XDG desktop integration by default. If you are experiencing collisions related to xdg-desktop-portal-gtk you can safely remove `xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];` from your NixOS configuration.
-16
nixos/modules/system/boot/stage-1-init.sh
···374375 checkFS "$device" "$fsType"
376377- # Optionally resize the filesystem.
378- case $options in
379- *x-nixos.autoresize*)
380- if [ "$fsType" = ext2 -o "$fsType" = ext3 -o "$fsType" = ext4 ]; then
381- modprobe "$fsType"
382- echo "resizing $device..."
383- e2fsck -fp "$device"
384- resize2fs "$device"
385- elif [ "$fsType" = f2fs ]; then
386- echo "resizing $device..."
387- fsck.f2fs -fp "$device"
388- resize.f2fs "$device"
389- fi
390- ;;
391- esac
392-393 # Create backing directories for overlayfs
394 if [ "$fsType" = overlay ]; then
395 for i in upper work; do
···374375 checkFS "$device" "$fsType"
3760000000000000000377 # Create backing directories for overlayfs
378 if [ "$fsType" = overlay ]; then
379 for i in upper work; do
-6
nixos/modules/system/boot/stage-1.nix
···150 copy_bin_and_libs ${pkgs.kmod}/bin/kmod
151 ln -sf kmod $out/bin/modprobe
152153- # Copy resize2fs if any ext* filesystems are to be resized
154- ${optionalString (any (fs: fs.autoResize && (lib.hasPrefix "ext" fs.fsType)) fileSystems) ''
155- # We need mke2fs in the initrd.
156- copy_bin_and_libs ${pkgs.e2fsprogs}/sbin/resize2fs
157- ''}
158-159 # Copy multipath.
160 ${optionalString config.services.multipath.enable ''
161 copy_bin_and_libs ${config.services.multipath.package}/bin/multipath
···588 systemd.services."systemd-backlight@".restartIfChanged = false;
589 systemd.services."systemd-fsck@".restartIfChanged = false;
590 systemd.services."systemd-fsck@".path = [ config.system.path ];
591+ systemd.services."systemd-makefs@" = {
592+ restartIfChanged = false;
593+ path = [ pkgs.util-linux ] ++ config.system.fsPackages;
594+ # Since there is no /etc/systemd/system/systemd-makefs@.service
595+ # file, the units generated in /run/systemd/generator would
596+ # override anything we put here. But by forcing the use of a
597+ # drop-in in /etc, it does apply.
598+ overrideStrategy = "asDropin";
599+ };
600 systemd.services.systemd-random-seed.restartIfChanged = false;
601 systemd.services.systemd-remount-fs.restartIfChanged = false;
602 systemd.services.systemd-update-utmp.restartIfChanged = false;