diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-12-14 10:57:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 10:57:05 +0100 |
commit | 3d11b46bf72d85f1305876140a560e1e4be628db (patch) | |
tree | d9a8317da1c0ca97e739e6cf6b9c6b1912f9bcbc /src/hwdb | |
parent | machine-credential: introduce MachineCredentialContext (diff) | |
download | systemd-3d11b46bf72d85f1305876140a560e1e4be628db.tar.xz systemd-3d11b46bf72d85f1305876140a560e1e4be628db.zip |
Add $SYSTEMD_HWDB_UPDATE_BYPASS (#30463)
Same as $KERNEL_INSTALL_BYPASS, but for hwdb. This will speed up
cross architecture image builds in mkosi as I can disable package
managers from running the costly hwdb update stuff in qemu user
mode and run it myself with a native systemd-hwdb with --root=.
Diffstat (limited to 'src/hwdb')
-rw-r--r-- | src/hwdb/hwdb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hwdb/hwdb.c b/src/hwdb/hwdb.c index 4287b1f066..861dac0fd1 100644 --- a/src/hwdb/hwdb.c +++ b/src/hwdb/hwdb.c @@ -22,6 +22,9 @@ static int verb_query(int argc, char *argv[], void *userdata) { } static int verb_update(int argc, char *argv[], void *userdata) { + if (hwdb_bypass()) + return 0; + return hwdb_update(arg_root, arg_hwdb_bin_dir, arg_strict, false); } |