diff options
| author | Patti Vacek <pattivacek@gmail.com> | 2021-07-01 07:26:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-01 07:26:12 +0200 |
| commit | 68af8d437163c0658b79137fc33f0df1b269d3e5 (patch) | |
| tree | 026307f63b7c2407deb2044e4887ac190ffbf9c1 | |
| parent | ca03912d6d0047705c9ac30bbdbc1777457f4f7c (diff) | |
| parent | bc8f39fd0dc420feb467ab52acdfde068a36f54f (diff) | |
| download | meta-updater-68af8d437163c0658b79137fc33f0df1b269d3e5.tar.gz | |
Merge pull request #810 from liuming50/drop-prepare_ostree_rootfs-prefunc
image_types_ostree.bbclass: drop prepare_ostree_rootfs prefunc
| -rw-r--r-- | classes/image_types_ostree.bbclass | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass index 31a4491..68fb563 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass | |||
| @@ -19,24 +19,13 @@ CONVERSIONTYPES_append = " tar" | |||
| 19 | 19 | ||
| 20 | TAR_IMAGE_ROOTFS_task-image-ostree = "${OSTREE_ROOTFS}" | 20 | TAR_IMAGE_ROOTFS_task-image-ostree = "${OSTREE_ROOTFS}" |
| 21 | 21 | ||
| 22 | python prepare_ostree_rootfs() { | ||
| 23 | import oe.path | ||
| 24 | import shutil | ||
| 25 | |||
| 26 | ostree_rootfs = d.getVar("OSTREE_ROOTFS") | ||
| 27 | if os.path.lexists(ostree_rootfs): | ||
| 28 | bb.utils.remove(ostree_rootfs, True) | ||
| 29 | |||
| 30 | # Copy required as we change permissions on some files. | ||
| 31 | image_rootfs = d.getVar("IMAGE_ROOTFS") | ||
| 32 | oe.path.copyhardlinktree(image_rootfs, ostree_rootfs) | ||
| 33 | } | ||
| 34 | prepare_ostree_rootfs[fakeroot] = "1" | ||
| 35 | |||
| 36 | do_image_ostree[dirs] = "${OSTREE_ROOTFS}" | 22 | do_image_ostree[dirs] = "${OSTREE_ROOTFS}" |
| 37 | do_image_ostree[prefuncs] += "prepare_ostree_rootfs" | 23 | do_image_ostree[cleandirs] = "${OSTREE_ROOTFS}" |
| 38 | do_image_ostree[depends] = "coreutils-native:do_populate_sysroot virtual/kernel:do_deploy ${INITRAMFS_IMAGE}:do_image_complete" | 24 | do_image_ostree[depends] = "coreutils-native:do_populate_sysroot virtual/kernel:do_deploy ${INITRAMFS_IMAGE}:do_image_complete" |
| 39 | IMAGE_CMD_ostree () { | 25 | IMAGE_CMD_ostree () { |
| 26 | # Copy required as we change permissions on some files. | ||
| 27 | tar --xattrs --xattrs-include='*' -cf - -S -C ${IMAGE_ROOTFS} -p . | tar --xattrs --xattrs-include='*' -xf - -C ${OSTREE_ROOTFS} | ||
| 28 | |||
| 40 | for d in var/*; do | 29 | for d in var/*; do |
| 41 | if [ "${d}" != "var/local" ]; then | 30 | if [ "${d}" != "var/local" ]; then |
| 42 | rm -rf ${d} | 31 | rm -rf ${d} |
