diff options
| author | Gabriel Ionescu <gabriel.ionescu@enea.com> | 2018-12-17 16:52:33 +0100 |
|---|---|---|
| committer | Gabriel Ionescu <gabriel.ionescu@enea.com> | 2018-12-17 16:52:33 +0100 |
| commit | 61934c9d1dbad94acfc9dcefabff7f3b3df94bd9 (patch) | |
| tree | 434aaca7fc402551e4e5940d67e9987cb9b5d869 | |
| parent | d1f8d6c43753f3f7b959e99d988c8f9ca991187f (diff) | |
| download | meta-el-nfv-access-61934c9d1dbad94acfc9dcefabff7f3b3df94bd9.tar.gz | |
DPKG: Move /var/lib/dpkg to /usr/dpkg to make DPKG work with OSTree
Change-Id: I7b9fad743da343bc73c0ad11374faa944e5b3627
Signed-off-by: Gabriel Ionescu <gabriel.ionescu@enea.com>
| -rw-r--r-- | images/enea-nfv-access-host-common.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/images/enea-nfv-access-host-common.inc b/images/enea-nfv-access-host-common.inc index d3af42b..7de5dcd 100644 --- a/images/enea-nfv-access-host-common.inc +++ b/images/enea-nfv-access-host-common.inc | |||
| @@ -48,3 +48,11 @@ python __anonymous () { | |||
| 48 | d.delVarFlag("do_image_otaimg", "depends") | 48 | d.delVarFlag("do_image_otaimg", "depends") |
| 49 | d.setVarFlag("do_image_otaimg", "depends", "e2fsprogs-native:do_populate_sysroot") | 49 | d.setVarFlag("do_image_otaimg", "depends", "e2fsprogs-native:do_populate_sysroot") |
| 50 | } | 50 | } |
| 51 | |||
| 52 | # Before building the OSTree image, move DPKG data to /usr/dpkg, because | ||
| 53 | # OSTree does not preserve the contents of /var | ||
| 54 | IMAGE_CMD_ostree_prepend () { | ||
| 55 | install -d 0644 ${IMAGE_ROOTFS}/usr/dpkg/ | ||
| 56 | |||
| 57 | mv ${IMAGE_ROOTFS}/var/lib/dpkg/* ${IMAGE_ROOTFS}/usr/dpkg/ | ||
| 58 | } | ||
