|
|
@ -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 / |
|
|
|