Browse Source

Add centos

pull/2/head
j3s 1 year ago
parent
commit
90fe57227e
  1. 0
      centos/7/.gitkeep
  2. 3
      centos/7/build
  3. 0
      centos/8/.gitkeep
  4. 3
      centos/8/build
  5. 9
      centos/build

0
centos/7/.gitkeep

3
centos/7/build

@ -1,3 +0,0 @@
#!/bin/sh
wget https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2

0
centos/8/.gitkeep

3
centos/8/build

@ -1,3 +0,0 @@
#!/bin/sh
wget https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2

9
centos/build

@ -0,0 +1,9 @@
#!/bin/sh
case "$1" in
7) url='https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2' ;;
8) url='https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2' ;;
*) echo "not found" && exit 1 ;;
esac
wget "$url" -O "$1/root.img.qcow2"
Loading…
Cancel
Save