Commit before push.
This commit is contained in:
parent
1655bcbee7
commit
1bc260c5a5
|
|
@ -2,33 +2,35 @@ set +x
|
||||||
# get and install refracta stuff
|
# get and install refracta stuff
|
||||||
# For jessie yad needs to be built from testing/ascii (and gtk3 dep changed in control)
|
# For jessie yad needs to be built from testing/ascii (and gtk3 dep changed in control)
|
||||||
#apt-get -y install autotools-dev libgtk2.0-dev pkg-config intltool
|
#apt-get -y install autotools-dev libgtk2.0-dev pkg-config intltool
|
||||||
apt-get install -y sbuild fakeroot schroot
|
#apt-get install -y sbuild fakeroot schroot
|
||||||
|
|
||||||
cd /usr/src || exit
|
#cd /usr/src || exit
|
||||||
RELEASE=$(awk -F '/' \{'print $1'\} < /etc/devuan_version | awk '$1=$1')
|
#RELEASE=$(awk -F '/' \{'print $1'\} < /etc/devuan_version | awk '$1=$1')
|
||||||
YAD_VERSION=$(apt-cache policy yad|sed -n 3p | awk -F ':' \{'print $2'\} | awk '$1=$1')
|
#YAD_VERSION=$(apt-cache policy yad|sed -n 3p | awk -F ':' \{'print $2'\} | awk '$1=$1')
|
||||||
gbp import-dsc -v --allow-unauthenticated http://cdn-fastly.deb.debian.org/debian/pool/main/y/yad/yad_"${YAD_VERSION}".dsc
|
#gbp import-dsc -v --allow-unauthenticated http://cdn-fastly.deb.debian.org/debian/pool/main/y/yad/yad_"${YAD_VERSION}".dsc
|
||||||
|
#
|
||||||
sed -i -e s/libgtk-3-dev/libgtk2.0-dev/g /usr/src/yad-"${YAD_VERSION}"/debian/control
|
#sed -i -e s/libgtk-3-dev/libgtk2.0-dev/g /usr/src/yad-"${YAD_VERSION}"/debian/control
|
||||||
sed -i -e s/gtk3/gtk2/g /usr/src/yad-"${YAD_VERSION}"/debian/rules
|
#sed -i -e s/gtk3/gtk2/g /usr/src/yad-"${YAD_VERSION}"/debian/rules
|
||||||
cd /usr/src/yad || exit
|
#cd /usr/src/yad || exit
|
||||||
#dpkg-buildpackage -us -uc -b
|
##dpkg-buildpackage -us -uc -b
|
||||||
gbp buildpackage --git-builder=sbuild -A -v -d "${RELEASE}"
|
#gbp buildpackage --git-builder=sbuild -A -v -d "${RELEASE}"
|
||||||
dpkg -i ../yad_"${YAD_VERSION}"_amd64.deb
|
#dpkg -i ../yad_"${YAD_VERSION}"_amd64.deb
|
||||||
|
#
|
||||||
sudo schroot --end-session --all-sessions
|
#sudo schroot --end-session --all-sessions
|
||||||
|
|
||||||
# Refractasnapshot 10 introduces support of UEFI bootable iso but grub-efi removes grub-pc
|
# Refractasnapshot 10 introduces support of UEFI bootable iso but grub-efi removes grub-pc
|
||||||
#apt-get install -y grub-efi-amd64
|
#apt-get install -y grub-efi-amd64
|
||||||
apt-get install -y hwinfo
|
apt-get install -y hwinfo
|
||||||
|
|
||||||
REFRACTAINSTALLERBASE_VERSION=9.3.0
|
cd /var/tmp
|
||||||
REFRACTAINSTALLER_GUI_VERSION=9.2.2
|
REFRACTAINSTALLERBASE_VERSION=9.5.3
|
||||||
REFRACTASNAPSHOTBASE_VERSION=10.0.2
|
REFRACTAINSTALLER_GUI_VERSION=9.5.3
|
||||||
REFRACTASNAPSHOT_GUI_VERSION=10.0.2
|
REFRACTASNAPSHOTBASE_VERSION=10.2.3~fsr
|
||||||
REFRACTA2USB_VERSION=2.3.6
|
REFRACTASNAPSHOT_GUI_VERSION=10.2.3~fsr
|
||||||
|
REFRACTA2USB_VERSION=2.4.2
|
||||||
#SOURCEFORGE_MIRROR=http://downloads.sourceforge.net/project/refracta
|
#SOURCEFORGE_MIRROR=http://downloads.sourceforge.net/project/refracta
|
||||||
SOURCEFORGE_MIRROR=http://sourceforge.mirrorservice.org/r/re/refracta
|
#SOURCEFORGE_MIRROR=http://sourceforge.mirrorservice.org/r/re/refracta
|
||||||
|
SOURCEFORGE_MIRROR=https://sourceforge.net/projects/refracta/files/
|
||||||
REFRACTA_LOCATION=tools
|
REFRACTA_LOCATION=tools
|
||||||
#REFRACTA_LOCATION=testing
|
#REFRACTA_LOCATION=testing
|
||||||
URL_LIST=( \
|
URL_LIST=( \
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,38 @@
|
||||||
|
# add automate scripts
|
||||||
|
git clone http://git.devuan.org/cyteen/automate
|
||||||
|
|
||||||
|
cd automate
|
||||||
|
|
||||||
|
# Add contrib to sources.list
|
||||||
|
bash 001_apt-sources.sh
|
||||||
|
|
||||||
|
# Add zfs
|
||||||
|
bash 010_zfs.sh
|
||||||
|
|
||||||
|
# Mount the hdd
|
||||||
|
ZFS_HOME=/mnt
|
||||||
|
zpool import -a -R ${ZFS_HOME}
|
||||||
|
|
||||||
|
mkdir -p ${ZFS_HOME}/dev
|
||||||
|
mount -o bind /dev ${ZFS_HOME}/dev
|
||||||
|
mkdir -p ${ZFS_HOME}/dev/pts
|
||||||
|
mount -o bind /dev/pts ${ZFS_HOME}/dev/pts
|
||||||
|
mkdir -p ${ZFS_HOME}/sys
|
||||||
|
mount -o bind /sys ${ZFS_HOME}/sys
|
||||||
|
mkdir -p ${ZFS_HOME}/proc
|
||||||
|
mount -t proc /proc ${ZFS_HOME}/proc
|
||||||
|
mkdir -p ${ZFS_HOME}/run
|
||||||
|
mount -o bind /run ${ZFS_HOME}/run
|
||||||
|
|
||||||
|
# Rebuild drivers
|
||||||
|
chroot ${ZFS_HOME} dpkg-reconfigure spl-dkms
|
||||||
|
chroot ${ZFS_HOME} dpkg-reconfigure zfs-dkms
|
||||||
|
|
||||||
|
# Update initramfs
|
||||||
|
# Error: live system without live media mounted as /lib/live/mount/medium
|
||||||
|
chroot ${ZFS_HOME} bash -c 'apt-get remove -y live-tools'
|
||||||
|
chroot ${ZFS_HOME} bash -c 'apt-get install -y initramfs-tools'
|
||||||
|
chroot ${ZFS_HOME} bash -c 'update-initramfs -v -u -t -k all'
|
||||||
|
|
||||||
|
# Update grub menu
|
||||||
|
chroot ${ZFS_HOME} update-grub
|
||||||
Loading…
Reference in New Issue