2015-11-22 11:36:11 +01:00
|
|
|
#!/bin/sh
|
2018-04-08 14:30:21 +02:00
|
|
|
# _____ _ _
|
|
|
|
# | __|___ ___ ___ _| |___ _____| |_ ___ ___ ___
|
|
|
|
# | __| _| -_| -_| . | . | | . | . | | -_|
|
|
|
|
# |__| |_| |___|___|___|___|_|_|_|___|___|_|_|___|
|
2015-11-22 11:36:11 +01:00
|
|
|
#
|
2018-04-08 14:30:21 +02:00
|
|
|
# Freedom in the Cloud
|
2015-11-22 13:00:52 +01:00
|
|
|
#
|
|
|
|
# Apply patches to vmdebootstrap. Based on a script from freedom-maker
|
|
|
|
#
|
|
|
|
# License
|
|
|
|
# =======
|
|
|
|
#
|
2015-11-22 11:36:11 +01:00
|
|
|
# This program is free software: you can redistribute it and/or modify
|
2016-02-13 23:09:27 +01:00
|
|
|
# it under the terms of the GNU Affero General Public License as published by
|
2015-11-22 11:36:11 +01:00
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2016-02-13 23:09:27 +01:00
|
|
|
# GNU Affero General Public License for more details.
|
2015-11-22 11:36:11 +01:00
|
|
|
#
|
2016-02-13 23:09:27 +01:00
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
2015-11-22 11:36:11 +01:00
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2015-11-27 12:42:16 +01:00
|
|
|
PROJECT_NAME='freedombone'
|
|
|
|
|
2015-11-27 17:52:23 +01:00
|
|
|
export TEXTDOMAIN=${PROJECT_NAME}-image-vmdebootstrap
|
2015-11-27 12:42:16 +01:00
|
|
|
export TEXTDOMAINDIR="/usr/share/locale"
|
|
|
|
|
2016-09-06 12:29:34 +02:00
|
|
|
VMDEBOOTSTRAP_REPO="https://github.com/bashrc/vmdebootstrap"
|
2018-05-02 12:22:36 +02:00
|
|
|
VMDEBOOTSTRAP_BRANCH="bashrc/${PROJECT_NAME}"
|
2016-09-06 12:29:34 +02:00
|
|
|
|
2015-11-22 11:36:11 +01:00
|
|
|
mkdir -p vendor
|
|
|
|
if [ -d vendor/vmdebootstrap ] ; then
|
2018-03-02 20:17:02 +01:00
|
|
|
(cd vendor/vmdebootstrap || exit 246824624; git checkout .; git pull)
|
2015-11-22 11:36:11 +01:00
|
|
|
else
|
2016-09-06 12:29:34 +02:00
|
|
|
git clone $VMDEBOOTSTRAP_REPO vendor/vmdebootstrap
|
2015-11-22 11:36:11 +01:00
|
|
|
fi
|
2016-09-05 22:40:07 +02:00
|
|
|
|
2016-09-05 23:19:50 +02:00
|
|
|
if [ ! -d /usr/share/distro-info ]; then
|
|
|
|
sudo mkdir -p /usr/share/distro-info
|
2016-09-05 23:31:22 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -f /usr/share/distro-info/debian.csv ]; then
|
|
|
|
sudo mkdir -p /usr/share/distro-info
|
2016-09-05 23:19:50 +02:00
|
|
|
|
|
|
|
cat <<EOF > /tmp/debian.csv
|
|
|
|
version,codename,series,created,release,eol
|
|
|
|
1.1,Buzz,buzz,1993-08-16,1996-06-17,1997-06-05
|
|
|
|
1.2,Rex,rex,1996-06-17,1996-12-12,1998-06-05
|
|
|
|
1.3,Bo,bo,1996-12-12,1997-06-05,1999-03-09
|
|
|
|
2.0,Hamm,hamm,1997-06-05,1998-07-24,2000-03-09
|
|
|
|
2.1,Slink,slink,1998-07-24,1999-03-09,2000-10-30
|
|
|
|
2.2,Potato,potato,1999-03-09,2000-08-15,2003-07-30
|
|
|
|
3.0,Woody,woody,2000-08-15,2002-07-19,2006-06-30
|
|
|
|
3.1,Sarge,sarge,2002-07-19,2005-06-06,2008-03-30
|
|
|
|
4.0,Etch,etch,2005-06-06,2007-04-08,2010-02-15
|
|
|
|
5.0,Lenny,lenny,2007-04-08,2009-02-14,2012-02-06
|
|
|
|
6.0,Squeeze,squeeze,2009-02-14,2011-02-06,2014-05-31
|
|
|
|
7,Wheezy,wheezy,2011-02-06,2013-05-04
|
|
|
|
8,Jessie,jessie,2013-05-04,2015-04-25
|
|
|
|
9,Stretch,stretch,2015-04-25
|
|
|
|
10,Buster,buster,2018-07-01
|
|
|
|
,Sid,sid,1993-08-16
|
|
|
|
,Experimental,experimental,1993-08-16
|
|
|
|
EOF
|
|
|
|
sudo mv /tmp/debian.csv /usr/share/distro-info/
|
2016-09-05 23:31:22 +02:00
|
|
|
fi
|
2016-09-05 23:27:56 +02:00
|
|
|
|
2016-09-05 23:31:22 +02:00
|
|
|
if [ ! -f /usr/share/distro-info/ubuntu.csv ]; then
|
2016-09-05 23:27:56 +02:00
|
|
|
cat <<EOF > /tmp/ubuntu.csv
|
|
|
|
version,codename,series,created,release,eol,eol-server
|
|
|
|
4.10,Warty Warthog,warty,2004-03-05,2004-10-20,2006-04-30
|
|
|
|
5.04,Hoary Hedgehog,hoary,2004-10-20,2005-04-08,2006-10-31
|
|
|
|
5.10,Breezy Badger,breezy,2005-04-08,2005-10-12,2007-04-13
|
|
|
|
6.06 LTS,Dapper Drake,dapper,2005-10-12,2006-06-01,2009-07-14,2011-06-01
|
|
|
|
6.10,Edgy Eft,edgy,2006-06-01,2006-10-26,2008-04-25
|
|
|
|
7.04,Feisty Fawn,feisty,2006-10-26,2007-04-19,2008-10-19
|
|
|
|
7.10,Gutsy Gibbon,gutsy,2007-04-19,2007-10-18,2009-04-18
|
|
|
|
8.04 LTS,Hardy Heron,hardy,2007-10-18,2008-04-24,2011-05-12,2013-05-09
|
|
|
|
8.10,Intrepid Ibex,intrepid,2008-04-24,2008-10-30,2010-04-30
|
|
|
|
9.04,Jaunty Jackalope,jaunty,2008-10-30,2009-04-23,2010-10-23
|
|
|
|
9.10,Karmic Koala,karmic,2009-04-23,2009-10-29,2011-04-29
|
|
|
|
10.04 LTS,Lucid Lynx,lucid,2009-10-29,2010-04-29,2013-05-09,2015-04-29
|
|
|
|
10.10,Maverick Meerkat,maverick,2010-04-29,2010-10-10,2012-04-10
|
|
|
|
11.04,Natty Narwhal,natty,2010-10-10,2011-04-28,2012-10-28
|
|
|
|
11.10,Oneiric Ocelot,oneiric,2011-04-28,2011-10-13,2013-05-09
|
|
|
|
12.04 LTS,Precise Pangolin,precise,2011-10-13,2012-04-26,2017-04-26
|
|
|
|
12.10,Quantal Quetzal,quantal,2012-04-26,2012-10-18,2014-05-16
|
|
|
|
13.04,Raring Ringtail,raring,2012-10-18,2013-04-25,2014-01-27
|
|
|
|
13.10,Saucy Salamander,saucy,2013-04-25,2013-10-17,2014-07-17
|
|
|
|
14.04 LTS,Trusty Tahr,trusty,2013-10-17,2014-04-17,2019-04-17
|
|
|
|
14.10,Utopic Unicorn,utopic,2014-04-17,2014-10-23,2015-07-23
|
|
|
|
15.04,Vivid Vervet,vivid,2014-10-23,2015-04-23,2016-01-23
|
|
|
|
15.10,Wily Werewolf,wily,2015-04-23,2015-10-22,2016-07-22
|
|
|
|
16.04 LTS,Xenial Xerus,xenial,2015-10-22,2016-04-21,2021-04-21
|
|
|
|
16.10,Yakkety Yak,yakkety,2016-04-21,2016-10-20,2017-07-20
|
|
|
|
EOF
|
|
|
|
sudo mv /tmp/ubuntu.csv /usr/share/distro-info/
|
2016-09-05 23:19:50 +02:00
|
|
|
fi
|
|
|
|
|
2018-03-02 20:17:02 +01:00
|
|
|
cd vendor/vmdebootstrap || exit 2648726446
|
2016-09-06 12:56:59 +02:00
|
|
|
git checkout $VMDEBOOTSTRAP_BRANCH
|