~tom-gall/live-build/integrate-linaro-media-create

« back to all changes in this revision

Viewing changes to scripts/02-net.sh

  • Committer: Daniel Baumann
  • Date: 2007-09-23 08:04:20 UTC
  • Revision ID: git-v1:eeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5
Tags: 0.99-1
Adding live-package 0.99-1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# scripts/02-net.sh
 
2
 
 
3
Net ()
 
4
{
 
5
        # Installing smbfs
 
6
        chroots "apt-get install --yes smbfs"
 
7
 
 
8
        if [ "${LIVE_ARCHITECTURE}" = "amd64" ] || [ "${LIVE_ARCHITECTURE}" = "i386" ]
 
9
        then
 
10
                # Configuring initramfs for NFS
 
11
cat >> "${LIVE_ROOT}"/chroot/etc/mkinitramfs/initramfs.conf << EOF
 
12
MODULES=netboot
 
13
BOOT=nfs
 
14
EOF
 
15
        fi
 
16
 
 
17
        # Installing syslinux
 
18
        Syslinux net
 
19
 
 
20
        # Installing linux-image
 
21
        Linuximage net
 
22
 
 
23
        # Installing memtest
 
24
        Memtest net
 
25
 
 
26
        if [ -z "${LIVE_VERBOSE}" ]
 
27
        then
 
28
                # Creating tarball
 
29
                cd "${LIVE_ROOT}" && cd .. && \
 
30
                        tar cfz netboot.tar.gz "${LIVE_ROOT}" && \
 
31
                        mv netboot.tar.gz "${LIVE_ROOT}"
 
32
        else
 
33
                # Creating tarball (debug)
 
34
                cd "${LIVE_ROOT}" && cd .. && \
 
35
                        tar cfvz netboot.tar.gz "${LIVE_ROOT}" && \
 
36
                        mv netboot.tar.gz "${LIVE_ROOT}"
 
37
        fi
 
38
}