Lines Matching defs:to

58                 return log_error_errno(errno, "Failed to check file system type of \"%s\": %m", p);
66 return log_error_errno(errno, "Failed to determine block device node of \"%s\": %m", p);
76 return log_error_errno(errno, "Failed to determine block device node of parent of \"%s\": %m", p);
93 return log_error_errno(errno, "Failed to open file system \"%s\": %m", p);
111 return log_error_errno(r, "Failed to probe file system \"%s\": %m", p);
118 return log_error_errno(r, "Failed to probe file system type \"%s\": %m", p);
130 return log_error_errno(r, "Failed to probe partition scheme \"%s\": %m", p);
142 return log_error_errno(r, "Failed to probe partition type UUID \"%s\": %m", p);
154 return log_error_errno(r, "Failed to probe partition entry UUID \"%s\": %m", p);
167 return log_error_errno(r, "Failed to probe partition number \"%s\": m", p);
175 return log_error_errno(r, "Failed to probe partition offset \"%s\": %m", p);
183 return log_error_errno(r, "Failed to probe partition size \"%s\": %m", p);
248 return log_error_errno(errno, "Failed to read \"%s\": %m", p);
263 return log_error_errno(errno, "Failed to open \"%s/%s\" for reading: %m", p, de->d_name);
341 return log_error_errno(ENOENT, "Failed to access EFI variables, efivarfs"
342 " needs to be available at /sys/firmware/efi/efivars/.");
344 return log_error_errno(n_options, "Failed to read EFI boot entries: %m");
350 return log_error_errno(n_order, "Failed to read EFI boot order.");
399 static int version_check(int fd, const char *from, const char *to) {
406 assert(to);
416 fd2 = open(to, O_RDONLY|O_CLOEXEC);
421 return log_error_errno(errno, "Failed to open \"%s\" for reading: %m", to);
428 log_notice("Skipping \"%s\", since it's owned by another boot loader.", to);
433 log_warning("Skipping \"%s\", since a newer boot loader version exists already.", to);
440 static int copy_file(const char *from, const char *to, bool force) {
448 assert(to);
452 return log_error_errno(errno, "Failed to open \"%s\" for reading: %m", from);
456 r = version_check(fileno(f), from, to);
461 p = strjoina(to, "~");
468 return log_error_errno(errno, "Failed to open \"%s\" for writing: %m", to);
478 r = log_error_errno(EIO, "Failed to read \"%s\": %m", from);
487 r = log_error_errno(EIO, "Failed to write \"%s\": %m", to);
494 log_error_errno(r, "Failed to write \"%s\": %m", to);
500 r = log_error_errno(errno, "Failed to get file timestamps of \"%s\": %m", from);
509 r = log_error_errno(errno, "Failed to set file timestamps on \"%s\": %m", p);
513 if (rename(p, to) < 0) {
514 r = log_error_errno(errno, "Failed to rename \"%s\" to \"%s\": %m", p, to);
518 log_info("Copied \"%s\" to \"%s\".", from, to);
541 return log_error_errno(errno, "Failed to create \"%s\": %m", p);
611 return log_error_errno(errno, "Failed to open \""BOOTLIBDIR"\": %m");
691 /* we do not require to be the first one, all is fine */
695 /* move us to the first slot */
707 /* add us to the top or end of the list */
762 "Failed to access EFI variables. Is the \"efivarfs\" filesystem mounted?" :
763 "Failed to determine current boot order: %m");
770 return log_error_errno(r, "Failed to create EFI Boot variable entry: %m");
790 return log_error_errno(errno, "Failed to open directory \"%s\": %m", p);
805 return log_error_errno(errno, "Failed to open \"%s/%s\" for reading: %m", p, de->d_name);
813 return log_error_errno(errno, "Failed to remove \"%s/%s\": %m", p, de->d_name);
830 return log_error_errno(errno, "Failed to remove \"%s\": %m", p);
908 return log_error_errno(EIO, "Failed to write \"%s\": %m", p);
920 " --path=PATH Path to the EFI System Partition (ESP)\n"
925 " install Install systemd-boot to the ESP and EFI variables\n"
989 log_warning_errno(r, "Failed to read EFI variable %s: %m", name);
1030 return log_error_errno(EPERM, "Need to be root.");
1034 log_notice("You might want to use --path= to indicate the path to your ESP, in case it is not mounted on /boot.");
1055 log_warning_errno(r, "Failed to read EFI variable LoaderDevicePartUUID: %m");
1062 log_warning_errno(r, "Failed to query secure boot status: %m");
1068 log_warning_errno(r, "Failed to query secure boot mode: %m");