/systemd-251/man/ |
D | check-os-release-simple.py | 5 os_release = platform.freedesktop_os_release() variable 7 pretty_name = os_release.get('PRETTY_NAME', 'Linux') 10 if 'fedora' in [os_release.get('ID', 'linux'), 11 *os_release.get('ID_LIKE', '').split()]:
|
D | check-os-release.py | 29 os_release = dict(read_os_release()) variable 31 pretty_name = os_release.get('PRETTY_NAME', 'Linux') 34 if 'debian' in [os_release.get('ID', 'linux'), 35 *os_release.get('ID_LIKE', '').split()]:
|
D | check-os-release.sh | 4 test -e /etc/os-release && os_release='/etc/os-release' || os_release='/usr/lib/os-release' 5 . "${os_release}"
|
/systemd-251/src/portable/ |
D | portable.c | 179 _cleanup_(portable_metadata_unrefp) PortableMetadata *os_release = NULL; in extract_now() 222 … os_release = portable_metadata_new(os_release_id, NULL, NULL, os_release_fd); in extract_now() 223 if (!os_release) in extract_now() 227 os_release->source = TAKE_PTR(os_release_path); in extract_now() 314 *ret_os_release = TAKE_PTR(os_release); in extract_now() 330 _cleanup_(portable_metadata_unrefp) PortableMetadata* os_release = NULL; in portable_extract_by_path() 347 … r = extract_now(path, matches, image_name, path_is_extension, -1, &os_release, &unit_files); in portable_extract_by_path() 482 assert(!os_release); in portable_extract_by_path() 483 os_release = TAKE_PTR(add); in portable_extract_by_path() 494 if (!os_release) in portable_extract_by_path() [all …]
|
D | portabled-image-bus.c | 68 return bus_reply_pair_array(message, image->os_release); in bus_image_common_get_os_release() 106 _cleanup_(portable_metadata_unrefp) PortableMetadata *os_release = NULL; in bus_image_common_get_metadata() 164 &os_release, in bus_image_common_get_metadata() 184 r = append_fd(reply, os_release); in bus_image_common_get_metadata() 882 SD_BUS_RESULT("a{ss}", os_release), 888 "ay", os_release, 897 "ay", os_release,
|
D | portabled-bus.c | 426 SD_BUS_RESULT("a{ss}", os_release), 433 "ay", os_release, 443 "ay", os_release,
|
/systemd-251/test/units/ |
D | testsuite-50.sh | 32 os_release="$(test -e /etc/os-release && echo /etc/os-release || echo /usr/lib/os-release)" 36 systemd-dissect "${image}.raw" | grep -q -F -f <(sed 's/"//g' "$os_release") 42 …hash="${roothash}" --verity-data="${image}.fooverity" | grep -q -F -f <(sed 's/"//g' "$os_release") 48 grep -q -F -f "$os_release" "${image_dir}/mount/usr/lib/os-release" 49 grep -q -F -f "$os_release" "${image_dir}/mount/etc/os-release" 204 …temd-dissect --root-hash "${roothash}" "${image}.gpt" | grep -q -F -f <(sed 's/"//g' "$os_release") 207 grep -q -F -f "$os_release" "${image_dir}/mount/usr/lib/os-release" 208 grep -q -F -f "$os_release" "${image_dir}/mount/etc/os-release"
|
/systemd-251/src/dissect/ |
D | dissect.c | 456 strv_pair_print(m->os_release, in action_dissect() 464 !strv_isempty(m->os_release) || in action_dissect() 474 COLOR_MARK_BOOL(strv_env_pairs_get(m->os_release, "PORTABLE_PREFIXES"))); in action_dissect() 498 if (!strv_isempty(m->os_release)) { in action_dissect() 499 r = strv_pair_to_json(m->os_release, &osr); in action_dissect() 524 …LD_PAIR("usePortableService", JSON_BUILD_BOOLEAN(strv_env_pairs_get(m->os_release, "PORTABLE_MATCH… in action_dissect()
|
/systemd-251/src/shared/ |
D | discover-image.c | 76 strv_free(i->os_release); in image_free() 1130 … _cleanup_strv_free_ char **machine_info = NULL, **os_release = NULL, **extension_release = NULL; in image_read_metadata() local 1173 r = load_os_release_pairs(i->path, &os_release); in image_read_metadata() 1184 strv_free_and_replace(i->os_release, os_release); in image_read_metadata() 1229 strv_free_and_replace(i->os_release, m->os_release); in image_read_metadata()
|
D | discover-image.h | 52 char **os_release; member
|
D | dissect-image.h | 220 char **os_release; member
|
D | dissect-image.c | 1186 strv_free(m->os_release); in dissected_image_unref() 2563 … _cleanup_strv_free_ char **machine_info = NULL, **os_release = NULL, **extension_release = NULL; in dissected_image_acquire_metadata() local 2753 r = load_env_file_pairs(f, "os-release", &os_release); in dissected_image_acquire_metadata() 2800 strv_free_and_replace(m->os_release, os_release); in dissected_image_acquire_metadata()
|
/systemd-251/test/ |
D | test-functions | 20 os_release=$(test -e /etc/os-release && echo /etc/os-release || echo /usr/lib/os-release) 22 source "$os_release" 598 cp "$os_release" "$initdir/usr/lib/os-release" 625 if grep -q "^VERSION_ID=" "$os_release"; then 626 version_id="$(grep "^VERSION_ID=" "$os_release")" 631 grep "^ID=" "$os_release" >"$initdir/usr/lib/extension-release.d/extension-release.app0" 655 grep "^ID=" "$os_release" >"$initdir/usr/lib/extension-release.d/extension-release.app2"
|
/systemd-251/src/machine/ |
D | image-dbus.c | 388 return bus_reply_pair_array(message, image->os_release); in bus_image_method_get_os_release()
|
D | machined-dbus.c | 1160 SD_BUS_RESULT("a{ss}", os_release),
|