Update gentoo.sh
This commit is contained in:
parent
b8a4fafdf1
commit
0e0fa9c87c
27
gentoo.sh
27
gentoo.sh
@ -168,15 +168,11 @@ unmaskPackages() {
|
|||||||
|
|
||||||
finishInstall() {
|
finishInstall() {
|
||||||
unmaskPackages
|
unmaskPackages
|
||||||
|
distccConfigure
|
||||||
chroot $TARGET /usr/bin/bash /tmp/packages.sh
|
chroot $TARGET /usr/bin/bash /tmp/packages.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
buildGentoo() {
|
distccConfigure() {
|
||||||
|
|
||||||
if [ ! -d "$TARGET/var/db/repos/gentoo/x11-misc" ]; then
|
|
||||||
chroot $TARGET /usr/bin/emerge --sync
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$DISTCC_LISTEN" ]; then
|
if [ -z "$DISTCC_LISTEN" ]; then
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
@ -188,13 +184,31 @@ buildGentoo() {
|
|||||||
echo "[Building DistCC]"
|
echo "[Building DistCC]"
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
|
if [ -f "$TARGET/usr/bin/distccd" ]; then
|
||||||
|
echo "Distcc already installed"
|
||||||
|
else
|
||||||
chroot $TARGET /usr/bin/emerge sys-devel/distcc
|
chroot $TARGET /usr/bin/emerge sys-devel/distcc
|
||||||
|
fi
|
||||||
echo "" >$TARGET/etc/distcc/hosts
|
echo "" >$TARGET/etc/distcc/hosts
|
||||||
for i in "${DISTCC_HOSTS[@]}"; do
|
for i in "${DISTCC_HOSTS[@]}"; do
|
||||||
echo $i >>$TARGET/etc/distcc/hosts
|
echo $i >>$TARGET/etc/distcc/hosts
|
||||||
done
|
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 &
|
chroot $TARGET /usr/bin/distccd --no-detach --daemon --port 3632 -N 15 --allow $DISTCC_LISTEN &
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
buildGentoo() {
|
||||||
|
|
||||||
|
if [ ! -d "$TARGET/var/db/repos/gentoo/x11-misc" ]; then
|
||||||
|
chroot $TARGET /usr/bin/emerge --sync
|
||||||
|
fi
|
||||||
|
|
||||||
|
distccConfigure
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
@ -222,7 +236,6 @@ buildGentoo() {
|
|||||||
echo "[Installing Kernel]"
|
echo "[Installing Kernel]"
|
||||||
echo
|
echo
|
||||||
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
|
chroot $TARGET /usr/bin/emerge gentoo-kernel-bin sys-kernel/linux-firmware
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user