summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/source/rootfs.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-07 21:52:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-07 21:57:11 +0100
commitfc054bc1134b506dcf16d85cee53c4a37a4c5231 (patch)
treebfa42e6064fe53319690fa00a7740d0321a9ee24 /scripts/lib/wic/plugins/source/rootfs.py
parentfcc68424f1dbd52fe3cef6decabc306fd06947c1 (diff)
downloadopenembedded-core-contrib-fc054bc1134b506dcf16d85cee53c4a37a4c5231.tar.gz
Revert "wic: Add --embed-rootfs argument"
This reverts commit efdcf94801f6abe8e4099e324d9a3deccd8d4384. After discussion on the mailing list it was felt these changes were not ready yet.
Diffstat (limited to 'scripts/lib/wic/plugins/source/rootfs.py')
-rw-r--r--scripts/lib/wic/plugins/source/rootfs.py22
1 files changed, 1 insertions, 21 deletions
diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py
index 089aaea477..40419a64b3 100644
--- a/scripts/lib/wic/plugins/source/rootfs.py
+++ b/scripts/lib/wic/plugins/source/rootfs.py
@@ -17,7 +17,6 @@ import shutil
import sys
from oe.path import copyhardlinktree, copytree
-from pathlib import Path
from wic import WicError
from wic.pluginbase import SourcePlugin
@@ -81,7 +80,7 @@ class RootfsPlugin(SourcePlugin):
new_rootfs = None
# Handle excluded paths.
- if part.exclude_path or part.include_path or part.embed_rootfs:
+ if part.exclude_path or part.include_path:
# We need a new rootfs directory we can delete files from. Copy to
# workdir.
new_rootfs = os.path.realpath(os.path.join(cr_workdir, "rootfs%d" % part.lineno))
@@ -101,25 +100,6 @@ class RootfsPlugin(SourcePlugin):
for path in part.include_path or []:
copyhardlinktree(path, new_rootfs)
- for embed in part.embed_rootfs or []:
- [embed_rootfs, path] = embed
- #we need to remove the initial / for os.path.join to work
- if os.path.isabs(path):
- path = path[1:]
- if embed_rootfs in krootfs_dir:
- embed_rootfs = krootfs_dir[embed_rootfs]
- embed_rootfs = cls.__get_rootfs_dir(embed_rootfs)
- tar_file = os.path.realpath(os.path.join(cr_workdir, "aux.tar"))
- tar_cmd = "%s tar cpf %s -C %s ." % (cls.__get_pseudo(native_sysroot,
- embed_rootfs), tar_file, embed_rootfs)
- exec_native_cmd(tar_cmd, native_sysroot)
- untar_cmd = "%s tar xf %s -C %s ." % (cls.__get_pseudo(native_sysroot, new_rootfs),
- tar_file, os.path.join(new_rootfs, path))
- Path(os.path.join(new_rootfs, path)).mkdir(parents=True, exist_ok=True)
- exec_native_cmd(untar_cmd, native_sysroot,
- cls.__get_pseudo(native_sysroot, new_rootfs))
- os.remove(tar_file)
-
for orig_path in part.exclude_path or []:
path = orig_path
if os.path.isabs(path):