~ubuntu-installer/kickseed/master

« back to all changes in this revision

Viewing changes to initrd-kickseed

  • Committer: Colin Watson
  • Date: 2007-06-18 20:01:38 UTC
  • Revision ID: git-v1:4c3a5e9177bab1923538a7df3b275a740c16ad6e
[project @ colin.watson@canonical.com-20061004193014-a7fd926a5b37f152]
* Make 'clearpart --all' write out a partman auto.d script to clear the
  first disk, since /dev/discs/disc0/disc isn't available any more and
  there's no single static alternative (closes: Malone #61576).

Original author: Colin Watson <colin.watson@canonical.com>
Date: 2006-10-04 20:30:14.719000+01:00

r47501

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        log-output -t kickseed --pass-stdout "$INTERPRETER" "$SCRIPT"
26
26
}
27
27
 
 
28
ks_write_script () {
 
29
        if [ "${1%/*}" != "$1" ]; then
 
30
                mkdir -p "${1%/*}"
 
31
        fi
 
32
        cat > "$1"
 
33
        chmod +x "$1"
 
34
}
 
35
 
28
36
preseed_fetch () {
29
37
        ln -sf "$1" "$2"
30
38
}