FINALLY. testing cross-distro after many tweaks. also switched to github mirrors for the UEFI shells because sourceforge sucks.
This commit is contained in:
parent
4403901d8f
commit
342d9894f5
14
bin/build.sh
14
bin/build.sh
@ -103,7 +103,7 @@ fi
|
|||||||
set -e
|
set -e
|
||||||
USERNAME_REAL="$(grep ${BUILD_USERNAME} /etc/passwd | cut -f5 -d':')"
|
USERNAME_REAL="$(grep ${BUILD_USERNAME} /etc/passwd | cut -f5 -d':')"
|
||||||
|
|
||||||
cat > VERSION_INFO.txt << EOF
|
cat > ${BASEDIR}/VERSION_INFO.txt << EOF
|
||||||
Version: ${VERSION}
|
Version: ${VERSION}
|
||||||
Build: ${BUILD}
|
Build: ${BUILD}
|
||||||
Time: ${BUILDTIME}
|
Time: ${BUILDTIME}
|
||||||
@ -137,18 +137,6 @@ release_me 64 > /dev/null 2>&1
|
|||||||
release_me 32 > /dev/null 2>&1
|
release_me 32 > /dev/null 2>&1
|
||||||
|
|
||||||
# do we need to perform any updates?
|
# do we need to perform any updates?
|
||||||
if [[ -f "${CHROOTDIR}root.x86_64/root/chroot" || -f "${CHROOTDIR}root.i686/root/chroot" ]];
|
|
||||||
then
|
|
||||||
chroot_wrapper 64
|
|
||||||
chroot_wrapper 32
|
|
||||||
if [[ "${HOST_DIST}" == "CentOS" || "${HOST_DIST}" == "RHEL" ]];
|
|
||||||
centos_is_stupid
|
|
||||||
fi
|
|
||||||
will_it_blend 64
|
|
||||||
will_it_blend 32
|
|
||||||
yo_dj
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ${1} == "update" ]];
|
if [[ ${1} == "update" ]];
|
||||||
then
|
then
|
||||||
mentos
|
mentos
|
||||||
|
@ -25,8 +25,8 @@ noedit=1
|
|||||||
skipinteg=1
|
skipinteg=1
|
||||||
#skiptest=1
|
#skiptest=1
|
||||||
#warn=1
|
#warn=1
|
||||||
tmpdir=/var/tmp/apacman
|
#tmpdir=/var/tmp/apacman
|
||||||
TMPDIR=/var/tmp/apacman
|
#TMPDIR=/var/tmp/apacman
|
||||||
|
|
||||||
#
|
#
|
||||||
# CONFIGURATION
|
# CONFIGURATION
|
||||||
|
@ -109,10 +109,10 @@ function mkchroot {
|
|||||||
echo "Local: ${LOCSUM32}"
|
echo "Local: ${LOCSUM32}"
|
||||||
echo "Remote: ${CKSUM32}"
|
echo "Remote: ${CKSUM32}"
|
||||||
echo "Fetching fresh copy."
|
echo "Fetching fresh copy."
|
||||||
curl -o latest.32.tar.gz "${RLSDIR}/${CURRLS32}" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
curl -o latest.32.tar.gz "${RLSDIR}/${CURRLS32}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
curl -o latest.32.tar.gz "${RLSDIR}/${CURRLS32}" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
curl -o latest.32.tar.gz "${RLSDIR}/${CURRLS32}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "${CHROOTDIR32}/etc/pacman.d/gnupg/trustdb.gpg" ] || [ ! -f "${CHROOTDIR64}/etc/pacman.d/gnupg/trustdb.gpg" ];
|
if [ ! -f "${CHROOTDIR32}/etc/pacman.d/gnupg/trustdb.gpg" ] || [ ! -f "${CHROOTDIR64}/etc/pacman.d/gnupg/trustdb.gpg" ];
|
||||||
@ -147,6 +147,7 @@ HOME_URL="https://www.archlinux.org/"
|
|||||||
SUPPORT_URL="https://bbs.archlinux.org/"
|
SUPPORT_URL="https://bbs.archlinux.org/"
|
||||||
BUG_REPORT_URL="https://bugs.archlinux.org/"
|
BUG_REPORT_URL="https://bugs.archlinux.org/"
|
||||||
EOF
|
EOF
|
||||||
|
cp ${BASEDIR}/VERSION_INFO.txt ${BASEDIR}/root.${i}/.
|
||||||
done
|
done
|
||||||
|
|
||||||
# And make it usable.
|
# And make it usable.
|
||||||
@ -364,4 +365,7 @@ EOF
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mkchroot
|
if [[ ! -f "${BASEDIR}/root.x86_64/VERSION_INFO.txt" && ! -f "${BASEDIR}/root.x86_64/VERSION_INFO.txt" ]];
|
||||||
|
then
|
||||||
|
mkchroot
|
||||||
|
fi
|
||||||
|
@ -2,6 +2,9 @@ function will_it_blend () {
|
|||||||
|
|
||||||
FUNCNAME="will_it_blend"
|
FUNCNAME="will_it_blend"
|
||||||
|
|
||||||
|
SQUASH_CMD="mksquashfs"
|
||||||
|
SQUASH_OPTS="-noappend -comp xz"
|
||||||
|
|
||||||
local ARCHSUFFIX="${1}"
|
local ARCHSUFFIX="${1}"
|
||||||
if [[ "${1}" == "64" ]];
|
if [[ "${1}" == "64" ]];
|
||||||
then
|
then
|
||||||
|
@ -23,12 +23,12 @@ function stuffy {
|
|||||||
if [ ! -f "${TEMPDIR}/EFI/shellx64_v2.efi" ];
|
if [ ! -f "${TEMPDIR}/EFI/shellx64_v2.efi" ];
|
||||||
then
|
then
|
||||||
# EFI Shell 2.0 for UEFI 2.3+ ( http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=UEFI_Shell )
|
# EFI Shell 2.0 for UEFI 2.3+ ( http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=UEFI_Shell )
|
||||||
curl -o ${TEMPDIR}/EFI/shellx64_v2.efi https://svn.code.sf.net/p/edk2/code/trunk/edk2/ShellBinPkg/UefiShell/X64/Shell.efi >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
curl -o ${TEMPDIR}/EFI/shellx64_v2.efi "https://github.com/tianocore/edk2/blob/master/ShellBinPkg/UefiShell/X64/Shell.efi?raw=true" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
fi
|
fi
|
||||||
if [ ! -f "${TEMPDIR}/EFI/shellx64_v1.efi" ];
|
if [ ! -f "${TEMPDIR}/EFI/shellx64_v1.efi" ];
|
||||||
then
|
then
|
||||||
# EFI Shell 1.0 for non UEFI 2.3+ ( http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=Efi-shell )
|
# EFI Shell 1.0 for non UEFI 2.3+ ( http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=Efi-shell )
|
||||||
curl -o ${TEMPDIR}/EFI/shellx64_v1.efi https://svn.code.sf.net/p/edk2/code/trunk/edk2/EdkShellBinPkg/FullShell/X64/Shell_Full.efi >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
curl -o ${TEMPDIR}/EFI/shellx64_v1.efi "https://github.com/tianocore/edk2/blob/master/EdkShellBinPkg/FullShell/X64/Shell_Full.efi?raw=true" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# now for setting up loader config/entries. maybe add memtest or something in the future? i dunno.
|
# now for setting up loader config/entries. maybe add memtest or something in the future? i dunno.
|
||||||
|
@ -10,6 +10,9 @@ function distro_specific_tweaks {
|
|||||||
# For some reason, I can't get "yes y | " to parse correctly with eval. And Arch isn't smart enough
|
# For some reason, I can't get "yes y | " to parse correctly with eval. And Arch isn't smart enough
|
||||||
# to figure out that if I enable the multilib repos, *I want multilib gcc*. Fuck it. We'll just remove it first.
|
# to figure out that if I enable the multilib repos, *I want multilib gcc*. Fuck it. We'll just remove it first.
|
||||||
|
|
||||||
|
pacman -S --needed haveged >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
|
haveged
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
for pkg_override in gcc gcc-libs;
|
for pkg_override in gcc gcc-libs;
|
||||||
do
|
do
|
||||||
|
@ -10,6 +10,9 @@ function distro_specific_tweaks {
|
|||||||
# For some reason, I can't get "yes y | " to parse correctly with eval. And Arch isn't smart enough
|
# For some reason, I can't get "yes y | " to parse correctly with eval. And Arch isn't smart enough
|
||||||
# to figure out that if I enable the multilib repos, *I want multilib gcc*. Fuck it. We'll just remove it first.
|
# to figure out that if I enable the multilib repos, *I want multilib gcc*. Fuck it. We'll just remove it first.
|
||||||
|
|
||||||
|
pacman -S --needed haveged >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
|
haveged
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
for pkg_override in gcc gcc-libs;
|
for pkg_override in gcc gcc-libs;
|
||||||
do
|
do
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
NAME='Mageia'
|
NAME='Mageia'
|
||||||
SUPPORTED='yes'
|
SUPPORTED='yes'
|
||||||
CHECK_METHOD='egrep "^Mageia\ release\ " /etc/mageia-release'
|
CHECK_METHOD='egrep "^Mageia\ release\ " /etc/mageia-release'
|
||||||
PKG_MGR='urpmi --force ${pkgname}'
|
PKG_MGR='urpmi --force --auto ${pkgname}'
|
||||||
PRE_RUN='urpmi.update -a'
|
PRE_RUN='urpmi.update -a'
|
||||||
PKG_CHK='rpm -q ${pkgname} | egrep "^${pkgname}-[0-9]"'
|
PKG_CHK='rpm -q ${pkgname} | egrep "^${pkgname}-[0-9]"'
|
||||||
URL='https://www.mageia.org/'
|
URL='https://www.mageia.org/'
|
||||||
|
@ -10,6 +10,9 @@ function distro_specific_tweaks {
|
|||||||
# For some reason, I can't get "yes y | " to parse correctly with eval. And Arch isn't smart enough
|
# For some reason, I can't get "yes y | " to parse correctly with eval. And Arch isn't smart enough
|
||||||
# to figure out that if I enable the multilib repos, *I want multilib gcc*. Fuck it. We'll just remove it first.
|
# to figure out that if I enable the multilib repos, *I want multilib gcc*. Fuck it. We'll just remove it first.
|
||||||
|
|
||||||
|
pacman -S --needed haveged >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
|
haveged
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
for pkg_override in gcc gcc-libs;
|
for pkg_override in gcc gcc-libs;
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user