Browse Source

add centos6 and centos7

master
Markus Bergholz 4 years ago
parent
commit
094e57858c
1 changed files with 28 additions and 24 deletions
  1. +28
    -24
      getchroot

+ 28
- 24
getchroot View File

@@ -39,16 +39,18 @@ function print_help {
./getchroot [option] <folder>

[option]:
arch: Arch Linux
squeeze: Debian 6 Squeeze
wheezy: Debian 7 Wheezy
sid: Debian Unstable
precise: Ubuntu LTS 12.04, Precise Pangolin
raring: Ubuntu 13.04, Raring Ringtail
trusty: Ubuntu LTS 14.04, Trusty Tahr
fedora19: Fedora 19, Schrödinger's cat
fedora20: Fedora 20, Heisenbug
archbsd: ArchBSD
arch:...............Arch Linux
squeeze:............Debian 6 Squeeze
wheezy:.............Debian 7 Wheezy
sid:................Debian Unstable
precise:............Ubuntu LTS 12.04, Precise Pangolin
raring:.............Ubuntu 13.04, Raring Ringtail
trusty:.............Ubuntu LTS 14.04, Trusty Tahr
fedora19:...........Fedora 19, Schrödinger's cat
fedora20:...........Fedora 20, Heisenbug
archbsd:............ArchBSD
centos6:............CentOS 6.7
centos7:............CentOS 7.1

This will download a prepared tar.xz file to $_CHROOT and extract to your given folder

@@ -73,20 +75,22 @@ function print_help {

if (("$#" == 2)); then

case "$1" in
"arch") build_chroot $1 $2 ;;
"wheezy") build_chroot $1 $2 ;;
"sid") build_chroot $1 $2 ;;
"precise") build_chroot $1 $2 ;;
"raring") build_chroot $1 $2 ;;
"trusty") build_chroot $1 $2 ;;
"fedora19") build_chroot $1 $2 ;;
"fedora20") build_chroot $1 $2 ;;
"squeeze") build_chroot $1 $2 ;;
"archbsd") build_chroot $1 $2 ;;
"update") update_chroot $2 ;;
*) echo -e "unknown option\n" ;;
esac
case "$1" in
"arch") build_chroot $1 $2 ;;
"wheezy") build_chroot $1 $2 ;;
"sid") build_chroot $1 $2 ;;
"precise") build_chroot $1 $2 ;;
"raring") build_chroot $1 $2 ;;
"trusty") build_chroot $1 $2 ;;
"fedora19") build_chroot $1 $2 ;;
"fedora20") build_chroot $1 $2 ;;
"squeeze") build_chroot $1 $2 ;;
"archbsd") build_chroot $1 $2 ;;
"centos6") build_chroot $1 $2 ;;
"centos7") build_chroot $1 $2 ;;
"update") update_chroot $2 ;;
*) echo -e "unknown option\n" ;;
esac

else
printf "Wrong usage!\n\n"


Loading…
Cancel
Save