From ba7a09dbe49ef6ac04455eb1a7df26a66e6f45d7 Mon Sep 17 00:00:00 2001
From: Marcos Vallim <mvallim@ciandt.com>
Date: Wed, 26 Jun 2019 16:27:43 -0300
Subject: [PATCH] Update documentation

---
 README.md | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 64c870b..839fc63 100644
--- a/README.md
+++ b/README.md
@@ -231,4 +231,32 @@ apt-get autoremove -y
    sudo umount $HOME/live-ubuntu-from-scratch/chroot/dev
 
    sudo umount $HOME/live-ubuntu-from-scratch/chroot/run
-   ```
\ No newline at end of file
+   ```
+
+## Create the CD image directory and populate it
+
+1. Access build directory
+   ```
+   cd $HOME/live-ubuntu-from-scratch
+   ```
+
+2. Create directories
+   ```
+   mkdir -p image/{casper,isolinux,install}
+   ```
+
+2. Copy kernel images
+   ```
+   cp chroot/boot/vmlinuz-**-**-generic image/casper/vmlinuz
+
+   cp chroot/boot/initrd.img-**-**-generic image/casper/initrd.gz
+   ```
+
+3. Copy isolinux and memtest binaries
+   ```
+   cp /usr/lib/ISOLINUX/isolinux.bin image/isolinux/
+
+   cp /usr/lib/syslinux/modules/bios/ldlinux.c32 image/isolinux/ # for syslinux 5.00 and newer
+
+   cp /boot/memtest86+.bin image/install/memtest
+   ```