diff options
author | François Andriot <albator78@libertysurf.fr> | 2021-11-09 21:56:50 +0100 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2021-11-09 22:03:37 +0100 |
commit | 06260b5bfdb05d78a47fdbf458b36be816cb4719 (patch) | |
tree | 2a4d560daf21469922c1c9b03e790828047e419f /redhat/docker/pclinuxos.sh | |
parent | 18e281ed622dfd5cbbc1c4a387b0e7217f4aa54d (diff) | |
download | tde-packaging-06260b5bfdb05d78a47fdbf458b36be816cb4719.tar.gz tde-packaging-06260b5bfdb05d78a47fdbf458b36be816cb4719.zip |
RPM: update pclinuxos scripts
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/docker/pclinuxos.sh')
-rwxr-xr-x | redhat/docker/pclinuxos.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/redhat/docker/pclinuxos.sh b/redhat/docker/pclinuxos.sh index aa906f26c..cd7689569 100755 --- a/redhat/docker/pclinuxos.sh +++ b/redhat/docker/pclinuxos.sh @@ -47,11 +47,12 @@ sudo chroot "${INSTALLROOT}" apt-get -y upgrade sudo umount "${INSTALLROOT}/dev/shm" sudo umount "${INSTALLROOT}/dev" -sudo tar -C "${INSTALLROOT}" -c . >"${IMAGE}.tar" +docker rmi -f "${IMAGE}" || : +sudo tar -C "${INSTALLROOT}" -c . | docker import - "${IMAGE}" +docker run -ti --rm "${IMAGE}" ls -l sudo rm -rf "${INSTALLROOT}" -docker rmi -f "${IMAGE}" || : -cat "${IMAGE}.tar" | docker import - "${IMAGE}" +docker image save "${IMAGE}" >"${IMAGE}.tar" rm -f "${IMAGE}.tar.gz" pigz -9 "${IMAGE}.tar" mv -vf "${IMAGE}.tar.gz" "${HOME}/tde/obs" |