[molecules] add Amazon EC2 ext3-based image generation specs

This commit is contained in:
Fabio Erculiani
2011-07-22 13:40:47 +02:00
parent 1756f52a5c
commit 3621eda846
5 changed files with 260 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
if [ -d "${CHROOT_DIR}/proc" ]; then
echo "Unmounting ${CHROOT_DIR}/proc"
umount "${CHROOT_DIR}/proc"
fi
CHROOT_PKGS_DIR="${CHROOT_DIR}/var/lib/entropy/client/packages"
if [ -d "${CHROOT_PKGS_DIR}" ]; then
echo "Umounting bind to ${CHROOT_PKGS_DIR}"
umount "${CHROOT_PKGS_DIR}" || exit 1
fi
echo "trying to umount ${CHROOT_DIR}"
umount "${CHROOT_DIR}"
#if [ -n "${LOOP_DEVICE}" ]; then
# echo "trying to umount loop device ${LOOP_DEVICE}"
# /sbin/losetup -d "${LOOP_DEVICE}"
#fi