Advertisement
svenhoefer

Untitled

May 11th, 2019
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.73 KB | None | 0 0
  1. diff --git a/busybox/fdisk_gpt.c b/busybox/fdisk_gpt.c
  2. index f170a70..9eb3f8f 100644
  3. --- a/busybox/fdisk_gpt.c
  4. +++ b/busybox/fdisk_gpt.c
  5. @@ -123,12 +123,12 @@ gpt_list_table(int xtra UNUSED_PARAM)
  6.     {
  7.         if (multiboot_partition == 1)
  8.         {
  9. -           strcpy(kernel_name, "linuxkernel");
  10. -           strcpy(rootfs_name, "linuxrootfs");
  11. +           strcpy(kernel_name, "kernel");
  12. +           strcpy(rootfs_name, "rootfs");
  13.         }
  14.         else
  15.         {
  16. -           sprintf(kernel_name, "linuxkernel%d", multiboot_partition);
  17. +           sprintf(kernel_name, "kernel%d", multiboot_partition);
  18.             strcpy(rootfs_name, "userdata");
  19.         }
  20.         sprintf(rootfs_sub_dir, "linuxrootfs%d", multiboot_partition);
  21. @@ -241,8 +241,8 @@ gpt_list_table(int xtra UNUSED_PARAM)
  22.     {
  23.         if (multiboot_partition == 1)
  24.         {
  25. -           strcpy(kernel_name, "linuxkernel");
  26. -           strcpy(rootfs_name, "linuxrootfs");
  27. +           strcpy(kernel_name, "kernel");
  28. +           strcpy(rootfs_name, "rootfs");
  29.         }
  30.         else
  31.         {
  32. diff --git a/cmdline_parser.c b/cmdline_parser.c
  33. index 97b6fad..8b4a3b4 100644
  34. --- a/cmdline_parser.c
  35. +++ b/cmdline_parser.c
  36. @@ -19,14 +19,16 @@ int search_via_part_names(char* device_table)
  37.         strcpy(cmp_kernel_name, "(kernel)");
  38.         strcpy(cmp_rootfs_name, "(rootfs)");
  39.     }
  40. +#if 0
  41.     else if (strstr(device_table, "(linuxkernel)") != NULL && strstr(device_table, "(linuxrootfs)") != NULL)
  42.     {
  43.         strcpy(cmp_kernel_name, "(linuxkernel)");
  44.         strcpy(cmp_rootfs_name, "(linuxrootfs)");
  45.     }
  46. +#endif
  47.     else if (current_rootfs_sub_dir[0] != '\0') // box with rootSubDir feature
  48.     {
  49. -       sprintf(cmp_kernel_name, "(linuxkernel%d)", multiboot_partition);
  50. +       sprintf(cmp_kernel_name, "(kernel%d)", multiboot_partition);
  51.         strcpy(cmp_rootfs_name, "(userdata)");
  52.         sprintf(rootfs_sub_dir, "linuxrootfs%d", multiboot_partition);
  53.     }
  54. @@ -107,7 +109,7 @@ int search_current_used_partitions(char* device_table)
  55.         if ((pos = strstr(device_table, ",")) != NULL)
  56.             *pos = '\0';
  57.         sprintf(part_name, "%s%d", device_name, partition_number);
  58. -       if (strstr(part_name, current_kernel_device) != NULL && strstr(device_table, "(linuxkernel") != NULL && current_kernel_device[0] != '\0')
  59. +       if (strstr(part_name, current_kernel_device) != NULL && strstr(device_table, "(kernel") != NULL && current_kernel_device[0] != '\0')
  60.         {
  61.             found_kernel_device = 1;
  62.             kernel_flash_mode = TARBZ2;
  63. diff --git a/ofgwrite.c b/ofgwrite.c
  64. index 4d1cc1f..a938843 100644
  65. --- a/ofgwrite.c
  66. +++ b/ofgwrite.c
  67. @@ -955,6 +955,7 @@ int umount_rootfs(int steps)
  68.  
  69.     // move mount which includes the image files
  70.     if ((strncmp(rootfs_mount_point, "/media/", 7) == 0 && ret != 0)
  71. +    || (strncmp(rootfs_mount_point, "/mnt/", 5) == 0 && ret != 0)
  72.      ||  strncmp(rootfs_mount_point, "/var/volatile/", 14) != 0)
  73.     {
  74.         my_printf("Move mountpoint of image files\n");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement