On Thu, 2014-07-24 at 14:17 +0200, Maciej Borzecki wrote: > Add handling of --fsoptions in parition definition. If no options are > specified, 'defaults' is used. > > Signed-off-by: Maciej Borzecki <maciej.borze...@open-rnd.pl> > Signed-off-by: Maciek Borzecki <maciek.borze...@gmail.com>
Acked-by: Tom Zanussi <tom.zanu...@intel.com> > --- > scripts/lib/mic/imager/direct.py | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/scripts/lib/mic/imager/direct.py > b/scripts/lib/mic/imager/direct.py > index 77a118a..7e2b63a 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): -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core