[OE-core] [PATCH v2] wic: --fsoptions handling
Tom Zanussi
tom.zanussi at intel.com
Fri Jul 25 00:17:30 UTC 2014
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.borzecki at open-rnd.pl>
> Signed-off-by: Maciek Borzecki <maciek.borzecki at gmail.com>
Acked-by: Tom Zanussi <tom.zanussi at 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):
More information about the Openembedded-core
mailing list