summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMaciej Borzecki <maciej.borzecki@open-rnd.pl>2014-07-24 14:17:03 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-25 16:54:27 +0100
commite91c0db15db74237606fae96c9b7d21936519a86 (patch)
treee5b94c320f72d0dd272214751922085689d9ba2a /scripts
parent69e083237e632f7d84a7b218dd12d1a5ad95a229 (diff)
downloadopenembedded-core-e91c0db15db74237606fae96c9b7d21936519a86.tar.gz
openembedded-core-e91c0db15db74237606fae96c9b7d21936519a86.tar.bz2
openembedded-core-e91c0db15db74237606fae96c9b7d21936519a86.zip
wic: --fsoptions handling
Add handling of --fsoptions in parition definition. If no options are specified, 'defaults' is used. 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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/mic/imager/direct.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/lib/mic/imager/direct.py b/scripts/lib/mic/imager/direct.py
index 2cf4c8de95..ebf77d666d 100644
--- a/scripts/lib/mic/imager/direct.py
+++ b/scripts/lib/mic/imager/direct.py
@@ -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):