[Debian-live-changes] r1603 - dists/trunk/live-helper/helpers

daniel at alioth.debian.org daniel at alioth.debian.org
Tue May 22 18:00:50 UTC 2007


Author: daniel
Date: 2007-05-22 18:00:50 +0000 (Tue, 22 May 2007)
New Revision: 1603

Modified:
   dists/trunk/live-helper/helpers/lh_binary_encryption
Log:


Modified: dists/trunk/live-helper/helpers/lh_binary_encryption
===================================================================
--- dists/trunk/live-helper/helpers/lh_binary_encryption	2007-05-22 16:47:54 UTC (rev 1602)
+++ dists/trunk/live-helper/helpers/lh_binary_encryption	2007-05-22 18:00:50 UTC (rev 1603)
@@ -91,7 +91,7 @@
 cat >> chroot/encrypt << EOF
 while true
 do
-	cat filesystem.${ROOTFS} | aespipe -e ${LIVE_ENCRYPTION} -T > filesystem.${ROOTFS} && break
+	cat filesystem.${ROOTFS} | aespipe -e ${LIVE_ENCRYPTION} -T > filesystem.${ROOTFS}.tmp && break
 
 	echo -n "Something went wrong... Retry? [YES/no] "
 
@@ -108,8 +108,8 @@
 Chroot "sh encrypt"
 
 # Move image
-mv chroot/filesystem.${LIVE_FILESYSTEM} binary/${INITFS}
-rm -f chroot/encrypt
+mv chroot/filesystem.${LIVE_FILESYSTEM}.tmp binary/${INITFS}/filesystem.${LIVE_FILESYSTEM}
+rm -f chroot/encrypt chroot/filesystem.${LIVE_FILESYSTEM}
 
 # Removing depends
 Remove_package




More information about the Debian-live-changes mailing list