Use jessie script from repo
This commit is contained in:
parent
b4ce259ebe
commit
f2db64be89
|
@ -35,6 +35,13 @@ PROJECT_NAME='freedombone'
|
|||
export TEXTDOMAIN=${PROJECT_NAME}-image
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
PROJECT_INSTALL_DIR=/usr/local/bin
|
||||
if [ -f /usr/bin/${PROJECT_NAME} ]; then
|
||||
PROJECT_INSTALL_DIR=/usr/bin
|
||||
fi
|
||||
|
||||
source $PROJECT_INSTALL_DIR/${PROJECT_NAME}-vars
|
||||
|
||||
#get the project repo
|
||||
PROJECT_REPO="https://github.com/bashrc/${PROJECT_NAME}"
|
||||
UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*
|
||||
|
@ -176,20 +183,11 @@ function image_setup {
|
|||
fi
|
||||
sudo pacman -S --noconfirm device-mapper libaio liburcu fakeroot
|
||||
cd ~/develop/multipath-tools
|
||||
makepkg
|
||||
makepkg -i
|
||||
cd ~/develop
|
||||
if [ ! -f ~/develop/debootstrap_${DEBOOTSTRAP_VERSION}.tar.gz ]; then
|
||||
wget http://http.debian.net/debian/pool/main/d/debootstrap/debootstrap_${DEBOOTSTRAP_VERSION}.tar.gz
|
||||
makepkg --force --noconfirm
|
||||
makepkg -i --force --noconfirm
|
||||
if [ ! -f /usr/share/debootstrap/scripts/${DEBIAN_VERSION} ]; then
|
||||
sudo wget https://raw.githubusercontent.com/bashrc/freedombone/stockholm/image_build/debootstrap/scripts/${DEBIAN_VERSION} /usr/share/debootstrap/scripts/${DEBIAN_VERSION}
|
||||
fi
|
||||
if [ ! -f ~/develop/debootstrap_${DEBOOTSTRAP_VERSION}.tar.gz ]; then
|
||||
echo $'Failed to download debootstrap code'
|
||||
return
|
||||
fi
|
||||
if [ ! -d ~/develop/debootstrap/scripts ]; then
|
||||
tar -xzvf debootstrap_${DEBOOTSTRAP_VERSION}.tar.gz
|
||||
fi
|
||||
sudo mv ~/develop/debootstrap/scripts/* /usr/share/debootstrap/scripts
|
||||
;;
|
||||
*)
|
||||
echo $'Unkown operating system'
|
||||
|
|
Loading…
Reference in New Issue