Commit graph

293307 commits

Author SHA1 Message Date
Damien Diederen 7c2adb1d5c nixos/lib/make-ext4-fs: Fix: `resize2fs -M' can leave insufficient slack
The root filesystem resizing step, `resize2fs -M', does not provide any
control over the amount of slack left in the result.  It can produce an
arbitrarily tight fit, depending on how well the payload aligns with
ext4 data structures.

This is problematic, as NixOS must create a few files and directories
during its first boot, before the root is enlarged to match the size of
the containing SD card.

An overly tight fit can cause failures in the first stage:

    mkdir: can't create directory '/mnt-root/proc': No space left on device

or in the second stage:

    install: cannot create directory '/var': No space left on device

A previous version of `make-ext4-fs' (before PR #79368) was explicitly
"reserving" 16 MiB of free space in the final filesystem.  Manually
calculating the size of an ext4 filesystem is a perilous endeavor,
however, and the method it employed was apparently unreliable.

Reverting is consequently not a good option.

A solution would be to create some sort of "balloon" occupying inodes
and blocks in the image prior to invoking `resize2fs -M', and to remove
these temporary files/directories before the compression step.

This changeset takes the simpler approach of simply dropping the
resizing step.

Note that this does *not* result in a larger image in general, as the
current procedure does not truncate the `.img' file anyway.  In fact, it
has been observed to yield *smaller* compressed images---probably
because of some "noise" left after resizing.  E.g., before-vs-after:

    -r--r--r-- 2 root root 607M  1. Jan 1970  nixos-sd-image-21.11pre-git-x86_64-linux.img.zst

    -r--r--r-- 2 root root 606M  1. Jan 1970  nixos-sd-image-21.11pre-git-x86_64-linux.img.zst
2021-05-31 21:35:51 +02:00
R. RyanTM e84e4a5782 groonga: 11.0.2 -> 11.0.3 2021-05-31 19:00:09 +00:00
Ryan Mulligan 311dfcbc46
Merge pull request #125095 from r-ryantm/auto-update/exploitdb
exploitdb: 2021-05-26 -> 2021-05-29
2021-05-31 11:44:32 -07:00
Benjamin Hipple e118da1603 qt5.qtgamepad: actually build module
This was missing from the `callPackage` list, which meant we were not building it at all.
2021-05-31 14:42:46 -04:00
Sebastian Sellmeier bafd47b370
usbutils: 012 -> 013 2021-05-31 20:31:25 +02:00
Simonas Kazlauskas edf1e00086 quodlibet: 4.3.0 -> 4.4.0 2021-05-31 21:17:07 +03:00
Robin Gloster 666075648e
Merge pull request #125029 from r-ryantm/auto-update/elinks
elinks: 0.14.0 -> 0.14.1
2021-05-31 12:54:28 -05:00
Ryan Mulligan 4335222fd5
Merge pull request #125059 from r-ryantm/auto-update/armadillo
armadillo: 10.5.0 -> 10.5.1
2021-05-31 09:57:30 -07:00
Florian Klink 0cd13ae1a3
Merge pull request #125102 from zimbatm/treefmt-0.2.2
treefmt: 0.2.0 -> 0.2.2
2021-05-31 18:39:25 +02:00
zimbatm b634f700cf
treefmt: 0.2.0 -> 0.2.2 2021-05-31 18:21:51 +02:00
Frederik Rietdijk d4d1a000be fix eval 2021-05-31 18:06:19 +02:00
Maciej Krüger ef555f6a0b
Merge pull request #123426 from mattchrist/brscan5 2021-05-31 17:52:16 +02:00
Fabian Affolter 19acfe3828
Merge pull request #125074 from r-ryantm/auto-update/bpytop
bpytop: 1.0.65 -> 1.0.66
2021-05-31 17:41:59 +02:00
Fabian Affolter 2f419e5222
Merge pull request #125067 from r-ryantm/auto-update/cbonsai
cbonsai: 1.1.1 -> 1.2.0
2021-05-31 17:40:21 +02:00
Alyssa Ross 35a0e15ff6 bintools: fix dynamic linker for NetBSD cross
This will fail with an assertion error on native NetBSD, but it
wouldn't have worked anyway.  We can fix that later.
2021-05-31 14:59:14 +00:00
Alyssa Ross 7216862bb0 netbsdCross.ld_elf_so: use same stage's libc
We need netbsdCross.ld_elf_so to be the dynamic linker in cross
netbsd's bintools, but netbsdCross doesn't have a libc in stdenv.  So
instead, use netbsdCross.libc for netbsdCross.ld_elf_so.
2021-05-31 14:59:14 +00:00
John Ericson 603f80066e bintools-wrapper: Add sharedLibraryLoader parameter
This is used instead of `libc_lib` in case the shared library loader /
"interpreter" is not provided by the libc derivation.
2021-05-31 14:59:14 +00:00
Sebastian Sellmeier 19120ab497
sane-airscan: 0.99.24 -> 0.99.26 2021-05-31 16:36:26 +02:00
Ilan Joselevich e442713277 nextcloud-client: 3.2.1 -> 3.2.2 2021-05-31 16:31:07 +02:00
R. RyanTM 285a29f23b exploitdb: 2021-05-26 -> 2021-05-29 2021-05-31 14:28:30 +00:00
Frederik Rietdijk 2e29e12438 python3Packages.typed-settings: init at 0.9.2 2021-05-31 16:19:37 +02:00
Martin Weinelt 5a6d4fe0d1
Merge pull request #124446 from mweinelt/weeslack
weechatScripts.wee-slack: 2.7.0 -> 2.8.0
2021-05-31 16:17:18 +02:00
Tom Sydney Kerckhove 52248df095 php.extensions.snuffleupagus: init at 0.7.0 2021-05-31 16:15:02 +02:00
Fabian Affolter f8beeb6f59 python3Packages.aiodns: 2.0.0 -> 3.0.0 2021-05-31 15:51:55 +02:00
Maciej Krüger cbc1183f1a
Merge pull request #125084 from mkg20001/cintran 2021-05-31 15:46:14 +02:00
R. RyanTM 97c3d70a39 dnsname-cni: 1.1.1 -> 1.2.0 2021-05-31 23:41:06 +10:00
zowoq 72f54c32a6 nixos/podman-network-socket-ghostunnel: move condition to include socket 2021-05-31 23:38:31 +10:00
sveitser 6f6270d477
python3Packages.pyls-black: add patch to fix test 2021-05-31 21:35:11 +08:00
Nikolay Korotkiy 9b257db87d
gpxsee: 9.0 → 9.1 2021-05-31 16:34:10 +03:00
Maciej Krüger 2f89ce1193
cinnamon.cinnamon-translations: 4.8.3 -> 5.0.0 2021-05-31 14:59:25 +02:00
Robert Scott 829b074ee0
Merge pull request #125066 from Ma27/radare2-cve-2021-32613
radare2: add patch for CVE-2021-32613
2021-05-31 13:57:16 +01:00
Maciej Krüger 73b6be1d63
Merge pull request #125080 from Kranzes/bump-cinnamon.nemo
cinnamon.nemo: 4.8.6 -> 5.0.0
2021-05-31 14:54:32 +02:00
taku0 bb2070754c firefox-bin: 88.0.1 -> 89.0 2021-05-31 21:50:53 +09:00
Robert Schütz 5de82b83a3 kdeltachat: unstable-2021-05-22 -> unstable-2021-05-31 2021-05-31 14:36:32 +02:00
Ilan Joselevich 971f2a66a5 cinnamon.nemo: 4.8.6 -> 5.0.0 2021-05-31 15:33:44 +03:00
Robert Hensing 1d781e5c80 podman: Add nixosTests.podman-dnsname to tests 2021-05-31 14:31:09 +02:00
Robert Hensing 54f2f1e5f1 nixos/podman-dnsname: init 2021-05-31 14:31:09 +02:00
Robert Hensing d81631fb98 nixos/podman: Add defaultNetwork.extraPlugins 2021-05-31 14:31:09 +02:00
Robert Hensing efba949352 nixos/containers: Add virtualisation.containers.containersConf.cniPlugins 2021-05-31 14:29:57 +02:00
Robert Hensing 6517779349 dnsname-cni: Use wrapper instead of patch for dnsmasq
The patch proved to be an incomplete solution while developing
nixosTests.podman-dnsname
2021-05-31 14:29:56 +02:00
Robert Hensing 3600a82711
Merge pull request #124921 from zowoq/podman-cni-conf
podman: install cni config
2021-05-31 14:27:10 +02:00
Maximilian Bosch 16ce969340
radare2: add patch for CVE-2021-32613
Closes #124670
See also https://nvd.nist.gov/vuln/detail/CVE-2021-32613
2021-05-31 14:18:18 +02:00
Domen Kožar ec1d8d52a3
Merge pull request #125076 from NixOS/revert-124887-aarch64-darwin
Revert "release.nix: add aarch64-darwin as a supportedSystem"
2021-05-31 14:16:27 +02:00
Graham Christensen 223a1e1bb4
Revert "release.nix: add aarch64-darwin as a supportedSystem" 2021-05-31 08:14:59 -04:00
Ilan Joselevich 29c70d515a jitsi-meet-electron: 2.8.5 -> 2.8.6 2021-05-31 15:09:22 +03:00
R. RyanTM f61dc8420d bpytop: 1.0.65 -> 1.0.66 2021-05-31 12:06:23 +00:00
sveitser 0e7ee4d6a0
python3Packages.black: 20.8b1 -> 21.5b1
- Avoid excluding files during tests by setting a project root.
- Enable some previously disabled tests.
2021-05-31 19:42:44 +08:00
Martin Weinelt 2c1ac935d5
rust-cbindgen: 0.18.0 -> 0.19.0 2021-05-31 13:40:51 +02:00
sternenseemann 10f8f08267 bmake: 20200902 -> 20210420
* Fix varmod-localtime test by setting TZ to an absolute path to the
  appropriate file in TZDIR. This avoids having an extra patch for musl
  which doesn't support TZDIR at all.
* Move tests into checkPhase by applying patch from alpine
* Fix build with musl by disabling deptgt-delete_on_error test (which I
  haven't debugged myself, just copied this from alpine) and fixing a
  test which fails due to differing output from strerror(3) between musl
  and glibc. Also we need to add a shebang to install-sh, otherwise it
  won't be executed in pkgsMusl.
2021-05-31 13:39:35 +02:00
Martin Weinelt bcc35ef63f
firefox: 88.0.1 -> 89.0
https://www.mozilla.org/en-US/firefox/89.0/releasenotes/
2021-05-31 13:31:09 +02:00