releasetools: Use the first entry of a mount point when reading fstab
There may be multiple entries in fstab for a mount point. Use the first value found so the entries are prioritized in order. Change-Id: Ibd2631413d3e00507d3a0ec84fb91755f1c7993c Ticket: OPO-326
This commit is contained in:
parent
8ba776d32f
commit
c161964bde
1 changed files with 4 additions and 3 deletions
|
@ -1221,9 +1221,10 @@ def LoadRecoveryFSTab(read_helper, fstab_version, recovery_fstab_path):
|
|||
context = i
|
||||
|
||||
mount_point = pieces[1]
|
||||
d[mount_point] = Partition(mount_point=mount_point, fs_type=pieces[2],
|
||||
device=pieces[0], length=length, context=context,
|
||||
slotselect=slotselect)
|
||||
if not d.get(mount_point):
|
||||
d[mount_point] = Partition(mount_point=mount_point, fs_type=pieces[2],
|
||||
device=pieces[0], length=length, context=context,
|
||||
slotselect=slotselect)
|
||||
|
||||
return d
|
||||
|
||||
|
|
Loading…
Reference in a new issue