diff options
| -rw-r--r-- | images/enea-nfv-access-host-common.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/images/enea-nfv-access-host-common.inc b/images/enea-nfv-access-host-common.inc index 2d19f3c..218cf2b 100644 --- a/images/enea-nfv-access-host-common.inc +++ b/images/enea-nfv-access-host-common.inc | |||
| @@ -51,7 +51,9 @@ python __anonymous () { | |||
| 51 | # Before building the OSTree image, move DPKG data to /usr/dpkg, because | 51 | # Before building the OSTree image, move DPKG data to /usr/dpkg, because |
| 52 | # OSTree does not preserve the contents of /var | 52 | # OSTree does not preserve the contents of /var |
| 53 | IMAGE_CMD_ostree_prepend () { | 53 | IMAGE_CMD_ostree_prepend () { |
| 54 | install -d ${IMAGE_ROOTFS}/usr/dpkg/ | ||
| 55 | 54 | ||
| 56 | mv ${IMAGE_ROOTFS}/var/lib/dpkg/* ${IMAGE_ROOTFS}/usr/dpkg/ | 55 | install -d ${IMAGE_ROOTFS}/usr/dpkg/ |
| 56 | if [ "$(ls -A ${IMAGE_ROOTFS}/var/lib/dpkg)" ]; then | ||
| 57 | mv ${IMAGE_ROOTFS}/var/lib/dpkg/* ${IMAGE_ROOTFS}/usr/dpkg/ | ||
| 58 | fi | ||
| 57 | } | 59 | } |
