~asac/live-build/live-helper.install-kernel-with-no-initramfs

« back to all changes in this revision

Viewing changes to helpers/lh_source_iso

  • Committer: Daniel Baumann
  • Date: 2007-09-23 08:04:47 UTC
  • Revision ID: git-v1:f4383da69d4642521cb07f8f970d9c9c759b44ee
Tags: 1.0_a2-1
Adding live-helper 1.0~a2-1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
if [ "${LIVE_SOURCE}" = "disabled" ]
19
19
then
20
 
        echo "W: source images disabled (FIXME)"
21
20
        exit 0
22
21
fi
23
22
 
26
25
        if [ "${IMAGE}" = "iso" ]
27
26
        then
28
27
                # Requiring stage file
29
 
                Require_stagefile "${LIVE_ROOT}"/.stage/source_download
 
28
                Require_stagefile .stage/source_download
30
29
 
31
30
                # Checking lock file
32
 
                Check_lockfile "${LIVE_ROOT}"/.lock
 
31
                Check_lockfile .lock
33
32
 
34
33
                # Creating lock file
35
 
                Create_lockfile "${LIVE_ROOT}"/.lock
 
34
                Create_lockfile .lock
36
35
 
37
36
                # Checking stage file
38
 
                Check_stagefile "${LIVE_ROOT}"/.stage/source_iso
 
37
                Check_stagefile .stage/source_iso
39
38
 
40
39
                # Remove old source
41
 
                if [ -f "${LIVE_ROOT}"/source.iso ]
 
40
                if [ -f source.iso ]
42
41
                then
43
 
                        rm -f "${LIVE_ROOT}"/source.iso
 
42
                        rm -f source.iso
44
43
                fi
45
44
 
46
45
                # Create image
47
 
                cd "${LIVE_ROOT}" &&
48
46
                ${LH_GENISOIMAGE} -A "Debian Live" -p "Debian Live; http://debian-live.alioth.debian.org/; debian-live-devel@lists.alioth.debian.org" -publisher "Debian Live; http://debian-live.alioth.debian.org/; debian-live-devel@lists.alioth.debian.org" -o source.iso -r -J -l -V "${LIVE_DISK_VOLUME}" source
49
47
 
50
48
                # Creating stage file
51
 
                Create_stagefile "${LIVE_ROOT}"/.stage/source_iso
 
49
                Create_stagefile .stage/source_iso
52
50
        fi
53
51
done