1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-19 17:39:34 +00:00
Commit graph

271204 commits

Author SHA1 Message Date
rnhmjoj 9be0529210
nixos/console: fix console setting reloading
It's a dull and boring day, it's cold outside and I'm stuck at home: let
me tell you the story of systemd-vconsole-setup.

In the beginnings of NixOS[1], systemd-vconsole-setup was a powerful
sysinit.target unit, installed and running at boot to set up fonts
keyboard layouts and even colors of the virtual consoles. If needed, the
service would also be restarted after a configuration change, consoles
were happy and everything was good, well, almost.

Since the service had no way to specify the dependency "ttys are ready",
modesetting could sometimes happen *after* systemd-vconsole-setup had
started, leaving the console in a broken state. So abbradar worked
around that by putting a systemd-udev-settle `After=`.

In the meanwhile, probably realizing their mistake, systemd added a
shiny udev rule to start the systemd-udev-settle at the right time[2].
However, the rule bypassed systemd by directly running the binary
`systemd-udev-settle`, and the service - though still installed - fell
into disuse.

Two years would pass before a good samaritan, seeing the poor jobless
systemd-udev-settle service, decided to give it the coup de grâs[3] by
unlisting it from the installed units.
This, combined with another bug, caused quite a commotion[4] in NixOS;
to see why remember the fact that `WantedBy=` in upstream units doesn't
work[5], so it had to be added manually in cc542110, but while systemd
removed it, the NixOS unit continued to install and restart the service,
making a lot of fuss when switching configuration.

After at least thee different tentative fixes, deedrah realised[6] what
the root cause was and fpletz put the final nail[7] in the coffin of
systemd-udev-settle. The service would never see the light of a boot
again, NixOS would not restart it all the time but thanks to udev
consoles would still get their pretty fonts and playful colors.

The En..

..no, wait! You should ask what came of systemd-udev-settle, first.
And why is the service even around if udev is doing all the work?

Udev-settle, like the deceitful snake that he is, laid hidden for years.
He looks innocuous doesn't it? A little hack. Only until it leaves his
den and a poor user[8] drops dead. Obviously, it serves no purpose, as
the service is not part of the boot process anymore, so let's remove it
for good!

About the service, it may not be useful at boot, but it can be started
to pick up changes in vconsole.conf and set the consoles accordingly.
But wait, this doesn't work anymore: the service is never started at
boot (remember f76d2aa6), so switch-to-configuration.pl will not restart
it. Fortunately it can be repaired: here I install a new unit which
does *nothing* on start, but restarts the real service when reloaded.
This perfectly reproduces the original behavior, hopefully without the
original bugs too.

The End?

[1]: cc54211069
[2]: f6ba8671d8 (diff-84849fddcef81458f69725dc18c6614aade5c4f41a032b6908ebcf1ee6740636)
[3]: 8125e8d38e
[4]: https://web.archive.org/web/20180603130107/https://github.com/NixOS/nixpkgs/issues/22470
[5]: https://github.com/NixOS/nixpkgs/issues/81138
[6]: https://web.archive.org/web/20180603130107/https://github.com/NixOS/nixpkgs/issues/22470#issuecomment-330930456
[7]: f76d2aa6e3
[8]: https://github.com/NixOS/nixpkgs/issues/107341
2021-02-21 10:27:34 +01:00
Sandro a2bbdf6ec6
Merge pull request #113593 from r-ryantm/auto-update/oatpp
oatpp: 1.2.0 -> 1.2.5
2021-02-18 19:24:53 +01:00
Sandro 1ce78fe31e
Merge pull request #113598 from ilian/a/vim-plugins 2021-02-18 19:23:01 +01:00
Michael Weiss a1aec6be0b
cargo-c: 0.7.2 -> 0.7.3 2021-02-18 19:06:36 +01:00
Sandro d73afe9462
Merge pull request #113604 from ymatsiuk/fluxcd
fluxcd: 0.8.0 -> 0.8.1
2021-02-18 17:03:13 +01:00
Sandro 7b933d7936
Merge pull request #112687 from fabaff/bump-python39Packages.papermill 2021-02-18 16:53:33 +01:00
Fabian Affolter db9a9f95aa home-assistant: update component-packages 2021-02-18 07:50:23 -08:00
Fabian Affolter f16fcc0ba5 python3Packages.librouteros: init at 3.1.0 2021-02-18 07:50:23 -08:00
Daniël de Kok 6e10cf2c1c
Merge pull request #108045 from mmilata/moinmoin-module-fix
nixos/moinmoin: fix module by switching to eventlet worker
2021-02-18 16:13:22 +01:00
Daniël de Kok 75107e0f77
Merge pull request #113595 from danieldk/moinmoin-1.9.11
moinmoin: 1.9.10 -> 1.9.11
2021-02-18 16:06:35 +01:00
Yurii Matsiuk 127ada735d
fluxcd: 0.8.0 -> 0.8.1 2021-02-18 15:59:52 +01:00
Peter Hoeg c382780e9b nixos/bluetooth: fix more stupidity on my part
Say this 10 times so I don't forget:

 - just because something has been tested and confirmed working, doesn't
   mean that a trivial change can go in without testing simply because
   it looks OK. test, test, test.
 - just because something has been tested and confirmed working, doesn't
   mean that a trivial change can go in without testing simply because
   it looks OK. test, test, test.
 - just because something has been tested and confirmed working, doesn't
   mean that a trivial change can go in without testing simply because
   it looks OK. test, test, test.
 - just because something has been tested and confirmed working, doesn't
   mean that a trivial change can go in without testing simply because
   it looks OK. test, test, test.
 - just because something has been tested and confirmed working, doesn't
   mean that a trivial change can go in without testing simply because
   it looks OK. test, test, test.
 - just because something has been tested and confirmed working, doesn't
   mean that a trivial change can go in without testing simply because
   it looks OK. test, test, test.
 - just because something has been tested and confirmed working, doesn't
   mean that a trivial change can go in without testing simply because
   it looks OK. test, test, test.
 - just because something has been tested and confirmed working, doesn't
   mean that a trivial change can go in without testing simply because
   it looks OK. test, test, test.
 - just because something has been tested and confirmed working, doesn't
   mean that a trivial change can go in without testing simply because
   it looks OK. test, test, test.
 - just because something has been tested and confirmed working, doesn't
   mean that a trivial change can go in without testing simply because
   it looks OK. test, test, test.

I'm sorry guys.
2021-02-18 14:54:19 +00:00
Maximilian Bosch 0972cacdbe
vorta: 0.7.2 -> 0.7.3
ChangeLog: https://github.com/borgbase/vorta/releases/tag/v0.7.3
2021-02-18 15:46:12 +01:00
Michael Weiss 7b41fd7bff
signal-desktop: 1.39.6 -> 1.40.0 2021-02-18 15:41:03 +01:00
Michael Weiss b78942f040
tdesktop: 2.5.8 -> 2.5.9 2021-02-18 15:32:07 +01:00
Jörg Thalheim 7befee4ed7
Merge pull request #113586 from r-ryantm/auto-update/nix-direnv
nix-direnv: 1.2.1 -> 1.2.3
2021-02-18 14:31:05 +00:00
Oleksii Filonenko 5e51bbc9a3
Merge pull request #113591 from r-ryantm/auto-update/nushell
nushell: 0.26.0 -> 0.27.0
2021-02-18 16:24:11 +02:00
ilian ab3d9501c4 vimPlugins.vim-clap: fix maple hash 2021-02-18 15:08:06 +01:00
"ilian" 0edae14687 vimPlugins.vim-startuptime: init at 2021-01-11 2021-02-18 14:15:07 +01:00
"ilian" 690fce667e vimPlugins.sonokai: init at 2021-02-14 2021-02-18 14:13:03 +01:00
"ilian" 67f8104a59 vimPlugins.vim-gruvbox8: init at 2021-02-06 2021-02-18 14:11:18 +01:00
"ilian" 78dbdf8ea0 vimPlugins: update 2021-02-18 14:10:35 +01:00
Daniël de Kok 83aadda3b5 moinmoin: 1.9.10 -> 1.9.11
Fixes CVE-2020-25074 and CVE-2020-15275:

https://github.com/moinwiki/moin-1.9/blob/1.9.11/docs/CHANGES#L13
2021-02-18 13:58:44 +01:00
Eelco Dolstra 2e9689d055
Merge pull request #113590 from armijnhemel/ncompress-5.0
ncompress: 4.2.4.6 -> 5.0
2021-02-18 13:50:33 +01:00
R. RyanTM 7f66dbac8f oatpp: 1.2.0 -> 1.2.5 2021-02-18 12:50:08 +00:00
R. RyanTM 9d9921e3da nushell: 0.26.0 -> 0.27.0 2021-02-18 12:36:35 +00:00
Armijn Hemel 9e8284afd5 remove patch in default.nix as well 2021-02-18 13:35:13 +01:00
Sandro b98031a49c
Merge pull request #113557 from r-ryantm/auto-update/flatpak-builder
flatpak-builder: 1.0.11 -> 1.0.12
2021-02-18 13:32:40 +01:00
Sandro 77537afdec
Merge pull request #113546 from bbigras/swappy
swappy: 1.2.1 -> 1.3.0
2021-02-18 13:32:12 +01:00
Armijn Hemel 4747d9ea90 ncompress: patch is no longer necessary since 4.2.4.6 2021-02-18 13:32:06 +01:00
Armijn Hemel 5abd0ceeb5 ncompress: 4.2.4.6 -> 5.0 2021-02-18 13:28:34 +01:00
R. RyanTM 9a73f86cad nix-direnv: 1.2.1 -> 1.2.3 2021-02-18 12:22:50 +00:00
Sandro 266b6cdea3
Merge pull request #113513 from raboof/inkscape-enable-eps-import
inkscape: ps and eps import
2021-02-18 13:12:58 +01:00
Sandro cc19a6173f
Merge pull request #113307 from iAmMrinal0/init/authy
authy: init at 1.8.3
2021-02-18 13:05:53 +01:00
Sandro 7ec23be044
Merge pull request #99348 from bryanasdev000/package-kubectl-example
kubectl-example: init at 1.0.1
2021-02-18 13:00:21 +01:00
Guillaume Girol 5d7cecc090
Merge pull request #112857 from r-burns/grub-cross
grub2: fix cross-compilation
2021-02-18 11:57:46 +00:00
Sandro ab82f50e87
Merge pull request #113516 from arcz/mfgtools
nxpmicro-mfgtools: 1.4.43 -> 1.4.72
2021-02-18 12:38:33 +01:00
Sandro a400f564c5
Merge pull request #113539 from tpwrules/fix-g2o-cholmod 2021-02-18 12:38:10 +01:00
Sandro 499bada83b
Merge pull request #113141 from SCOTT-HAMILTON/formiko
formiko: init at 1.4.3
2021-02-18 12:37:30 +01:00
Sandro f5e69e0e98
Merge pull request #106074 from sternenseemann/zettlr-1.8.1 2021-02-18 12:36:40 +01:00
Sandro 2278dadbdf
Merge pull request #113523 from fabaff/stressapptest
stressapptest: init at 1.0.9
2021-02-18 12:34:49 +01:00
Sandro ef23b15078
Merge pull request #112167 from siraben/ticker-init 2021-02-18 12:33:52 +01:00
Sandro 8eedaa9699
Merge pull request #113352 from figsoda/xtrt
xtrt: init at 61884fb
2021-02-18 12:33:16 +01:00
Sandro a56d4ff21c
Merge pull request #113273 from maxhbr/add-gopass-jsonapi 2021-02-18 12:27:32 +01:00
Sandro 6c004c3c82
Merge pull request #113527 from fabaff/wafw00f
wafw00f: init at 2.1.0
2021-02-18 12:24:27 +01:00
Sandro a9ad537c11
Merge pull request #113535 from mweinelt/python/pyrmvtransport
python3Packages.PyRMVtransport: 0.2.10 -> 0.3.0
2021-02-18 12:23:38 +01:00
Michael Weiss 849bd20271
chromiumBeta: 89.0.4389.47 -> 89.0.4389.58 2021-02-18 12:13:16 +01:00
Sandro 87abd5c0aa
Merge pull request #104694 from rissson/kivy-2.0 2021-02-18 12:11:46 +01:00
Jacek Galowicz bc7a369c68
Merge pull request #112961 from r-burns/nixos-test-grub
nixosTests.installer: fix non-zfs grub tests
2021-02-18 11:58:57 +01:00
Michael Weiss eecade6b3e
Merge pull request #113313 from primeos/nix-prefetch-git-avoid-initial-branch-warnings
nix-prefetch-git: Run git-init with --initial-branch=master
2021-02-18 11:53:11 +01:00