From 212cbcdbc7deba6e5edbdddc0d68468568fff93b Mon Sep 17 00:00:00 2001 From: mid-kid Date: Wed, 15 Jan 2025 00:56:38 +0100 Subject: [PATCH] More minor touchups --- gentoo-2025/gentoo.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gentoo-2025/gentoo.txt b/gentoo-2025/gentoo.txt index aee83e4..d0cf3c4 100644 --- a/gentoo-2025/gentoo.txt +++ b/gentoo-2025/gentoo.txt @@ -26,6 +26,7 @@ # Build live-bootstrap git clone -b 1.0 --depth=1 --recursive https://github.com/fosslinux/live-bootstrap cd live-bootstrap +./download-distfiles.sh ./rootfs.py -c --external-sources --cores $(nproc) umount target/dev/shm # double mounted? umount target/dev/shm target/sys target/proc target/tmp @@ -35,6 +36,11 @@ env -i chroot target tar --exclude='/external' --sort=name -cf /target.tar / env -i chroot target bzip2 -9v /target.tar mv target/external/repo . mv target/target.tar.bz2 . +rm -rf target/external + +# Optional: Keep distfiles in one place +mkdir -p target/var/cache/distfiles +mount --bind distfiles target/var/cache/distfiles # Chroot into the live-bootstrap system cd target @@ -324,6 +330,7 @@ echo 'C.UTF8 UTF-8' > /gentoo/etc/locale.gen # Make sure that you are running a x86_64 kernel before chrooting, or booting it. exit umount dev/pts dev sys proc +umount var/cache/distfiles # Optional: Back up the system env -i chroot gentoo tar --sort=name -cf /gentoo.tar /