| 129 | == Creating a bootable CD/DVD/usb == |
| 130 | |
| 131 | During these steps we assume you have unpacked the sali-x86_64-1.5.7.tar.gz in /tmp. So we have all SALI files under /tmp/sali-1.5.7. |
| 132 | |
| 133 | The following commands must be present on your Linux machine before you can use the ```sali_create_bootdisk``` shell script: |
| 134 | - ```genisoimage``` - On most Linux distributions available in the package genisoimage |
| 135 | - ```isohybrid``` - On most Linux distributions available in the syslinux package |
| 136 | |
| 137 | === Generate the iso hybrid file === |
| 138 | {{{ |
| 139 | cd /tmp/sali-1.5.7 |
| 140 | ./bootdisk/sali_create_bootdisk |
| 141 | CREATING A SALI ISO IMAGE |
| 142 | |
| 143 | I: -input-charset not specified, using iso-8859-1 (detected in locale settings) |
| 144 | Using ISOLI000.SVN;1 for /tmp/sali-1.5.7/bootdisk/isolinux/.svn/text-base/isolinux.cfg.svn-base (isolinux.bin.svn-base) |
| 145 | Size of boot image is 4 sectors -> No emulation |
| 146 | 34.11% done, estimate finish Fri Feb 1 16:13:42 2013 |
| 147 | 68.09% done, estimate finish Fri Feb 1 16:13:42 2013 |
| 148 | Total translation table size: 2048 |
| 149 | Total rockridge attributes bytes: 0 |
| 150 | Total directory bytes: 22528 |
| 151 | Path table size(bytes): 170 |
| 152 | Max brk space used 1a000 |
| 153 | 14689 extents written (28 MB) |
| 154 | |
| 155 | |
| 156 | CONVERTING IMAGE TO HYBRID IMAGE done |
| 157 | |
| 158 | ISO IMAGE HAS BEEN STORED TO |
| 159 | /tmp/sali-1.5.7/sali-x86_64--hybrid.iso |
| 160 | }}} |
| 161 | |
| 162 | ==== Burning to cd/dvd ==== |
| 163 | Just use the iso with your favortie burning program |
| 164 | |
| 165 | ==== Copy to an USB drive ==== |
| 166 | Make sure your USB drive is unmounted, then use the dd command to copy the iso to the USB drive. |
| 167 | |
| 168 | {{{ |
| 169 | dd if=/tmp/sali-1.5.7/sali-x86_64--hybrid.iso of=/tmp/sdb bs=8192k |
| 170 | }}} |
| 171 | |
| 172 | Assuming your USB disk is device /dev/sdb on your Linux distribution |
| 173 | |
| 174 | === Add custom boot entries to the bootable cd/dvd/usb === |
| 175 | Adjust the file isolinux/isolinux.cfg to your needs to start installation via rsync or bittorrent. Some examples herebelow to generate a custom bootable SALI cd/dvd/usb. If you open the isolinux/isolinux.cfg you can add your custom entries between the comment lines 'BEGIN HERE' and 'END HERE' |
| 176 | |
| 177 | As an example we choose for the image amd64_squeeze_lisa |
| 178 | |
| 179 | Installation via rsync: |
| 180 | {{{ |
| 181 | label install_lisa_squeeze |
| 182 | menu label Install LISA squeeze via rsync |
| 183 | kernel /kernel/kernel |
| 184 | append /images/initrd.img PROTOCOL=rsync GRUB2=yes SCRIPTNAME=amd64_squeeze_lisa VERBOSE_LEVEL=2 rw |
| 185 | }}} |
| 186 | |
| 187 | Installation via bittorrent |
| 188 | {{{ |
| 189 | label install_lisa_squeeze_torrent |
| 190 | menu label Install LISA squeeze via bittorrent |
| 191 | kernel /kernel/kernel |
| 192 | append /images/initrd.img PROTOCOL=bittorrent GRUB2=yes SCRIPTNAME=amd64_squeeze_lisa VERBOSE_LEVEL=2 rw |
| 193 | }}} |
| 194 | |
| 195 | NOTE 1:: |
| 196 | If you dont have your dhcp configured with sali-imageserver option, you must add IMAGESERVER=<ip of your image server> on the append line. |
| 197 | NOTE 2:: |
| 198 | If the name of the image is different from the scriptname add variable IMAGENAME=<name of your image> to the append line |
| 199 | |
| 200 | Finally run the command sali_create_bootdisk from the bootdisk directory. |