[OE-core] [PATCH] wic: Prevent duplicate entries on fstab

Burton, Ross ross.burton at intel.com
Fri Feb 24 23:02:59 UTC 2017


On 23 February 2017 at 18:13, Fabio Berton <fabio.berton at ossystems.com.br>
wrote:
>
> Add function to read fstab and return all mount points. This function
> is useful to _update_fstab doesn't duplicate entries in /etc/fstab.


The AB just failed all over with this error message:

| Traceback (most recent call last):
|   File
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/wic",
line 327, in <module>
|     sys.exit(main(sys.argv[1:]))
|   File
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/wic",
line 322, in main
|     return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage,
subcommands)
|   File
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/lib/wic/help.py",
line 95, in invoke_subcommand
|     subcommands.get(args[0], subcommand_error)[0](args[1:], usage)
|   File
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/wic",
line 255, in wic_create_subcommand
|     native_sysroot, options)
|   File
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/lib/wic/engine.py",
line 199, in wic_create
|     plugin.do_create()
|   File
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/lib/wic/plugins/imager/direct.py",
line 93, in do_create
|     self.create()
|   File
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/lib/wic/plugins/imager/direct.py",
line 176, in create
|     fstab_path = self._write_fstab(self.rootfs_dir.get("ROOTFS_DIR"))
|   File
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/lib/wic/plugins/imager/direct.py",
line 134, in _write_fstab
|     if self._update_fstab(fstab_lines, self.parts):
|   File
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/lib/wic/plugins/imager/direct.py",
line 156, in _update_fstab
|     opts, "0", "0"]) + "\n"
| TypeError: sequence item 2: expected str instance, NoneType found

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170224/f29d0ea4/attachment-0002.html>


More information about the Openembedded-core mailing list