mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
wic: --fsoptions handling
Add handling of --fsoptions in parition definition. If no options are specified, 'defaults' is used. (From OE-Core rev: e91c0db15db74237606fae96c9b7d21936519a86) Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl> Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
68bc4eb778
commit
5e7de54d3d
@@ -113,7 +113,15 @@ class DirectImageCreator(BaseImageCreator):
|
||||
device_name = "/dev/" + p.disk + str(num + 1)
|
||||
else:
|
||||
device_name = "/dev/" + p.disk + str(num)
|
||||
fstab_entry = device_name + "\t" + p.mountpoint + "\t" + p.fstype + "\tdefaults\t0\t0\n"
|
||||
|
||||
opts = "defaults"
|
||||
if p.fsopts:
|
||||
opts = p.fsopts
|
||||
|
||||
fstab_entry = device_name + "\t" + \
|
||||
p.mountpoint + "\t" + \
|
||||
p.fstype + "\t" + \
|
||||
opts + "\t0\t0\n"
|
||||
fstab_lines.append(fstab_entry)
|
||||
|
||||
def _write_fstab(self, fstab, fstab_lines):
|
||||
|
||||
Reference in New Issue
Block a user