mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
wic:direct.py: ignore invalid mountpoints during fstab update
wic fstab-update creates invalid entries for partitons that are not supposed to be mounted from userspace eg u-boot partitions. The following lines were added to fstab on a rock-pi-4: /dev/mmcblk1p1 loader1 vfat defaults 0 0 /dev/mmcblk1p2 reserved1 vfat defaults 0 0 /dev/mmcblk1p3 reserved2 vfat defaults 0 0 /dev/mmcblk1p4 loader2 vfat defaults 0 0 /dev/mmcblk1p5 atf vfat defaults 0 0 /dev/mmcblk1p6 /boot vfat defaults 0 0 With this patch only valid entries should be added /dev/mmcblk1p6 /boot vfat defaults 0 0 (From OE-Core rev: 3c8e50b073a1505cc3586ca51dfe1e75338feafc) Signed-off-by: MarkusVolk <f_l_k@t-online.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 7aa678ce804c21dc1dc51b9be442671bc33c4041) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8967fcbcc4
commit
b8623317df
@@ -115,7 +115,7 @@ class DirectPlugin(ImagerPlugin):
|
|||||||
updated = False
|
updated = False
|
||||||
for part in self.parts:
|
for part in self.parts:
|
||||||
if not part.realnum or not part.mountpoint \
|
if not part.realnum or not part.mountpoint \
|
||||||
or part.mountpoint == "/":
|
or part.mountpoint == "/" or not part.mountpoint.startswith('/'):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if part.use_uuid:
|
if part.use_uuid:
|
||||||
|
|||||||
Reference in New Issue
Block a user