[FE training-materials-updates] Remove lab archiving lab
Michael Opdenacker
michael.opdenacker at free-electrons.com
Mon Sep 1 22:38:45 CEST 2014
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=d023797c1a964b9d023afe8b431c08234436e718
>---------------------------------------------------------------
commit d023797c1a964b9d023afe8b431c08234436e718
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date: Mon Sep 1 22:31:46 2014 +0200
Remove lab archiving lab
- Broken and no longer supported
Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>
>---------------------------------------------------------------
d023797c1a964b9d023afe8b431c08234436e718
Makefile | 2 --
lab-data/archive-labs | 58 --------------------------------------
labs/backup/backup.tex | 40 --------------------------
slides/last-slides/last-slides.tex | 9 ------
4 files changed, 109 deletions(-)
diff --git a/Makefile b/Makefile
index 7c3f73e..bbf210b 100644
--- a/Makefile
+++ b/Makefile
@@ -256,7 +256,6 @@ SYSDEV_LABS = setup \
sysdev-application-development \
sysdev-application-debugging \
sysdev-real-time \
-# backup # Currently broken for sysdev course
KERNEL_LABS = setup \
kernel-sources-download \
@@ -273,7 +272,6 @@ KERNEL_LABS = setup \
kernel-locking \
kernel-debugging \
kernel-git \
-# backup # Currently broken for kernel course
ANDROID_LABS = setup \
android-source-code \
diff --git a/lab-data/archive-labs b/lab-data/archive-labs
deleted file mode 100755
index 0cebe96..0000000
--- a/lab-data/archive-labs
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-#
-# Creates an archive for the labs
-# Run this from the parent directory
-#
-output=felabs-$USER.tar.xz
-readme=felabs/README.txt
-toolchain=/usr/local/xtools
-
-echo "Archive lab archive..."
-echo "Making all files belong to user (need root permissions)"
-
-for dir in felabs $toolchain
-do
- if [ -d $dir ]
- then
- sudo chown -R $USER:$USER $dir
- fi
-done
-
-rm -rf $readme
-cat << EOF >> $readme
-Free Electrons lab directory archive
-------------------------------------
-
-This is your training lab directory
-
-To save space, we removed downloaded sources
-(like the Linux kernel sources), but you could
-download them again. Of course, we kept
-your own source and generated files (kernel
-configuration, kernel images, etc.), so that
-you can easily reuse your work.
-
-The command_history file contains a history
-of the commands you typed during the labs.
-
-The cross-compiling toolchain has been archived in toolchain.tar
-To reuse it, extract it in /usr/local/xtools
-EOF
-
-cp $HOME/.bash_history felabs/command_history
-cd felabs
-echo "Cleaning lab directory"
-./clean-labs
-
-
-if [ -d $toolchain ]
-then
- echo "Creating the toolchain archive"
- tar cf toolchain.tar $toolchain
-fi
-
-echo "Generating lab directory archive"
-cd ..
-./cleanlabs
-tar -Jcvf $output felabs
-md5sum $output > $output.md5
diff --git a/labs/backup/backup.tex b/labs/backup/backup.tex
deleted file mode 100644
index 14041bd..0000000
--- a/labs/backup/backup.tex
+++ /dev/null
@@ -1,40 +0,0 @@
-\subchapter{Backing up your lab files}{Objective: clean up and make an
-archive of your lab directory}
-
-\section{End of the training session}
-
-Congratulations. You reached the end of the training session. You now
-have plenty of working examples you created by yourself, and you can
-build upon them to create more elaborate things.
-
-In this last lab, we will create an archive of all the things you
-created. We won't keep everything though, as there are lots of things
-you can easily retrieve again.
-
-\section{Create a lab archive}
-
-Go to the directory containing your felabs directory:
-
-\begin{verbatim}
-cd $HOME
-\end{verbatim}
-
-Now, run a command that will do some clean up and then create an archive with the most important files:
-
-\begin{itemize}
-\item Kernel configuration files
-\item Other source configuration files (BusyBox, Crosstool-ng...)
-\item Kernel images
-\item Toolchain
-\item Other custom files
-\end{itemize}
-
-Here is the command:
-
-\begin{verbatim}
-./felabs/archive-labs
-\end{verbatim}
-
-At end end, you should have a \code{felabs-<user>.tar.xz} archive
-that you can copy to a USB flash drive, for example. This file should
-only be a few hundreds of MB big.
diff --git a/slides/last-slides/last-slides.tex b/slides/last-slides/last-slides.tex
index 8751408..2f02c07 100644
--- a/slides/last-slides/last-slides.tex
+++ b/slides/last-slides/last-slides.tex
@@ -1,14 +1,5 @@
\section{Last slides}
-\setuplabframe
-{Archive your lab directory}
-{
- \begin{itemize}
- \item Clean up files that are easy to retrieve, remove downloads.
- \item Generate an archive of your lab directory.
- \end{itemize}
-}
-
\ifdefempty{\sessionurl}{}{
\begin{frame}
\frametitle{Evaluation form}
More information about the training-materials-updates
mailing list