[OE-core] [PATCH 1/2] wic: original fstab restored too early
Tom Zanussi
tom.zanussi at intel.com
Wed Jul 23 19:21:32 UTC 2014
Sorry, I'm not seeing how this fixes the problem (best would be to
explain that in the patch description too), or for that matter, how to
reproduce the problem. Could you elaborate?
Tom
On Mon, 2014-07-21 at 23:34 +0200, Maciej Borzecki wrote:
> Contents of /etc/fstab were restored too early, thus overwriting the
> autogenerated ones.
>
> Signed-off-by: Maciej Borzecki <maciej.borzecki at open-rnd.pl>
> Signed-off-by: Maciek Borzecki <maciek.borzecki at gmail.com>
> ---
> scripts/lib/mic/imager/direct.py | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/lib/mic/imager/direct.py b/scripts/lib/mic/imager/direct.py
> index 2cf4c8d..beae372 100644
> --- a/scripts/lib/mic/imager/direct.py
> +++ b/scripts/lib/mic/imager/direct.py
> @@ -266,7 +266,6 @@ class DirectImageCreator(BaseImageCreator):
> self.bootimg_dir, self.kernel_dir, self.native_sysroot)
>
> fstab = self.__write_fstab(p.get_rootfs())
> - self._restore_fstab(fstab)
>
> self.__instimage.add_partition(int(p.size),
> p.disk,
> @@ -278,6 +277,9 @@ class DirectImageCreator(BaseImageCreator):
> boot = p.active,
> align = p.align,
> part_type = p.part_type)
> +
> + self._restore_fstab(fstab)
> +
> self.__instimage.layout_partitions(self._ptable_format)
>
> self.__imgdir = self.workdir
More information about the Openembedded-core
mailing list