Update gentoo.sh

This commit is contained in:
verita84 2023-11-15 00:27:07 +00:00
parent b8a4fafdf1
commit 0e0fa9c87c

View File

@ -168,15 +168,11 @@ unmaskPackages() {
finishInstall() {
unmaskPackages
distccConfigure
chroot $TARGET /usr/bin/bash /tmp/packages.sh
}
buildGentoo() {
if [ ! -d "$TARGET/var/db/repos/gentoo/x11-misc" ]; then
chroot $TARGET /usr/bin/emerge --sync
fi
distccConfigure() {
if [ -z "$DISTCC_LISTEN" ]; then
echo
echo
@ -188,13 +184,31 @@ buildGentoo() {
echo "[Building DistCC]"
echo
echo
if [ -f "$TARGET/usr/bin/distccd" ]; then
echo "Distcc already installed"
else
chroot $TARGET /usr/bin/emerge sys-devel/distcc
fi
echo "" >$TARGET/etc/distcc/hosts
for i in "${DISTCC_HOSTS[@]}"; do
echo $i >>$TARGET/etc/distcc/hosts
done
echo "[Killing Distccd]"
/usr/sbin/killall -9 distccd
echo
echo "[Starting Distccd]"
echo
chroot $TARGET /usr/bin/distccd --no-detach --daemon --port 3632 -N 15 --allow $DISTCC_LISTEN &
fi
}
buildGentoo() {
if [ ! -d "$TARGET/var/db/repos/gentoo/x11-misc" ]; then
chroot $TARGET /usr/bin/emerge --sync
fi
distccConfigure
echo
echo
@ -222,7 +236,6 @@ buildGentoo() {
echo "[Installing Kernel]"
echo
echo
#chroot $TARGET /usr/bin/emerge =sys-kernel/$(ls $TARGET/var/db/repos/gentoo/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.* | cut -d '/' -f9 | sed 's/.ebuild//' | head -1) sys-kernel/linux-firmware
chroot $TARGET /usr/bin/emerge gentoo-kernel-bin sys-kernel/linux-firmware
echo