File: diskless-createbasetgz

package info (click to toggle)
diskless 0.3.17
  • links: PTS
  • area: main
  • in suites: woody
  • size: 728 kB
  • ctags: 119
  • sloc: perl: 2,628; xml: 740; sh: 403; makefile: 104
file content (29 lines) | stat: -rwxr-xr-x 484 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/bash
cat << EOF
createbasetgz, create base.tgz with debootstrap
Copyright 2001 Junichi Uekawa 

 Can only be ran from root.

EOF

TEMPORAL=$1
DEBIANRELEASE=$2
MIRRORSITE=$3
BASETGZ=$4
if [ -z $BASETGZ ] ; then
  cat << EOF
usage: 
createbasetgz [temporal work directory name] [debian release tag] [mirror site address] [base.tgz absolute path location]

EOF
  exit 1
fi

mkdir -p $1

debootstrap $DEBIANRELEASE $TEMPORAL $MIRRORSITE
( cd $TEMPORAL ; 
  tar cvfz $BASETGZ *
)