]> git.ipfire.org Git - thirdparty/systemd.git/commit
kmod-setup: bypass heavy virtio-rng check if we are not running in a VM anyway 27320/head
authorLennart Poettering <lennart@poettering.net>
Tue, 18 Apr 2023 08:48:54 +0000 (10:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 18 Apr 2023 08:52:04 +0000 (10:52 +0200)
commit0a5d3c0b5bfee68102de6345a3cd5580fbd5da02
treef7a19deffe57e1e7e3258b67206c1145fc64917a
parentfa505db314ba74c71e5165c8857009ff9e7d4641
kmod-setup: bypass heavy virtio-rng check if we are not running in a VM anyway

detect_vm() is cheap, because cached, let's hence do that early before
we get out the big guns and sweep through sysfs.
src/core/kmod-setup.c