-
Notifications
You must be signed in to change notification settings - Fork 245
/
fixup-mountpoints
executable file
·2398 lines (2333 loc) · 136 KB
/
fixup-mountpoints
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/bin/sh
# Fix up mount points device node names.
#
# /data needs to be mounted in initrd, but there is no udev that early,
# which means there is no /dev/block/platform/*/by-name/* (or bootdevice).
# This file is a map from the "by-name" path to /dev/mmcblkMpN.
# It also serves dhd to convert fstab and *.rc mount entries to systemd units,
# because at that boot stage there is still no udev "by-name" paths, even when
# systemd starts to execut the "*.mount" units.
DEVICE=$1
shift
echo "Fixing mount-points for device $DEVICE"
case "$DEVICE" in
"pdx235")
sed -i \
-e 's block/bootdevice/by-name/LTALabel sda3 ' \
-e 's block/bootdevice/by-name/TA sda1 ' \
-e 's block/bootdevice/by-name/abl_a sda12 ' \
-e 's block/bootdevice/by-name/abl_b sda13 ' \
-e 's block/bootdevice/by-name/apdp sda38 ' \
-e 's block/bootdevice/by-name/appslog sda45 ' \
-e 's block/bootdevice/by-name/bluetooth sda31 ' \
-e 's block/bootdevice/by-name/bluetooth_b sda32 ' \
-e 's block/bootdevice/by-name/boot sda29 ' \
-e 's block/bootdevice/by-name/boot_b sda30 ' \
-e 's block/bootdevice/by-name/catecontentfv sda62 ' \
-e 's block/bootdevice/by-name/catefv sda63 ' \
-e 's block/bootdevice/by-name/cateloader sda64 ' \
-e 's block/bootdevice/by-name/cdt sda65 ' \
-e 's block/bootdevice/by-name/ddr sda41 ' \
-e 's block/bootdevice/by-name/devcfg_a sda16 ' \
-e 's block/bootdevice/by-name/devcfg_b sda17 ' \
-e 's block/bootdevice/by-name/devinfo sda37 ' \
-e 's block/bootdevice/by-name/diag sda46 ' \
-e 's block/bootdevice/by-name/dsp sda35 ' \
-e 's block/bootdevice/by-name/dsp_b sda36 ' \
-e 's block/bootdevice/by-name/dtbo_a sda58 ' \
-e 's block/bootdevice/by-name/dtbo_b sda59 ' \
-e 's block/bootdevice/by-name/frp sda6 ' \
-e 's block/bootdevice/by-name/fsc sda22 ' \
-e 's block/bootdevice/by-name/fsg sda7 ' \
-e 's block/bootdevice/by-name/hyp_a sda10 ' \
-e 's block/bootdevice/by-name/hyp_b sda11 ' \
-e 's block/bootdevice/by-name/imagefv_a sda27 ' \
-e 's block/bootdevice/by-name/imagefv_b sda28 ' \
-e 's block/bootdevice/by-name/keymaster_a sda14 ' \
-e 's block/bootdevice/by-name/keymaster_b sda15 ' \
-e 's block/bootdevice/by-name/keystore sda44 ' \
-e 's block/bootdevice/by-name/logfs sda39 ' \
-e 's block/by-name/metadata sda47 ' \
-e 's block/bootdevice/by-name/misc sda43 ' \
-e 's block/bootdevice/by-name/modem sda33 ' \
-e 's block/bootdevice/by-name/modem_b sda34 ' \
-e 's block/bootdevice/by-name/modemst1 sda23 ' \
-e 's block/bootdevice/by-name/modemst2 sda24 ' \
-e 's block/bootdevice/by-name/multiimgoem_a sda50 ' \
-e 's block/bootdevice/by-name/multiimgoem_b sda51 ' \
-e 's block/by-name/oem_a sda72 ' \
-e 's block/bootdevice/by-name/oem_b sda73 ' \
-e 's block/bootdevice/by-name/persist sda2 ' \
-e 's block/bootdevice/by-name/qupfw_a sda25 ' \
-e 's block/bootdevice/by-name/qupfw_b sda26 ' \
-e 's block/bootdevice/by-name/rddata sda76 ' \
-e 's block/bootdevice/by-name/rdimage_a sda60 ' \
-e 's block/bootdevice/by-name/rdimage_b sda61 ' \
-e 's block/bootdevice/by-name/rpm_a sda68 ' \
-e 's block/bootdevice/by-name/rpm_b sda69 ' \
-e 's block/bootdevice/by-name/secdata sda48 ' \
-e 's block/bootdevice/by-name/ssd sda42 ' \
-e 's block/bootdevice/by-name/storsec sda40 ' \
-e 's block/bootdevice/by-name/super sda74 ' \
-e 's block/bootdevice/by-name/tz_a sda8 ' \
-e 's block/bootdevice/by-name/tz_b sda9 ' \
-e 's block/bootdevice/by-name/tzxflattest_a sda18 ' \
-e 's block/bootdevice/by-name/tzxflattest_b sda19 ' \
-e 's block/bootdevice/by-name/uefisecapp_a sda20 ' \
-e 's block/bootdevice/by-name/uefisecapp_b sda21 ' \
-e 's block/bootdevice/by-name/uefivarstore sda49 ' \
-e 's block/bootdevice/by-name/userdata sda75 ' \
-e 's block/bootdevice/by-name/vbmeta_a sda52 ' \
-e 's block/bootdevice/by-name/vbmeta_b sda53 ' \
-e 's block/bootdevice/by-name/vbmeta_system_a sda54 ' \
-e 's block/bootdevice/by-name/vbmeta_system_b sda55 ' \
-e 's block/bootdevice/by-name/vendor_boot_a sda70 ' \
-e 's block/bootdevice/by-name/vendor_boot_b sda71 ' \
-e 's block/bootdevice/by-name/vm-data sda67 ' \
-e 's block/bootdevice/by-name/vm-keystore sda66 ' \
-e 's block/bootdevice/by-name/vm-system_a sda56 ' \
-e 's block/bootdevice/by-name/vm-system_b sda57 ' \
-e 's block/bootdevice/by-name/xbl_a sdb1 ' \
-e 's block/bootdevice/by-name/xbl_b sdc1 ' \
-e 's block/bootdevice/by-name/xbl_config_a sdb2 ' \
-e 's block/bootdevice/by-name/xbl_config_b sdc2 ' \
-e 's block/bootdevice/by-name/xflkeystore sda4 ' \
-e 's block/bootdevice/by-name/xflkeystorebak sda5 ' \
"$@"
;;
"pdx225")
sed -i \
-e 's block/bootdevice/by-name/LTALabel sda3 ' \
-e 's block/bootdevice/by-name/TA sda1 ' \
-e 's block/bootdevice/by-name/abl_a sda12 ' \
-e 's block/bootdevice/by-name/abl_b sda13 ' \
-e 's block/bootdevice/by-name/apdp sda40 ' \
-e 's block/bootdevice/by-name/appslog sda47 ' \
-e 's block/bootdevice/by-name/bluetooth sda33 ' \
-e 's block/bootdevice/by-name/bluetooth_b sda34 ' \
-e 's block/bootdevice/by-name/boot sda31 ' \
-e 's block/bootdevice/by-name/boot_b sda32 ' \
-e 's block/bootdevice/by-name/catecontentfv sda63 ' \
-e 's block/bootdevice/by-name/catefv sda64 ' \
-e 's block/bootdevice/by-name/cateloader sda65 ' \
-e 's block/bootdevice/by-name/cdt sda66 ' \
-e 's block/bootdevice/by-name/core_nhlos_a sda16 ' \
-e 's block/bootdevice/by-name/core_nhlos_b sda17 ' \
-e 's block/bootdevice/by-name/ddr sda43 ' \
-e 's block/bootdevice/by-name/devcfg_a sda18 ' \
-e 's block/bootdevice/by-name/devcfg_b sda19 ' \
-e 's block/bootdevice/by-name/devinfo sda39 ' \
-e 's block/bootdevice/by-name/diag sda48 ' \
-e 's block/bootdevice/by-name/dsp sda37 ' \
-e 's block/bootdevice/by-name/dsp_b sda38 ' \
-e 's block/bootdevice/by-name/dtbo_a sda59 ' \
-e 's block/bootdevice/by-name/dtbo_b sda60 ' \
-e 's block/bootdevice/by-name/frp sda6 ' \
-e 's block/bootdevice/by-name/fsc sda24 ' \
-e 's block/bootdevice/by-name/fsg sda7 ' \
-e 's block/bootdevice/by-name/hyp_a sda10 ' \
-e 's block/bootdevice/by-name/hyp_b sda11 ' \
-e 's block/bootdevice/by-name/imagefv_a sda29 ' \
-e 's block/bootdevice/by-name/imagefv_b sda30 ' \
-e 's block/bootdevice/by-name/keymaster_a sda14 ' \
-e 's block/bootdevice/by-name/keymaster_b sda15 ' \
-e 's block/bootdevice/by-name/keystore sda46 ' \
-e 's block/bootdevice/by-name/logfs sda41 ' \
-e 's block/by-name/metadata sda49 ' \
-e 's block/bootdevice/by-name/misc sda45 ' \
-e 's block/bootdevice/by-name/modem sda35 ' \
-e 's block/bootdevice/by-name/modem_b sda36 ' \
-e 's block/bootdevice/by-name/modemst1 sda25 ' \
-e 's block/bootdevice/by-name/modemst2 sda26 ' \
-e 's block/bootdevice/by-name/multiimgoem_a sda53 ' \
-e 's block/bootdevice/by-name/multiimgoem_b sda54 ' \
-e 's block/by-name/oem_a sda71 ' \
-e 's block/bootdevice/by-name/oem_b sda72 ' \
-e 's block/bootdevice/by-name/persist sda2 ' \
-e 's block/bootdevice/by-name/questdatafv sda52 ' \
-e 's block/bootdevice/by-name/qupfw_a sda27 ' \
-e 's block/bootdevice/by-name/qupfw_b sda28 ' \
-e 's block/bootdevice/by-name/rddata sda75 ' \
-e 's block/bootdevice/by-name/rdimage_a sda61 ' \
-e 's block/bootdevice/by-name/rdimage_b sda62 ' \
-e 's block/bootdevice/by-name/rpm_a sda67 ' \
-e 's block/bootdevice/by-name/rpm_b sda68 ' \
-e 's block/bootdevice/by-name/secdata sda50 ' \
-e 's block/bootdevice/by-name/ssd sda44 ' \
-e 's block/bootdevice/by-name/storsec sda42 ' \
-e 's block/bootdevice/by-name/super sda73 ' \
-e 's block/bootdevice/by-name/tz_a sda8 ' \
-e 's block/bootdevice/by-name/tz_b sda9 ' \
-e 's block/bootdevice/by-name/tzxflattest_a sda20 ' \
-e 's block/bootdevice/by-name/tzxflattest_b sda21 ' \
-e 's block/bootdevice/by-name/uefisecapp_a sda22 ' \
-e 's block/bootdevice/by-name/uefisecapp_b sda23 ' \
-e 's block/bootdevice/by-name/uefivarstore sda51 ' \
-e 's block/bootdevice/by-name/userdata sda74 ' \
-e 's block/bootdevice/by-name/vbmeta_a sda55 ' \
-e 's block/bootdevice/by-name/vbmeta_b sda56 ' \
-e 's block/bootdevice/by-name/vbmeta_system_a sda57 ' \
-e 's block/bootdevice/by-name/vbmeta_system_b sda58 ' \
-e 's block/bootdevice/by-name/vendor_boot_a sda69 ' \
-e 's block/bootdevice/by-name/vendor_boot_b sda70 ' \
-e 's block/bootdevice/by-name/xbl_a sdb1 ' \
-e 's block/bootdevice/by-name/xbl_b sdc1 ' \
-e 's block/bootdevice/by-name/xbl_config_a sdb2 ' \
-e 's block/bootdevice/by-name/xbl_config_b sdc2 ' \
-e 's block/bootdevice/by-name/xflkeystore sda4 ' \
-e 's block/bootdevice/by-name/xflkeystorebak sda5 ' \
"$@"
;;
"pdx213")
sed -i \
-e 's block/bootdevice/by-name/TA sda1 ' \
-e 's block/bootdevice/by-name/aop_a sda10 ' \
-e 's block/bootdevice/by-name/aop_b sda11 ' \
-e 's block/bootdevice/by-name/hyp_a sda12 ' \
-e 's block/bootdevice/by-name/hyp_b sda13 ' \
-e 's block/bootdevice/by-name/abl_a sda14 ' \
-e 's block/bootdevice/by-name/abl_b sda15 ' \
-e 's block/bootdevice/by-name/keymaster_a sda16 ' \
-e 's block/bootdevice/by-name/keymaster_b sda17 ' \
-e 's block/bootdevice/by-name/devcfg_a sda18 ' \
-e 's block/bootdevice/by-name/devcfg_b sda19 ' \
-e 's block/bootdevice/by-name/persist sda2 ' \
-e 's block/bootdevice/by-name/tzxflattest_a sda20 ' \
-e 's block/bootdevice/by-name/tzxflattest_b sda21 ' \
-e 's block/bootdevice/by-name/uefisecapp_a sda22 ' \
-e 's block/bootdevice/by-name/uefisecapp_b sda23 ' \
-e 's block/bootdevice/by-name/fsc sda24 ' \
-e 's block/bootdevice/by-name/modemst1 sda25 ' \
-e 's block/bootdevice/by-name/modemst2 sda26 ' \
-e 's block/bootdevice/by-name/qupfw_a sda27 ' \
-e 's block/bootdevice/by-name/qupfw_b sda28 ' \
-e 's block/bootdevice/by-name/imagefv_a sda29 ' \
-e 's block/bootdevice/by-name/LTALabel sda3 ' \
-e 's block/bootdevice/by-name/imagefv_b sda30 ' \
-e 's block/bootdevice/by-name/boot_a sda31 ' \
-e 's block/bootdevice/by-name/boot_b sda32 ' \
-e 's block/bootdevice/by-name/recovery_a sda33 ' \
-e 's block/bootdevice/by-name/recovery_b sda34 ' \
-e 's block/bootdevice/by-name/bluetooth sda35 ' \
-e 's block/bootdevice/by-name/bluetooth_b sda36 ' \
-e 's block/bootdevice/by-name/modem sda37 ' \
-e 's block/bootdevice/by-name/modem_b sda38 ' \
-e 's block/bootdevice/by-name/dsp sda39 ' \
-e 's block/bootdevice/by-name/xflkeystore sda4 ' \
-e 's block/bootdevice/by-name/dsp_b sda40 ' \
-e 's block/bootdevice/by-name/devinfo sda41 ' \
-e 's block/bootdevice/by-name/apdp sda42 ' \
-e 's block/bootdevice/by-name/splash sda43 ' \
-e 's block/bootdevice/by-name/limits sda44 ' \
-e 's block/bootdevice/by-name/toolsfv sda45 ' \
-e 's block/bootdevice/by-name/logfs sda46 ' \
-e 's block/bootdevice/by-name/storsec sda47 ' \
-e 's block/bootdevice/by-name/ddr sda48 ' \
-e 's block/bootdevice/by-name/ssd sda49 ' \
-e 's block/bootdevice/by-name/xflkeystorebak sda5 ' \
-e 's block/bootdevice/by-name/misc sda50 ' \
-e 's block/bootdevice/by-name/keystore sda51 ' \
-e 's block/bootdevice/by-name/appslog sda52 ' \
-e 's block/bootdevice/by-name/diag sda53 ' \
-e 's block/by-name/metadata sda54 ' \
-e 's block/bootdevice/by-name/spunvm sda55 ' \
-e 's block/bootdevice/by-name/secdata sda56 ' \
-e 's block/bootdevice/by-name/uefivarstore sda57 ' \
-e 's block/bootdevice/by-name/questdatafv sda58 ' \
-e 's block/bootdevice/by-name/limits-cdsp sda59 ' \
-e 's block/bootdevice/by-name/frp sda6 ' \
-e 's block/bootdevice/by-name/multiimgoem_a sda60 ' \
-e 's block/bootdevice/by-name/multiimgoem_b sda61 ' \
-e 's block/bootdevice/by-name/vbmeta_a sda62 ' \
-e 's block/bootdevice/by-name/vbmeta_b sda63 ' \
-e 's block/bootdevice/by-name/vbmeta_system_a sda64 ' \
-e 's block/bootdevice/by-name/vbmeta_system_b sda65 ' \
-e 's block/bootdevice/by-name/dtbo_a sda66 ' \
-e 's block/bootdevice/by-name/dtbo_b sda67 ' \
-e 's block/bootdevice/by-name/rdimage_a sda68 ' \
-e 's block/bootdevice/by-name/rdimage_b sda69 ' \
-e 's block/bootdevice/by-name/fsg sda7 ' \
-e 's block/bootdevice/by-name/catecontentfv sda70 ' \
-e 's block/bootdevice/by-name/catefv sda71 ' \
-e 's block/bootdevice/by-name/cateloader sda72 ' \
-e 's block/bootdevice/by-name/cdt sda73 ' \
-e 's block/bootdevice/by-name/multiimgqti_a sda74 ' \
-e 's block/bootdevice/by-name/multiimgqti_b sda75 ' \
-e 's block/by-name/oem_a sda76 ' \
-e 's block/bootdevice/by-name/oem_b sda77 ' \
-e 's block/bootdevice/by-name/super sda78 ' \
-e 's block/bootdevice/by-name/userdata sda79 ' \
-e 's block/bootdevice/by-name/tz_a sda8 ' \
-e 's block/bootdevice/by-name/rddata sda80 ' \
-e 's block/bootdevice/by-name/tz_b sda9 ' \
-e 's block/bootdevice/by-name/xbl_a sdb1 ' \
-e 's block/bootdevice/by-name/xbl_config_a sdb2 ' \
-e 's block/bootdevice/by-name/xbl_b sdc1 ' \
-e 's block/bootdevice/by-name/xbl_config_b sdc2 ' \
"$@"
;;
"pdx203"|"pdx206")
sed -i \
-e 's block/bootdevice/by-name/LTALabel sda2 ' \
-e 's block/bootdevice/by-name/TA sda1 ' \
-e 's block/bootdevice/by-name/abl_a sda14 ' \
-e 's block/bootdevice/by-name/abl_b sda28 ' \
-e 's block/bootdevice/by-name/aop_a sda11 ' \
-e 's block/bootdevice/by-name/aop_b sda25 ' \
-e 's block/bootdevice/by-name/apdp sda43 ' \
-e 's block/bootdevice/by-name/appslog sda55 ' \
-e 's block/bootdevice/by-name/bluetooth sda62 ' \
-e 's block/bootdevice/by-name/bluetooth_b sda76 ' \
-e 's block/bootdevice/by-name/boot_a sda64 ' \
-e 's block/bootdevice/by-name/boot_b sda78 ' \
-e 's block/bootdevice/by-name/cdt sda51 ' \
-e 's block/bootdevice/by-name/cmnlib64_a sda17 ' \
-e 's block/bootdevice/by-name/cmnlib64_b sda31 ' \
-e 's block/bootdevice/by-name/cmnlib_a sda16 ' \
-e 's block/bootdevice/by-name/cmnlib_b sda30 ' \
-e 's block/bootdevice/by-name/ddr sda41 ' \
-e 's block/bootdevice/by-name/devcfg_a sda18 ' \
-e 's block/bootdevice/by-name/devcfg_b sda32 ' \
-e 's block/bootdevice/by-name/devinfo sda40 ' \
-e 's block/bootdevice/by-name/diag sda56 ' \
-e 's block/bootdevice/by-name/dsp sda63 ' \
-e 's block/bootdevice/by-name/dsp_b sda77 ' \
-e 's block/bootdevice/by-name/dtbo_a sda69 ' \
-e 's block/bootdevice/by-name/dtbo_b sda83 ' \
-e 's block/bootdevice/by-name/frp sda6 ' \
-e 's block/bootdevice/by-name/hyp_a sda13 ' \
-e 's block/bootdevice/by-name/hyp_b sda27 ' \
-e 's block/bootdevice/by-name/imagefv_a sda20 ' \
-e 's block/bootdevice/by-name/imagefv_b sda34 ' \
-e 's block/bootdevice/by-name/keymaster_a sda15 ' \
-e 's block/bootdevice/by-name/keymaster_b sda29 ' \
-e 's block/bootdevice/by-name/keystore sda53 ' \
-e 's block/bootdevice/by-name/limits sda46 ' \
-e 's block/bootdevice/by-name/limits-cdsp sda47 ' \
-e 's block/bootdevice/by-name/logdump sda49 ' \
-e 's block/bootdevice/by-name/logfs sda48 ' \
-e 's block/bootdevice/by-name/mdm1m9kefs1 sda8 ' \
-e 's block/bootdevice/by-name/mdm1m9kefs2 sda9 ' \
-e 's block/bootdevice/by-name/mdm1m9kefs3 sda7 ' \
-e 's block/bootdevice/by-name/mdm1m9kefsc sda10 ' \
-e 's block/bootdevice/by-name/mdmddr sda42 ' \
-e 's block/by-name/metadata sda54 ' \
-e 's block/bootdevice/by-name/misc sda52 ' \
-e 's block/bootdevice/by-name/modem sda61 ' \
-e 's block/bootdevice/by-name/modem_b sda75 ' \
-e 's block/bootdevice/by-name/msadp sda44 ' \
-e 's block/bootdevice/by-name/multiimgoem_a sda71 ' \
-e 's block/bootdevice/by-name/multiimgoem_b sda85 ' \
-e 's block/bootdevice/by-name/multiimgqti_a sda72 ' \
-e 's block/bootdevice/by-name/multiimgqti_b sda86 ' \
-e 's block/by-name/oem_a sda70 ' \
-e 's block/bootdevice/by-name/oem_b sda84 ' \
-e 's block/bootdevice/by-name/persist sda3 ' \
-e 's block/bootdevice/by-name/qupfw_a sda19 ' \
-e 's block/bootdevice/by-name/qupfw_b sda33 ' \
-e 's block/bootdevice/by-name/rddata sda91 ' \
-e 's block/bootdevice/by-name/rdimage_a sda66 ' \
-e 's block/bootdevice/by-name/rdimage_b sda80 ' \
-e 's block/bootdevice/by-name/recovery_a sda65 ' \
-e 's block/bootdevice/by-name/recovery_b sda79 ' \
-e 's block/bootdevice/by-name/secdata sda57 ' \
-e 's block/bootdevice/by-name/spunvm sda45 ' \
-e 's block/bootdevice/by-name/ssd sda39 ' \
-e 's block/bootdevice/by-name/storsec sda50 ' \
-e 's block/bootdevice/by-name/super sda89 ' \
-e 's block/bootdevice/by-name/tz_a sda12 ' \
-e 's block/bootdevice/by-name/tz_b sda26 ' \
-e 's block/bootdevice/by-name/tzxfl_a sda23 ' \
-e 's block/bootdevice/by-name/tzxfl_b sda37 ' \
-e 's block/bootdevice/by-name/tzxflattest_a sda22 ' \
-e 's block/bootdevice/by-name/tzxflattest_b sda36 ' \
-e 's block/bootdevice/by-name/uefisecapp_a sda24 ' \
-e 's block/bootdevice/by-name/uefisecapp_b sda38 ' \
-e 's block/bootdevice/by-name/uefivarstore sda58 ' \
-e 's block/bootdevice/by-name/userdata sda90 ' \
-e 's block/bootdevice/by-name/vbmeta_a sda67 ' \
-e 's block/bootdevice/by-name/vbmeta_b sda81 ' \
-e 's block/bootdevice/by-name/vbmeta_system_a sda68 ' \
-e 's block/bootdevice/by-name/vbmeta_system_b sda82 ' \
-e 's block/bootdevice/by-name/vm-data sda60 ' \
-e 's block/bootdevice/by-name/vm-keystore sda59 ' \
-e 's block/bootdevice/by-name/vm-linux_a sda74 ' \
-e 's block/bootdevice/by-name/vm-linux_b sda88 ' \
-e 's block/bootdevice/by-name/vm-system_a sda73 ' \
-e 's block/bootdevice/by-name/vm-system_b sda87 ' \
-e 's block/bootdevice/by-name/xbl_a sdb1 ' \
-e 's block/bootdevice/by-name/xbl_b sdc1 ' \
-e 's block/bootdevice/by-name/xbl_config_a sdb2 ' \
-e 's block/bootdevice/by-name/xbl_config_b sdc2 ' \
-e 's block/bootdevice/by-name/xfl_a sda21 ' \
-e 's block/bootdevice/by-name/xfl_b sda35 ' \
-e 's block/bootdevice/by-name/xflkeystore sda4 ' \
-e 's block/bootdevice/by-name/xflkeystorebak sda5 ' \
"$@"
;;
"pdx201")
sed -i \
-e 's block/bootdevice/by-name/LTALabel mmcblk0p3 ' \
-e 's block/bootdevice/by-name/TA mmcblk0p1 ' \
-e 's block/bootdevice/by-name/abl_a mmcblk0p16 ' \
-e 's block/bootdevice/by-name/abl_b mmcblk0p17 ' \
-e 's block/bootdevice/by-name/apdp mmcblk0p53 ' \
-e 's block/bootdevice/by-name/appslog mmcblk0p64 ' \
-e 's block/bootdevice/by-name/bluetooth_a mmcblk0p46 ' \
-e 's block/bootdevice/by-name/bluetooth_b mmcblk0p47 ' \
-e 's block/bootdevice/by-name/boot_a mmcblk0p42 ' \
-e 's block/bootdevice/by-name/boot_b mmcblk0p43 ' \
-e 's block/bootdevice/by-name/cmnlib64_a mmcblk0p22 ' \
-e 's block/bootdevice/by-name/cmnlib64_b mmcblk0p23 ' \
-e 's block/bootdevice/by-name/cmnlib_a mmcblk0p20 ' \
-e 's block/bootdevice/by-name/cmnlib_b mmcblk0p21 ' \
-e 's block/bootdevice/by-name/ddr mmcblk0p59 ' \
-e 's block/bootdevice/by-name/devcfg_a mmcblk0p24 ' \
-e 's block/bootdevice/by-name/devcfg_b mmcblk0p25 ' \
-e 's block/bootdevice/by-name/devinfo mmcblk0p52 ' \
-e 's block/bootdevice/by-name/diag mmcblk0p65 ' \
-e 's block/bootdevice/by-name/dsp_a mmcblk0p50 ' \
-e 's block/bootdevice/by-name/dsp_b mmcblk0p51 ' \
-e 's block/bootdevice/by-name/dtbo_a mmcblk0p79 ' \
-e 's block/bootdevice/by-name/dtbo_b mmcblk0p80 ' \
-e 's block/bootdevice/by-name/frp mmcblk0p61 ' \
-e 's block/bootdevice/by-name/fsc mmcblk0p38 ' \
-e 's block/bootdevice/by-name/fsg mmcblk0p41 ' \
-e 's block/bootdevice/by-name/hyp_a mmcblk0p14 ' \
-e 's block/bootdevice/by-name/hyp_b mmcblk0p15 ' \
-e 's block/bootdevice/by-name/imagefv_a mmcblk0p36 ' \
-e 's block/bootdevice/by-name/imagefv_b mmcblk0p37 ' \
-e 's block/bootdevice/by-name/keymaster_a mmcblk0p18 ' \
-e 's block/bootdevice/by-name/keymaster_b mmcblk0p19 ' \
-e 's block/bootdevice/by-name/keystore mmcblk0p63 ' \
-e 's block/bootdevice/by-name/limits mmcblk0p55 ' \
-e 's block/bootdevice/by-name/logdump mmcblk0p68 ' \
-e 's block/bootdevice/by-name/logfs mmcblk0p57 ' \
-e 's block/bootdevice/by-name/metadata mmcblk0p66 ' \
-e 's block/by-name/metadata mmcblk0p66 ' \
-e 's block/bootdevice/by-name/misc mmcblk0p62 ' \
-e 's block/bootdevice/by-name/modem_a mmcblk0p48 ' \
-e 's block/bootdevice/by-name/modem_b mmcblk0p49 ' \
-e 's block/bootdevice/by-name/modemst1 mmcblk0p39 ' \
-e 's block/bootdevice/by-name/modemst2 mmcblk0p40 ' \
-e 's block/bootdevice/by-name/multiimgoem_a mmcblk0p71 ' \
-e 's block/bootdevice/by-name/multiimgoem_b mmcblk0p72 ' \
-e 's block/bootdevice/by-name/multiimgqti_a mmcblk0p73 ' \
-e 's block/bootdevice/by-name/multiimgqti_b mmcblk0p74 ' \
-e 's block/bootdevice/by-name/oem_a mmcblk0p83 ' \
-e 's block/by-name/oem_a mmcblk0p83 ' \
-e 's block/bootdevice/by-name/oem_b mmcblk0p84 ' \
-e 's block/bootdevice/by-name/persist mmcblk0p2 ' \
-e 's block/bootdevice/by-name/qupfw_a mmcblk0p34 ' \
-e 's block/bootdevice/by-name/qupfw_b mmcblk0p35 ' \
-e 's block/bootdevice/by-name/rddata mmcblk0p87 ' \
-e 's block/bootdevice/by-name/rdimage_a mmcblk0p81 ' \
-e 's block/bootdevice/by-name/rdimage_b mmcblk0p82 ' \
-e 's block/bootdevice/by-name/recovery_a mmcblk0p44 ' \
-e 's block/bootdevice/by-name/recovery_b mmcblk0p45 ' \
-e 's block/bootdevice/by-name/rpm_a mmcblk0p12 ' \
-e 's block/bootdevice/by-name/rpm_b mmcblk0p13 ' \
-e 's block/bootdevice/by-name/secdata mmcblk0p69 ' \
-e 's block/bootdevice/by-name/splash mmcblk0p54 ' \
-e 's block/bootdevice/by-name/spunvm mmcblk0p67 ' \
-e 's block/bootdevice/by-name/ssd mmcblk0p60 ' \
-e 's block/bootdevice/by-name/storsec mmcblk0p58 ' \
-e 's block/bootdevice/by-name/super mmcblk0p85 ' \
-e 's block/bootdevice/by-name/toolsfv mmcblk0p56 ' \
-e 's block/bootdevice/by-name/tz_a mmcblk0p10 ' \
-e 's block/bootdevice/by-name/tz_b mmcblk0p11 ' \
-e 's block/bootdevice/by-name/tzxfl_a mmcblk0p30 ' \
-e 's block/bootdevice/by-name/tzxfl_b mmcblk0p31 ' \
-e 's block/bootdevice/by-name/tzxflattest_a mmcblk0p28 ' \
-e 's block/bootdevice/by-name/tzxflattest_b mmcblk0p29 ' \
-e 's block/bootdevice/by-name/uefisecapp_a mmcblk0p32 ' \
-e 's block/bootdevice/by-name/uefisecapp_b mmcblk0p33 ' \
-e 's block/bootdevice/by-name/uefivarstore mmcblk0p70 ' \
-e 's block/bootdevice/by-name/userdata mmcblk0p86 ' \
-e 's block/bootdevice/by-name/vbmeta_a mmcblk0p75 ' \
-e 's block/bootdevice/by-name/vbmeta_b mmcblk0p76 ' \
-e 's block/bootdevice/by-name/vbmeta_system_a mmcblk0p77 ' \
-e 's block/bootdevice/by-name/vbmeta_system_b mmcblk0p78 ' \
-e 's block/bootdevice/by-name/xbl_a mmcblk0p6 ' \
-e 's block/bootdevice/by-name/xbl_b mmcblk0p7 ' \
-e 's block/bootdevice/by-name/xbl_config_a mmcblk0p8 ' \
-e 's block/bootdevice/by-name/xbl_config_b mmcblk0p9 ' \
-e 's block/bootdevice/by-name/xfl_a mmcblk0p26 ' \
-e 's block/bootdevice/by-name/xfl_b mmcblk0p27 ' \
-e 's block/bootdevice/by-name/xflkeystore mmcblk0p4 ' \
-e 's block/bootdevice/by-name/xflkeystorebak mmcblk0p5 ' \
"$@"
;;
"griffin"|"bahamut")
sed -i \
-e 's block/bootdevice/by-name/LTALabel sda2 ' \
-e 's block/bootdevice/by-name/TA sda1 ' \
-e 's block/bootdevice/by-name/abl_a sda12 ' \
-e 's block/bootdevice/by-name/abl_b sda25 ' \
-e 's block/bootdevice/by-name/aop_a sda9 ' \
-e 's block/bootdevice/by-name/aop_b sda22 ' \
-e 's block/bootdevice/by-name/apdp sda56 ' \
-e 's block/bootdevice/by-name/appslog sda72 ' \
-e 's block/bootdevice/by-name/bluetooth sda36 ' \
-e 's block/bootdevice/by-name/bluetooth_b sda46 ' \
-e 's block/bootdevice/by-name/boot_a sda38 ' \
-e 's block/bootdevice/by-name/boot_b sda48 ' \
-e 's block/bootdevice/by-name/cdt sda67 ' \
-e 's block/bootdevice/by-name/cmnlib64_a sda15 ' \
-e 's block/bootdevice/by-name/cmnlib64_b sda28 ' \
-e 's block/bootdevice/by-name/cmnlib_a sda14 ' \
-e 's block/bootdevice/by-name/cmnlib_b sda27 ' \
-e 's block/bootdevice/by-name/ddr sda8 ' \
-e 's block/bootdevice/by-name/devcfg_a sda16 ' \
-e 's block/bootdevice/by-name/devcfg_b sda29 ' \
-e 's block/bootdevice/by-name/devinfo sda7 ' \
-e 's block/bootdevice/by-name/diag sda73 ' \
-e 's block/bootdevice/by-name/dsp sda37 ' \
-e 's block/bootdevice/by-name/dsp_b sda47 ' \
-e 's block/bootdevice/by-name/dtbo_a sda41 ' \
-e 's block/bootdevice/by-name/dtbo_b sda51 ' \
-e 's block/bootdevice/by-name/frp sda70 ' \
-e 's block/bootdevice/by-name/fsc sda74 ' \
-e 's block/bootdevice/by-name/fsg sda66 ' \
-e 's block/bootdevice/by-name/hyp_a sda11 ' \
-e 's block/bootdevice/by-name/hyp_b sda24 ' \
-e 's block/bootdevice/by-name/keymaster_a sda13 ' \
-e 's block/bootdevice/by-name/keymaster_b sda26 ' \
-e 's block/bootdevice/by-name/keystore sda69 ' \
-e 's block/bootdevice/by-name/limits sda59 ' \
-e 's block/bootdevice/by-name/logdump sda62 ' \
-e 's block/bootdevice/by-name/logfs sda61 ' \
-e 's block/bootdevice/by-name/metadata sda71 ' \
-e 's block/bootdevice/by-name/misc sda68 ' \
-e 's block/bootdevice/by-name/modem sda35 ' \
-e 's block/bootdevice/by-name/modem_b sda45 ' \
-e 's block/bootdevice/by-name/modemst1 sda64 ' \
-e 's block/bootdevice/by-name/modemst2 sda65 ' \
-e 's block/bootdevice/by-name/msadp sda57 ' \
-e 's block/bootdevice/by-name/multiimgoem sda79 ' \
-e 's block/bootdevice/by-name/oem sda42 ' \
-e 's block/bootdevice/by-name/oem_b sda52 ' \
-e 's block/bootdevice/by-name/persist sda5 ' \
-e 's block/bootdevice/by-name/qupfw_a sda17 ' \
-e 's block/bootdevice/by-name/qupfw_b sda30 ' \
-e 's block/bootdevice/by-name/rddata sda78 ' \
-e 's block/bootdevice/by-name/rdimage_a sda39 ' \
-e 's block/bootdevice/by-name/rdimage_b sda49 ' \
-e 's block/bootdevice/by-name/sec sda55 ' \
-e 's block/bootdevice/by-name/secdata sda75 ' \
-e 's block/bootdevice/by-name/spunvm sda58 ' \
-e 's block/bootdevice/by-name/ssd sda6 ' \
-e 's block/bootdevice/by-name/storsec sda63 ' \
-e 's block/bootdevice/by-name/system_a sda44 ' \
-e 's block/bootdevice/by-name/system_b sda54 ' \
-e 's block/bootdevice/by-name/toolsfv sda60 ' \
-e 's block/bootdevice/by-name/tz_a sda10 ' \
-e 's block/bootdevice/by-name/tz_b sda23 ' \
-e 's block/bootdevice/by-name/tzxfl_a sda20 ' \
-e 's block/bootdevice/by-name/tzxfl_b sda33 ' \
-e 's block/bootdevice/by-name/tzxflattest_a sda19 ' \
-e 's block/bootdevice/by-name/tzxflattest_b sda32 ' \
-e 's block/bootdevice/by-name/uefisecapp_a sda21 ' \
-e 's block/bootdevice/by-name/uefisecapp_b sda34 ' \
-e 's block/bootdevice/by-name/uefivarstore sda76 ' \
-e 's block/bootdevice/by-name/userdata sda77 ' \
-e 's block/bootdevice/by-name/vbmeta_a sda40 ' \
-e 's block/bootdevice/by-name/vbmeta_b sda50 ' \
-e 's block/bootdevice/by-name/vendor_a sda43 ' \
-e 's block/bootdevice/by-name/vendor_b sda53 ' \
-e 's block/bootdevice/by-name/xbl_a sdb1 ' \
-e 's block/bootdevice/by-name/xbl_b sdc1 ' \
-e 's block/bootdevice/by-name/xbl_config_a sdb2 ' \
-e 's block/bootdevice/by-name/xbl_config_b sdc2 ' \
-e 's block/bootdevice/by-name/xfl_a sda18 ' \
-e 's block/bootdevice/by-name/xfl_b sda31 ' \
-e 's block/bootdevice/by-name/xflkeystore sda3 ' \
-e 's block/bootdevice/by-name/xflkeystorebak sda4 ' \
"$@"
;;
"kirin"|"mermaid")
sed -i \
-e 's block/bootdevice/by-name/LTALabel mmcblk0p7 ' \
-e 's block/bootdevice/by-name/TA mmcblk0p1 ' \
-e 's block/bootdevice/by-name/abl_a mmcblk0p20 ' \
-e 's block/bootdevice/by-name/abl_b mmcblk0p21 ' \
-e 's block/bootdevice/by-name/apdp mmcblk0p48 ' \
-e 's block/bootdevice/by-name/appslog mmcblk0p63 ' \
-e 's block/bootdevice/by-name/bluetooth_a mmcblk0p40 ' \
-e 's block/bootdevice/by-name/bluetooth_b mmcblk0p41 ' \
-e 's block/bootdevice/by-name/boot_a mmcblk0p38 ' \
-e 's block/bootdevice/by-name/boot_b mmcblk0p39 ' \
-e 's block/bootdevice/by-name/cdt mmcblk0p24 ' \
-e 's block/bootdevice/by-name/cmnlib64_a mmcblk0p27 ' \
-e 's block/bootdevice/by-name/cmnlib64_b mmcblk0p28 ' \
-e 's block/bootdevice/by-name/cmnlib_a mmcblk0p25 ' \
-e 's block/bootdevice/by-name/cmnlib_b mmcblk0p26 ' \
-e 's block/bootdevice/by-name/ddr mmcblk0p55 ' \
-e 's block/bootdevice/by-name/devcfg_a mmcblk0p29 ' \
-e 's block/bootdevice/by-name/devcfg_b mmcblk0p30 ' \
-e 's block/bootdevice/by-name/devinfo mmcblk0p47 ' \
-e 's block/bootdevice/by-name/diag mmcblk0p64 ' \
-e 's block/bootdevice/by-name/dip mmcblk0p46 ' \
-e 's block/bootdevice/by-name/dpo mmcblk0p50 ' \
-e 's block/bootdevice/by-name/dsp_a mmcblk0p44 ' \
-e 's block/bootdevice/by-name/dsp_b mmcblk0p45 ' \
-e 's block/bootdevice/by-name/frp mmcblk0p58 ' \
-e 's block/bootdevice/by-name/fsc mmcblk0p3 ' \
-e 's block/bootdevice/by-name/fsg mmcblk0p6 ' \
-e 's block/bootdevice/by-name/fsmetadata mmcblk0p62 ' \
-e 's block/bootdevice/by-name/hyp_a mmcblk0p16 ' \
-e 's block/bootdevice/by-name/hyp_b mmcblk0p17 ' \
-e 's block/bootdevice/by-name/keymaster_a mmcblk0p22 ' \
-e 's block/bootdevice/by-name/keymaster_b mmcblk0p23 ' \
-e 's block/bootdevice/by-name/keystore mmcblk0p61 ' \
-e 's block/bootdevice/by-name/limits mmcblk0p52 ' \
-e 's block/bootdevice/by-name/logfs mmcblk0p54 ' \
-e 's block/bootdevice/by-name/misc mmcblk0p60 ' \
-e 's block/bootdevice/by-name/modem_a mmcblk0p42 ' \
-e 's block/bootdevice/by-name/modem_b mmcblk0p43 ' \
-e 's block/bootdevice/by-name/modemst1 mmcblk0p4 ' \
-e 's block/bootdevice/by-name/modemst2 mmcblk0p5 ' \
-e 's block/bootdevice/by-name/msadp mmcblk0p49 ' \
-e 's block/bootdevice/by-name/oem_a mmcblk0p67 ' \
-e 's block/bootdevice/by-name/oem mmcblk0p67 ' \
-e 's block/bootdevice/by-name/oem_b mmcblk0p68 ' \
-e 's block/bootdevice/by-name/persist mmcblk0p2 ' \
-e 's block/bootdevice/by-name/pmic_a mmcblk0p18 ' \
-e 's block/bootdevice/by-name/pmic_b mmcblk0p19 ' \
-e 's block/bootdevice/by-name/rddata mmcblk0p74 ' \
-e 's block/bootdevice/by-name/rdimage_a mmcblk0p65 ' \
-e 's block/bootdevice/by-name/rdimage_b mmcblk0p66 ' \
-e 's block/bootdevice/by-name/rpm_a mmcblk0p14 ' \
-e 's block/bootdevice/by-name/rpm_b mmcblk0p15 ' \
-e 's block/bootdevice/by-name/sec mmcblk0p56 ' \
-e 's block/bootdevice/by-name/splash mmcblk0p51 ' \
-e 's block/bootdevice/by-name/ssd mmcblk0p57 ' \
-e 's block/bootdevice/by-name/sti mmcblk0p59 ' \
-e 's block/bootdevice/by-name/storsec mmcblk0p31 ' \
-e 's block/bootdevice/by-name/system_a mmcblk0p71 ' \
-e 's block/bootdevice/by-name/system mmcblk0p71 ' \
-e 's block/bootdevice/by-name/system_b mmcblk0p72 ' \
-e 's block/bootdevice/by-name/toolsfv mmcblk0p53 ' \
-e 's block/bootdevice/by-name/tz_a mmcblk0p12 ' \
-e 's block/bootdevice/by-name/tz_b mmcblk0p13 ' \
-e 's block/bootdevice/by-name/tzxfl_a mmcblk0p36 ' \
-e 's block/bootdevice/by-name/tzxfl_b mmcblk0p37 ' \
-e 's block/bootdevice/by-name/tzxflattest_a mmcblk0p34 ' \
-e 's block/bootdevice/by-name/tzxflattest_b mmcblk0p35 ' \
-e 's block/bootdevice/by-name/userdata mmcblk0p73 ' \
-e 's block/bootdevice/by-name/vendor_a mmcblk0p69 ' \
-e 's block/bootdevice/by-name/vendor mmcblk0p69 ' \
-e 's block/bootdevice/by-name/vendor_b mmcblk0p70 ' \
-e 's block/bootdevice/by-name/xbl_a mmcblk0p10 ' \
-e 's block/bootdevice/by-name/xbl_b mmcblk0p11 ' \
-e 's block/bootdevice/by-name/xfl_a mmcblk0p32 ' \
-e 's block/bootdevice/by-name/xfl_b mmcblk0p33 ' \
-e 's block/bootdevice/by-name/xflkeystore mmcblk0p8 ' \
-e 's block/bootdevice/by-name/xflkeystorebak mmcblk0p9 ' \
"$@"
;;
"pioneer"|"discovery"|"voyager")
sed -i \
-e 's block/bootdevice/by-name/LTALabel mmcblk0p7 ' \
-e 's block/bootdevice/by-name/Qnovo mmcblk0p75 ' \
-e 's block/bootdevice/by-name/TA mmcblk0p1 ' \
-e 's block/bootdevice/by-name/abl mmcblk0p20 ' \
-e 's block/bootdevice/by-name/apdp mmcblk0p52 ' \
-e 's block/bootdevice/by-name/appslog mmcblk0p73 ' \
-e 's block/bootdevice/by-name/bluetooth_a mmcblk0p40 ' \
-e 's block/bootdevice/by-name/boot mmcblk0p38 ' \
-e 's block/bootdevice/by-name/cdt mmcblk0p24 ' \
-e 's block/bootdevice/by-name/cmnlib64 mmcblk0p27 ' \
-e 's block/bootdevice/by-name/cmnlib mmcblk0p25 ' \
-e 's block/bootdevice/by-name/ddr mmcblk0p59 ' \
-e 's block/bootdevice/by-name/devcfg mmcblk0p29 ' \
-e 's block/bootdevice/by-name/devinfo mmcblk0p51 ' \
-e 's block/bootdevice/by-name/diag mmcblk0p74 ' \
-e 's block/bootdevice/by-name/dip mmcblk0p50 ' \
-e 's block/bootdevice/by-name/dpo mmcblk0p54 ' \
-e 's block/bootdevice/by-name/dsp_a mmcblk0p44 ' \
-e 's block/bootdevice/by-name/frp mmcblk0p62 ' \
-e 's block/bootdevice/by-name/fsc mmcblk0p3 ' \
-e 's block/bootdevice/by-name/fsg mmcblk0p6 ' \
-e 's block/bootdevice/by-name/fsmetadata mmcblk0p72 ' \
-e 's block/bootdevice/by-name/hyp mmcblk0p16 ' \
-e 's block/bootdevice/by-name/keymaster mmcblk0p22 ' \
-e 's block/bootdevice/by-name/keystore mmcblk0p67 ' \
-e 's block/bootdevice/by-name/limits mmcblk0p56 ' \
-e 's block/bootdevice/by-name/logfs mmcblk0p58 ' \
-e 's block/bootdevice/by-name/mdtp mmcblk0p48 ' \
-e 's block/bootdevice/by-name/mdtpsecapp mmcblk0p46 ' \
-e 's block/bootdevice/by-name/misc mmcblk0p64 ' \
-e 's block/bootdevice/by-name/modem_a mmcblk0p42 ' \
-e 's block/bootdevice/by-name/modemst1 mmcblk0p4 ' \
-e 's block/bootdevice/by-name/modemst2 mmcblk0p5 ' \
-e 's block/bootdevice/by-name/msadp mmcblk0p53 ' \
-e 's block/bootdevice/by-name/oem_a mmcblk0p68 ' \
-e 's block/bootdevice/by-name/persist mmcblk0p2 ' \
-e 's block/bootdevice/by-name/pmic mmcblk0p18 ' \
-e 's block/bootdevice/by-name/rddata mmcblk0p77 ' \
-e 's block/bootdevice/by-name/rdimage mmcblk0p65 ' \
-e 's block/bootdevice/by-name/rpm mmcblk0p14 ' \
-e 's block/bootdevice/by-name/sec mmcblk0p60 ' \
-e 's block/bootdevice/by-name/splash mmcblk0p55 ' \
-e 's block/bootdevice/by-name/ssd mmcblk0p61 ' \
-e 's block/bootdevice/by-name/sti mmcblk0p63 ' \
-e 's block/bootdevice/by-name/storsec mmcblk0p31 ' \
-e 's block/bootdevice/by-name/system mmcblk0p78 ' \
-e 's block/bootdevice/by-name/toolsfv mmcblk0p57 ' \
-e 's block/bootdevice/by-name/tz mmcblk0p12 ' \
-e 's block/bootdevice/by-name/tzxfl mmcblk0p36 ' \
-e 's block/bootdevice/by-name/tzxflattest mmcblk0p34 ' \
-e 's block/bootdevice/by-name/userdata mmcblk0p76 ' \
-e 's block/bootdevice/by-name/vendor mmcblk0p70 ' \
-e 's block/bootdevice/by-name/xbl mmcblk0p10 ' \
-e 's block/bootdevice/by-name/xfl mmcblk0p32 ' \
-e 's block/bootdevice/by-name/xflkeystore mmcblk0p8 ' \
-e 's block/bootdevice/by-name/xflkeystorebak mmcblk0p9 ' \
"$@"
;;
"akari")
sed -i \
-e 's block/bootdevice/by-name/LTALabel sda2 ' \
-e 's block/bootdevice/by-name/Qnovo sda70 ' \
-e 's block/bootdevice/by-name/TA sda1 ' \
-e 's block/bootdevice/by-name/abl_a sda12 ' \
-e 's block/bootdevice/by-name/abl_b sda24 ' \
-e 's block/bootdevice/by-name/aop_a sda9 ' \
-e 's block/bootdevice/by-name/aop_b sda21 ' \
-e 's block/bootdevice/by-name/apdp sda54 ' \
-e 's block/bootdevice/by-name/appslog sda68 ' \
-e 's block/bootdevice/by-name/bluetooth_a sda34 ' \
-e 's block/bootdevice/by-name/bluetooth sda34 ' \
-e 's block/bootdevice/by-name/bluetooth_b sda44 ' \
-e 's block/bootdevice/by-name/boot_a sda36 ' \
-e 's block/bootdevice/by-name/boot_b sda46 ' \
-e 's block/bootdevice/by-name/cdt sda64 ' \
-e 's block/bootdevice/by-name/cmnlib64_a sda15 ' \
-e 's block/bootdevice/by-name/cmnlib64_b sda27 ' \
-e 's block/bootdevice/by-name/cmnlib_a sda14 ' \
-e 's block/bootdevice/by-name/cmnlib_b sda26 ' \
-e 's block/bootdevice/by-name/ddr sda8 ' \
-e 's block/bootdevice/by-name/devcfg_a sda16 ' \
-e 's block/bootdevice/by-name/devcfg_b sda28 ' \
-e 's block/bootdevice/by-name/devinfo sda7 ' \
-e 's block/bootdevice/by-name/diag sda69 ' \
-e 's block/bootdevice/by-name/dsp_a sda35 ' \
-e 's block/bootdevice/by-name/dsp sda35 ' \
-e 's block/bootdevice/by-name/dsp_b sda45 ' \
-e 's block/bootdevice/by-name/dtbo_a sda39 ' \
-e 's block/bootdevice/by-name/dtbo_b sda49 ' \
-e 's block/bootdevice/by-name/frp sda67 ' \
-e 's block/bootdevice/by-name/fsc sda72 ' \
-e 's block/bootdevice/by-name/fsg sda63 ' \
-e 's block/bootdevice/by-name/fsmetadata sda71 ' \
-e 's block/bootdevice/by-name/hyp_a sda11 ' \
-e 's block/bootdevice/by-name/hyp_b sda23 ' \
-e 's block/bootdevice/by-name/keymaster_a sda13 ' \
-e 's block/bootdevice/by-name/keymaster_b sda25 ' \
-e 's block/bootdevice/by-name/keystore sda66 ' \
-e 's block/bootdevice/by-name/limits sda57 ' \
-e 's block/bootdevice/by-name/logdump sda60 ' \
-e 's block/bootdevice/by-name/logfs sda59 ' \
-e 's block/bootdevice/by-name/misc sda65 ' \
-e 's block/bootdevice/by-name/modem_a sda33 ' \
-e 's block/bootdevice/by-name/modem sda33 ' \
-e 's block/bootdevice/by-name/modem_b sda43 ' \
-e 's block/bootdevice/by-name/modemst1 sda61 ' \
-e 's block/bootdevice/by-name/modemst2 sda62 ' \
-e 's block/bootdevice/by-name/msadp sda55 ' \
-e 's block/bootdevice/by-name/oem_a sda40 ' \
-e 's block/bootdevice/by-name/oem sda40 ' \
-e 's block/bootdevice/by-name/oem_b sda50 ' \
-e 's block/bootdevice/by-name/persist sda5 ' \
-e 's block/bootdevice/by-name/qupfw_a sda17 ' \
-e 's block/bootdevice/by-name/qupfw_b sda29 ' \
-e 's block/bootdevice/by-name/rddata sda74 ' \
-e 's block/bootdevice/by-name/rdimage_a sda37 ' \
-e 's block/bootdevice/by-name/rdimage_b sda47 ' \
-e 's block/bootdevice/by-name/sec sda53 ' \
-e 's block/bootdevice/by-name/spunvm sda56 ' \
-e 's block/bootdevice/by-name/ssd sda6 ' \
-e 's block/bootdevice/by-name/system_a sda42 ' \
-e 's block/bootdevice/by-name/system_b sda52 ' \
-e 's block/bootdevice/by-name/toolsfv sda58 ' \
-e 's block/bootdevice/by-name/tz_a sda10 ' \
-e 's block/bootdevice/by-name/tz_b sda22 ' \
-e 's block/bootdevice/by-name/tzxfl_a sda20 ' \
-e 's block/bootdevice/by-name/tzxfl_b sda32 ' \
-e 's block/bootdevice/by-name/tzxflattest_a sda19 ' \
-e 's block/bootdevice/by-name/tzxflattest_b sda31 ' \
-e 's block/bootdevice/by-name/userdata sda73 ' \
-e 's block/bootdevice/by-name/vbmeta_a sda38 ' \
-e 's block/bootdevice/by-name/vbmeta_b sda48 ' \
-e 's block/bootdevice/by-name/vendor_a sda41 ' \
-e 's block/bootdevice/by-name/vendor_b sda51 ' \
-e 's block/bootdevice/by-name/xbl_a sdb1 ' \
-e 's block/bootdevice/by-name/xbl_b sdc1 ' \
-e 's block/bootdevice/by-name/xbl_config_a sdb2 ' \
-e 's block/bootdevice/by-name/xbl_config_b sdc2 ' \
-e 's block/bootdevice/by-name/xfl_a sda18 ' \
-e 's block/bootdevice/by-name/xfl_b sda30 ' \
-e 's block/bootdevice/by-name/xflkeystore sda3 ' \
-e 's block/bootdevice/by-name/xflkeystorebak sda4 ' \
"$@"
;;
"lilac")
sed -i \
-e 's block/bootdevice/by-name/FOTAKernel sda47 ' \
-e 's block/bootdevice/by-name/LTALabel sda2 ' \
-e 's block/bootdevice/by-name/Qnovo sda60 ' \
-e 's block/bootdevice/by-name/TA sda1 ' \
-e 's block/bootdevice/by-name/abl sda11 ' \
-e 's block/bootdevice/by-name/ablbak sda12 ' \
-e 's block/bootdevice/by-name/apdp sda40 ' \
-e 's block/bootdevice/by-name/appslog sda58 ' \
-e 's block/bootdevice/by-name/bluetooth sda39 ' \
-e 's block/bootdevice/by-name/boot sda38 ' \
-e 's block/bootdevice/by-name/cache sda53 ' \
-e 's block/bootdevice/by-name/cmnlib sda16 ' \
-e 's block/bootdevice/by-name/cmnlib64 sda18 ' \
-e 's block/bootdevice/by-name/cmnlib64bak sda19 ' \
-e 's block/bootdevice/by-name/cmnlibbak sda17 ' \
-e 's block/bootdevice/by-name/ddr sda48 ' \
-e 's block/bootdevice/by-name/devcfg sda21 ' \
-e 's block/bootdevice/by-name/devcfgbak sda22 ' \
-e 's block/bootdevice/by-name/devinfo sda13 ' \
-e 's block/bootdevice/by-name/diag sda59 ' \
-e 's block/bootdevice/by-name/dpo sda42 ' \
-e 's block/bootdevice/by-name/dsp sda37 ' \
-e 's block/bootdevice/by-name/frp sda56 ' \
-e 's block/bootdevice/by-name/fsc sda51 ' \
-e 's block/bootdevice/by-name/fsg sda34 ' \
-e 's block/bootdevice/by-name/fsmetadata sda61 ' \
-e 's block/bootdevice/by-name/hyp sda7 ' \
-e 's block/bootdevice/by-name/hypbak sda8 ' \
-e 's block/bootdevice/by-name/keymaster sda14 ' \
-e 's block/bootdevice/by-name/keymasterbak sda15 ' \
-e 's block/bootdevice/by-name/keystore sda55 ' \
-e 's block/bootdevice/by-name/limits sda44 ' \
-e 's block/bootdevice/by-name/logfs sda46 ' \
-e 's block/bootdevice/by-name/misc sda54 ' \
-e 's block/bootdevice/by-name/modem sda36 ' \
-e 's block/bootdevice/by-name/modemst1 sda49 ' \
-e 's block/bootdevice/by-name/modemst2 sda50 ' \
-e 's block/bootdevice/by-name/msadp sda41 ' \
-e 's block/bootdevice/by-name/oem sda63 ' \
-e 's block/bootdevice/by-name/persist sda33 ' \
-e 's block/bootdevice/by-name/pmic sda9 ' \
-e 's block/bootdevice/by-name/pmicbak sda10 ' \
-e 's block/bootdevice/by-name/rdimage sda62 ' \
-e 's block/bootdevice/by-name/rpm sda3 ' \
-e 's block/bootdevice/by-name/rpmbak sda4 ' \
-e 's block/bootdevice/by-name/sec sda35 ' \
-e 's block/bootdevice/by-name/splash sda43 ' \
-e 's block/bootdevice/by-name/ssd sda52 ' \
-e 's block/bootdevice/by-name/sti sda20 ' \
-e 's block/bootdevice/by-name/storsec sda23 ' \
-e 's block/bootdevice/by-name/storsecbak sda24 ' \
-e 's block/bootdevice/by-name/system sda65 ' \
-e 's block/bootdevice/by-name/toolsfv sda45 ' \
-e 's block/bootdevice/by-name/tz sda5 ' \
-e 's block/bootdevice/by-name/tzbak sda6 ' \
-e 's block/bootdevice/by-name/tzxfl sda29 ' \
-e 's block/bootdevice/by-name/tzxflattest sda27 ' \
-e 's block/bootdevice/by-name/tzxflattestbak sda28 ' \
-e 's block/bootdevice/by-name/tzxflbak sda30 ' \
-e 's block/bootdevice/by-name/userdata sda66 ' \
-e 's block/bootdevice/by-name/vbmeta sda57 ' \
-e 's block/bootdevice/by-name/vendor sda64 ' \
-e 's block/bootdevice/by-name/xbl sdb1 ' \
-e 's block/bootdevice/by-name/xblbak sdc1 ' \
-e 's block/bootdevice/by-name/xfl sda25 ' \
-e 's block/bootdevice/by-name/xflbak sda26 ' \
-e 's block/bootdevice/by-name/xflkeystore sda31 ' \
-e 's block/bootdevice/by-name/xflkeystorebak sda32 ' \
"$@"
;;
"ghost")
sed -i \
-e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
-e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p23 ' \
-e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p38 ' \
-e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p40 ' \
-e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p25 ' \
-e 's block/platform/msm_sdcc.1/by-name/pds mmcblk0p28 ' \
"$@"
;;
"lux")
sed -i \
-e 's block/bootdevice/by-name/boot mmcblk0p31 ' \
-e 's block/bootdevice/by-name/system mmcblk0p41 ' \
-e 's block/bootdevice/by-name/cache mmcblk0p40 ' \
-e 's block/bootdevice/by-name/userdata mmcblk0p42 ' \
-e 's block/bootdevice/by-name/modem mmcblk0p1 ' \
-e 's block/bootdevice/by-name/persist mmcblk0p29 ' \
-e 's block/bootdevice/by-name/fsg mmcblk0p23 ' \
-e 's block/bootdevice/by-name/recovery mmcblk0p32 ' \
"$@"
;;
"victara")
sed -i \
-e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p22 ' \
-e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
-e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p31 ' \
-e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p39 ' \
-e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p38 ' \
-e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p37 ' \
-e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p34 ' \
-e 's block/platform/msm_sdcc.1/by-name/pds mmcblk0p27 ' \
-e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p33 ' \
"$@"
;;
"pico")
sed -i \
-e 's null null ' \
-e 's block/mmcblk0p3 mmcblk0p3 ' \
-e 's block/mtdblock4 mtdblock4 ' \
-e 's block/mmcblk0p2 mmcblk0p2 ' \
"$@"
;;
"alice")
sed -i \
-e 's block/mmcblk0p38 mmcblk0p38 ' \
-e 's block/platform/hi_mci.0/by-name/userdata mmcblk0p40 ' \
-e 's block/mmcblk0p34 mmcblk0p34 ' \
-e 's block/platform/hi_mci.0/by-name/misc mmcblk0p19 ' \
-e 's block/platform/hi_mci.0/by-name/boot mmcblk0p27 ' \
-e 's block/platform/hi_mci.0/by-name/recovery mmcblk0p28 ' \
"$@"
;;
"kinzie")
sed -i \
-e 's block/bootdevice/by-name/fsg mmcblk0p24 ' \
-e 's block/bootdevice/by-name/modem mmcblk0p1 ' \
-e 's block/bootdevice/by-name/persist mmcblk0p34 ' \
-e 's block/bootdevice/by-name/userdata mmcblk0p48 ' \
-e 's block/bootdevice/by-name/system mmcblk0p47 ' \
-e 's block/bootdevice/by-name/cache mmcblk0p46 ' \
-e 's block/bootdevice/by-name/recovery mmcblk0p37 ' \
-e 's block/bootdevice/by-name/boot mmcblk0p36 ' \
-e 's block/bootdevice/by-name/bluetooth mmcblk0p18 ' \
"$@"
;;
"titan")
sed -i \
-e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p21 ' \
-e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
-e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p29 ' \
-e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p38 ' \
-e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p36 ' \
-e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p35 ' \
-e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p32 ' \
-e 's block/platform/msm_sdcc.1/by-name/pds mmcblk0p26 ' \
-e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p31 ' \
"$@"
;;
"thea")
sed -i \
-e 's block/platform/msm_sdcc.1/by-name/fsg mmcblk0p22 ' \
-e 's block/platform/msm_sdcc.1/by-name/modem mmcblk0p1 ' \
-e 's block/platform/msm_sdcc.1/by-name/persist mmcblk0p30 ' \
-e 's block/platform/msm_sdcc.1/by-name/userdata mmcblk0p42 ' \
-e 's block/platform/msm_sdcc.1/by-name/system mmcblk0p40 ' \
-e 's block/platform/msm_sdcc.1/by-name/cache mmcblk0p41 ' \
-e 's block/platform/msm_sdcc.1/by-name/recovery mmcblk0p33 ' \
-e 's block/platform/msm_sdcc.1/by-name/pds mmcblk0p27 ' \
-e 's block/platform/msm_sdcc.1/by-name/boot mmcblk0p32 ' \
"$@"
;;
"suzu")
sed -i \
-e 's block/bootdevice/by-name/DDR mmcblk0p16 ' \
-e 's block/bootdevice/by-name/FOTAKernel mmcblk0p42 ' \
-e 's block/bootdevice/by-name/LTALabel mmcblk0p2 ' \
-e 's block/bootdevice/by-name/Qnovo mmcblk0p46 ' \
-e 's block/bootdevice/by-name/TA mmcblk0p1 ' \
-e 's block/bootdevice/by-name/aboot mmcblk0p20 ' \
-e 's block/bootdevice/by-name/abootbak mmcblk0p21 ' \
-e 's block/bootdevice/by-name/apdp mmcblk0p37 ' \
-e 's block/bootdevice/by-name/apps_log mmcblk0p44 ' \
-e 's block/bootdevice/by-name/boot mmcblk0p22 ' \
-e 's block/bootdevice/by-name/cache mmcblk0p24 ' \
-e 's block/bootdevice/by-name/cmnlib mmcblk0p33 ' \
-e 's block/bootdevice/by-name/cmnlibbak mmcblk0p35 ' \
-e 's block/bootdevice/by-name/config mmcblk0p27 ' \
-e 's block/bootdevice/by-name/devcfg mmcblk0p31 ' \
-e 's block/bootdevice/by-name/devinfo mmcblk0p23 ' \
-e 's block/bootdevice/by-name/diag mmcblk0p45 ' \
-e 's block/bootdevice/by-name/dpo mmcblk0p39 ' \
-e 's block/bootdevice/by-name/dsp mmcblk0p13 ' \
-e 's block/bootdevice/by-name/fsg mmcblk0p17 ' \
-e 's block/bootdevice/by-name/hyp mmcblk0p11 ' \
-e 's block/bootdevice/by-name/hypbak mmcblk0p12 ' \
-e 's block/bootdevice/by-name/keymaster mmcblk0p34 ' \
-e 's block/bootdevice/by-name/keymasterbak mmcblk0p36 ' \
-e 's block/bootdevice/by-name/keystore mmcblk0p26 ' \
-e 's block/bootdevice/by-name/limits mmcblk0p29 ' \
-e 's block/bootdevice/by-name/mcfg mmcblk0p32 ' \
-e 's block/bootdevice/by-name/modem mmcblk0p3 ' \
-e 's block/bootdevice/by-name/modemst1 mmcblk0p14 ' \
-e 's block/bootdevice/by-name/modemst2 mmcblk0p15 ' \
-e 's block/bootdevice/by-name/mota mmcblk0p30 ' \
-e 's block/bootdevice/by-name/msadp mmcblk0p38 ' \
-e 's block/bootdevice/by-name/oem mmcblk0p28 ' \
-e 's block/bootdevice/by-name/persist mmcblk0p25 ' \
-e 's block/bootdevice/by-name/rdimage mmcblk0p43 ' \
-e 's block/bootdevice/by-name/rpm mmcblk0p7 ' \
-e 's block/bootdevice/by-name/rpmbak mmcblk0p8 ' \
-e 's block/bootdevice/by-name/s1sbl mmcblk0p40 ' \
-e 's block/bootdevice/by-name/s1sblbak mmcblk0p41 ' \
-e 's block/bootdevice/by-name/sbl1 mmcblk0p5 ' \