From eb981a5b9b1a765f98312c209f60d170a77bb25f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 20 Nov 2023 11:51:47 +0100 Subject: [PATCH] mime: register confext/sysext images in shared-mime-info This make them recognized by file managers and stuff. Maybe one day we should properly register mime types in the "vnd." namespace with IANA, but I am too lazy to deal with the bureaucracy for that, hence let's stick with the x. namespace for now. This defines confext/sysext DDIs as subtype of: https://www.iana.org/assignments/media-types/application/vnd.efi.img Which is what everyone appears to use for raw disk images, in particular if they contain a GPT partition table. --- meson.build | 3 +++ mime/io.systemd.xml | 13 +++++++++++++ mime/meson.build | 3 +++ 3 files changed, 19 insertions(+) create mode 100644 mime/io.systemd.xml create mode 100644 mime/meson.build diff --git a/meson.build b/meson.build index 56bdc39c3dc..06033b8b627 100644 --- a/meson.build +++ b/meson.build @@ -176,6 +176,7 @@ repartdefinitionsdir = libexecdir / 'repart/definitions' ntpservicelistdir = prefixdir / 'lib/systemd/ntp-units.d' credstoredir = prefixdir / 'lib/credstore' pcrlockdir = prefixdir / 'lib/pcrlock.d' +mimepackagesdir = prefixdir / 'share/mime/packages' configfiledir = get_option('configfiledir') if configfiledir == '' @@ -2236,6 +2237,8 @@ subdir('src/fuzz') subdir('src/ukify/test') # needs to be last for test_env variable subdir('test/fuzz') +subdir('mime') + alias_target('devel', libsystemd_pc, libudev_pc, systemd_pc, udev_pc) ############################################################ diff --git a/mime/io.systemd.xml b/mime/io.systemd.xml new file mode 100644 index 00000000000..8b95cef9a53 --- /dev/null +++ b/mime/io.systemd.xml @@ -0,0 +1,13 @@ + + + + + System Extension DDI + + + + + Configuration Extension DDI + + + diff --git a/mime/meson.build b/mime/meson.build new file mode 100644 index 00000000000..17bc043f4ec --- /dev/null +++ b/mime/meson.build @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +install_data('io.systemd.xml', install_dir : mimepackagesdir)