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

Fabio Berton fabio.berton at ossystems.com.br
Fri Mar 3 12:12:04 UTC 2017


Hi Ross,

Sorry for delay. This error for qemux86 is because common.wks.inc and 
directdisk-gpt.wks files in scripts/lib/wic/canned-wks directory doesn't 
have option --fstype= for part /boot.

For qemuarm machines I get the error:

| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_wic
| Error: Please build syslinux first

On 02/24/2017 08:02 PM, Burton, Ross wrote:
>
> On 23 February 2017 at 18:13, Fabio Berton 
> <fabio.berton at ossystems.com.br <mailto: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/20170303/b42c4b59/attachment-0002.html>


More information about the Openembedded-core mailing list