 +		cp $PATH_TO_SDBOOT/uEnv.txt $PATH_TO_SDROOTFS/image
 +		echo "uEnv.txt copied"
 +	fi
-+	
-+	cp $START_DIR/initramfs.tar.xz $PATH_TO_SDROOTFS/image/initramfs.tar.xz
++
++	mv $START_DIR/initramfs.tar.xz $PATH_TO_SDROOTFS/image/initramfs.tar.xz
 +	echo "initramfs.tar.xz copied"
 +
 +echo ""

 echo ""
 echo ""
 echo "Syncing..."
@@ -1096,10 +1254,66 @@ then
 
 fi
 

 
 sudo mount -t vfat ${DRIVE}${P}1 boot/
 sudo mount -t ext3 ${DRIVE}${P}2 rootfs/
+if [ "$PARTS" -eq "5" ]
+then
+sudo mount -t ext3 ${DRIVE}${P}3 initramfs/
+fi
