]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: add /boot mount point to fstab by default
authorEd Bartosh <ed.bartosh@linux.intel.com>
Fri, 28 Jul 2017 09:29:27 +0000 (12:29 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 30 Jul 2017 07:45:12 +0000 (08:45 +0100)
wic avoided adding /boot to fstab for no reason.
This exception was hardcoded in the wic code.

There is no need for this as mountpoint in .wks file is an optional
field. It can be used only if user wants to have partitions
automatically mounted on system boot.

[YOCTO #11662]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/plugins/imager/direct.py

index 4f441c1ae57b9c5347ee61ffd6a6a3ee727421fd..0a65a9c58d696cd14ba6202af3363d0e2b122729 100644 (file)
@@ -135,7 +135,7 @@ class DirectPlugin(ImagerPlugin):
         updated = False
         for part in parts:
             if not part.realnum or not part.mountpoint \
-               or part.mountpoint in ("/", "/boot"):
+               or part.mountpoint == "/":
                 continue
 
             # mmc device partitions are named mmcblk0p1, mmcblk0p2..