]> git.pld-linux.org Git - packages/systemd.git/blobdiff - pld-boot_efi_mount.patch
up to 246.4
[packages/systemd.git] / pld-boot_efi_mount.patch
index ce43d661544b420773be2ad587d518ab29295efc..a4c4f67a7f5d67647ba9b3dcc881bc22ff97b2e3 100644 (file)
@@ -1,74 +1,11 @@
-diff -dur -x '*~' -x '*.orig' -x '*.rej' systemd-218.orig/src/efi-boot-generator/efi-boot-generator.c systemd-218/src/efi-boot-generator/efi-boot-generator.c
---- systemd-218.orig/src/efi-boot-generator/efi-boot-generator.c       2014-12-05 01:26:51.000000000 +0100
-+++ systemd-218/src/efi-boot-generator/efi-boot-generator.c    2015-04-02 15:45:18.000000000 +0200
-@@ -69,9 +69,9 @@
-                 return EXIT_SUCCESS;
-         }
--        if (path_is_mount_point("/boot", true) <= 0 &&
--            dir_is_empty("/boot") <= 0) {
--                log_debug("/boot already populated, exiting.");
-+        if (path_is_mount_point("/boot/efi", true) <= 0 &&
-+            dir_is_empty("/boot/efi") <= 0) {
-+                log_debug("/boot/efi already populated, exiting.");
-                 return EXIT_SUCCESS;
-         }
-@@ -84,7 +84,7 @@
-                 return EXIT_FAILURE;
-         }
--        name = strappenda(arg_dest, "/boot.mount");
-+        name = strappenda(arg_dest, "/boot-efi.mount");
-         f = fopen(name, "wxe");
-         if (!f) {
-                 log_error_errno(errno, "Failed to create mount unit file %s: %m", name);
-@@ -105,7 +105,7 @@
-                 "Description=EFI System Partition\n"
-                 "Documentation=man:systemd-efi-boot-generator(8)\n");
--        r = generator_write_fsck_deps(f, arg_dest, what, "/boot", "vfat");
-+        r = generator_write_fsck_deps(f, arg_dest, what, "/boot/efi", "vfat");
-         if (r < 0)
-                 return EXIT_FAILURE;
-@@ -113,7 +113,7 @@
-                 "\n"
-                 "[Mount]\n"
-                 "What=%s\n"
--                "Where=/boot\n"
-+                "Where=/boot/efi\n"
-                 "Type=vfat\n"
-                 "Options=umask=0077,noauto\n",
-                 what);
-@@ -124,7 +124,7 @@
-                 return EXIT_FAILURE;
-         }
--        name = strappenda(arg_dest, "/boot.automount");
-+        name = strappenda(arg_dest, "/boot-efi.automount");
-         fclose(f);
-         f = fopen(name, "wxe");
-         if (!f) {
-@@ -136,7 +136,7 @@
-               "[Unit]\n"
-               "Description=EFI System Partition Automount\n\n"
-               "[Automount]\n"
--              "Where=/boot\n", f);
-+              "Where=/boot/efi\n", f);
-         fflush(f);
-         if (ferror(f)) {
-@@ -144,10 +144,10 @@
-                 return EXIT_FAILURE;
-         }
--        name = strappenda(arg_dest, "/" SPECIAL_LOCAL_FS_TARGET ".wants/boot.automount");
-+        name = strappenda(arg_dest, "/" SPECIAL_LOCAL_FS_TARGET ".wants/boot-efi.automount");
-         mkdir_parents(name, 0755);
--        if (symlink("../boot.automount", name) < 0) {
-+        if (symlink("../boot-efi.automount", name) < 0) {
-                 log_error_errno(errno, "Failed to create symlink %s: %m", name);
-                 return EXIT_FAILURE;
+--- systemd-242/src/gpt-auto-generator/gpt-auto-generator.c.orig       2019-04-11 19:40:01.816893823 +0200
++++ systemd-242/src/gpt-auto-generator/gpt-auto-generator.c    2019-04-11 19:42:53.022916795 +0200
+@@ -438,7 +438,7 @@
+                 /* Use /boot as fallback, but only if there's no XBOOTLDR partition */
+                 if (!has_xbootldr) {
+-                        esp_path = "/boot";
++                        esp_path = "/boot/efi";
+                         id = "boot";
+                 }
          }
This page took 0.085193 seconds and 4 git commands to generate.