summaryrefslogtreecommitdiffstats
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:43 +0100
commit5e7de54d3d444e4a1b7f7c2a4d20ae7d5ab2fbba (patch)
treee42977737aab4bfd3f8eca8e5b06386f0e3d94d1
parent68bc4eb778764e4fa66dd6296ca2042e7a9ebf67 (diff)
downloadpoky-5e7de54d3d444e4a1b7f7c2a4d20ae7d5ab2fbba.tar.gz
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>
-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):
113 device_name = "/dev/" + p.disk + str(num + 1) 113 device_name = "/dev/" + p.disk + str(num + 1)
114 else: 114 else:
115 device_name = "/dev/" + p.disk + str(num) 115 device_name = "/dev/" + p.disk + str(num)
116 fstab_entry = device_name + "\t" + p.mountpoint + "\t" + p.fstype + "\tdefaults\t0\t0\n" 116
117 opts = "defaults"
118 if p.fsopts:
119 opts = p.fsopts
120
121 fstab_entry = device_name + "\t" + \
122 p.mountpoint + "\t" + \
123 p.fstype + "\t" + \
124 opts + "\t0\t0\n"
117 fstab_lines.append(fstab_entry) 125 fstab_lines.append(fstab_entry)
118 126
119 def _write_fstab(self, fstab, fstab_lines): 127 def _write_fstab(self, fstab, fstab_lines):