Browse Source

More minor touchups

master
mid-kid 1 week ago
parent
commit
212cbcdbc7
  1. 7
      gentoo-2025/gentoo.txt

7
gentoo-2025/gentoo.txt

@ -26,6 +26,7 @@
# Build live-bootstrap # Build live-bootstrap
git clone -b 1.0 --depth=1 --recursive https://github.com/fosslinux/live-bootstrap git clone -b 1.0 --depth=1 --recursive https://github.com/fosslinux/live-bootstrap
cd live-bootstrap cd live-bootstrap
./download-distfiles.sh
./rootfs.py -c --external-sources --cores $(nproc) ./rootfs.py -c --external-sources --cores $(nproc)
umount target/dev/shm # double mounted? umount target/dev/shm # double mounted?
umount target/dev/shm target/sys target/proc target/tmp 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 env -i chroot target bzip2 -9v /target.tar
mv target/external/repo . mv target/external/repo .
mv target/target.tar.bz2 . 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 # Chroot into the live-bootstrap system
cd target 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. # Make sure that you are running a x86_64 kernel before chrooting, or booting it.
exit exit
umount dev/pts dev sys proc umount dev/pts dev sys proc
umount var/cache/distfiles
# Optional: Back up the system # Optional: Back up the system
env -i chroot gentoo tar --sort=name -cf /gentoo.tar / env -i chroot gentoo tar --sort=name -cf /gentoo.tar /

Loading…
Cancel
Save