Skip to content

Commit

Permalink
Don't set timezone; fixed cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
uli-heller committed Aug 11, 2022
1 parent 1a196c2 commit 033a315
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions create-32bit-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ test -d "debs/${OS}" && {
sudo chroot "./${OSDIR}/rootfs" apt-get update
sudo chroot "./${OSDIR}/rootfs" apt-get upgrade -y
sudo chroot "./${OSDIR}/rootfs" apt-get clean
sudo chroot "./${OSDIR}/rootfs" timedatectl set-timezone Europe/Berlin
#sudo chroot "./${OSDIR}/rootfs" timedatectl set-timezone Europe/Berlin
sudo ./umount.sh "./${OSDIR}/rootfs"

echo >"./${OSDIR}/metadata.yaml" "architecture: \"i686\""
Expand Down Expand Up @@ -158,10 +158,3 @@ EOF
cd "${OSDIR}"
sudo tar -cpf - *
)|gzip -c9 >"${OS}-${VERSION}-lxcimage.tar.gz"

test -z "${KEEP}" && {
rm -f "${OS}-metadata.tar.gz" "${OS}-lxc.tar.gz"
lxc delete "${LXCCONTAINER}"
lxc image delete "${OS}-${VERSION}-import"
lxc image delete "${OS}-${VERSION}-export"
}

0 comments on commit 033a315

Please sign in to comment.