Lines Matching refs:dropin

958         _cleanup_free_ char *text = NULL, *dropin = NULL;  in install_chroot_dropin()  local
965 dropin = path_join(dropin_dir, "20-portable.conf"); in install_chroot_dropin()
966 if (!dropin) in install_chroot_dropin()
1007 r = write_string_file(dropin, text, WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC); in install_chroot_dropin()
1009 return log_debug_errno(r, "Failed to write '%s': %m", dropin); in install_chroot_dropin()
1011 (void) portable_changes_add(changes, n_changes, PORTABLE_WRITE, dropin, NULL); in install_chroot_dropin()
1014 *ret_dropin = TAKE_PTR(dropin); in install_chroot_dropin()
1029 _cleanup_free_ char *dropin = NULL, *from = NULL; in install_profile_dropin() local
1048 dropin = path_join(dropin_dir, "10-profile.conf"); in install_profile_dropin()
1049 if (!dropin) in install_profile_dropin()
1054 r = copy_file_atomic(from, dropin, 0644, 0, 0, COPY_REFLINK); in install_profile_dropin()
1056 …ug_errno(r, "Failed to copy %s %s %s: %m", from, special_glyph(SPECIAL_GLYPH_ARROW_RIGHT), dropin); in install_profile_dropin()
1058 (void) portable_changes_add(changes, n_changes, PORTABLE_COPY, dropin, from); in install_profile_dropin()
1062 if (symlink(from, dropin) < 0) in install_profile_dropin()
1063 …rrno(errno, "Failed to link %s %s %s: %m", from, special_glyph(SPECIAL_GLYPH_ARROW_RIGHT), dropin); in install_profile_dropin()
1065 (void) portable_changes_add(changes, n_changes, PORTABLE_SYMLINK, dropin, from); in install_profile_dropin()
1069 *ret_dropin = TAKE_PTR(dropin); in install_profile_dropin()
1629 _cleanup_free_ char *dropin = NULL; in portable_detach() local
1631 dropin = strjoin(item, suffix); in portable_detach()
1632 if (!dropin) in portable_detach()
1635 if (unlinkat(dirfd(d), dropin, 0) < 0) { in portable_detach()
1636 … log_debug_errno(errno, "Can't remove drop-in %s/%s: %m", where, dropin); in portable_detach()
1641 … portable_changes_add_with_prefix(changes, n_changes, PORTABLE_UNLINK, where, dropin, NULL); in portable_detach()