-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try to get Gentoo to provide needed files on the distmirrors #2
Comments
This is a discussion with an already existing Bug, probably not to hard to get fix once we have good documentation here on how it could be used. https://bugs.gentoo.org/494300 |
From chat using https://web.libera.chat/#gentoo-releng
gentoo/releng |
Notes for trying to use catalyst mkdir -p /etc/portage/package.accept_keywords
echo dev-util/catalyst > /etc/portage/package.accept_keywords/catalyst
echo 'GRUB_PLATFORMS="${GRUB_PLATFORMS} emu efi-32 efi-64 pc"' >> /etc/portage/make.conf
#-boot to avoid boot partition issue with memtest
#system-bootloader needed for livecd creation
USE="-boot system-bootloader" emerge -uvN pixz catalyst genlop reptyr -j16
# python mount needed (maybe)
USE=python emerge -uvN util-linux
# grep -v ^# /etc/catalyst/catalyst.conf
# remove autoresume
# add preserve_libs
# add keepwork
# remove snapcache - first build fails with this enabled ?
options="bindist kerncache pkgcache preserve_libs keepwork seedcache"
snapshot_cache="/release/tmp/snapshots"
storedir="/release/buildroot/amd64-dev"
source_matching="loose"
# add log
port_logdir="/var/tmp/catalyst/tmp"
var_tmpfs_portage=16
# cat /etc/catalyst/catalystrc
export MAKEOPTS="-j8"
export EMERGE_DEFAULT_OPTS="--jobs 20 --load-average 9"
cd
git clone https://github.com/gentoo/releng.git
cd releng
# TODO parse /etc/catalyst/catalyst.conf to get below paths
mkdir -p /release/buildroot/amd64-dev/builds/default/
mkdir -p /release/buildroot/amd64-dev/builds/hardened/
mkdir -p /release/buildroot/amd64-dev/builds/musl
mkdir -p /release/buildroot/amd64-dev/builds/musl-hardened
mkdir -p /release/tmp/snapshots/
pushd /release/buildroot/amd64-dev/builds/default/
FILE=$(wget -q http://distfiles.gentoo.org/releases/amd64/autobuilds/current-install-amd64-minimal/ -O - | grep -o -E 'stage3-amd64-openrc-20\w*\.tar\.(bz2|xz)' | uniq)
wget http://distfiles.gentoo.org/releases/amd64/autobuilds/current-install-amd64-minimal/$FILE
# ln -s $FILE stage3-amd64-openrc-latest.tar.xz
popd
# check expected times:
genlop -t gcc
mkdir -p /release/buildroot/amd64-dev/tmp/; \
umount /release/buildroot/amd64-dev/tmp/; \
rm -rf /release/buildroot/amd64-dev/tmp/*; mount none -t tmpfs /release/buildroot/amd64-dev/tmp/ -o size=16G,nr_inodes=1M; \
sh tools/catalyst-auto -v -v -X -l /var/lock/catalyst.lock -c tools/catalyst-auto-amd64-demeter.conf; \
umount /release/buildroot/amd64-dev/tmp/ |
Building with snapcache enabled gives this:
|
bootstrap stage2 fails, it was ok first time, but even after clearing all binpkgs still getting this.
|
Testing if using this stage3 works around the openmp issue ... FILE=$(wget -q http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64/ -O - | grep -o -E 'stage3-amd64-20\w*\.tar\.(bz2|xz)' | uniq)
wget http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64/$FILE
ln -s $FILE stage3-amd64-openrc-latest.tar.xz |
netboot targets exists that generates multiple files. The cleanest way would be to split
However this probably makes to much of a disconnect between settings in the stage2 spec files and what would be needed for stage3. - not to mention all the places and documentation that would need updates in regards to livcd stage2/3. in In the end maybe the best, or at least the first solution, would be to simply extract the iso in the upload step instead? |
Extracts and generates needed files to perform iPXE boot from gentoo mirrors Provided as PoC of what is needed for this to be vaild If merged this would resolve NiKiZe/Gentoo-iPXE#2 Will be providing PoC for doing most of this in catalyst instead as well Really want to have this in the same target as minimal livecd To test result with qemu localy after build (replace your variables): qemu-system-x86_64 -enable-kvm -M q35 -m 1024 -cpu host -nic user,model=virtio,\ tftp="${BUILD_SRCDIR_BASE}"/builds/default,\ bootfile=install-amd64-minimal-${TIMESTAMP}.ipxe \ -watchdog i6300esb -watchdog-action reset -boot menu=on -usb Signed-off-by: Christian Nilsson <[email protected]>
Extracts and generates needed files to perform iPXE boot from gentoo mirrors Provided as PoC of what is needed for this to be vaild If merged this would resolve NiKiZe/Gentoo-iPXE#2 Will be providing PoC for doing most of this in catalyst instead as well Really want to have this in the same target as minimal livecd To test result with qemu localy after build (replace your variables): qemu-system-x86_64 -enable-kvm -M q35 -m 1024 -cpu host -nic user,model=virtio,\ tftp="${BUILD_SRCDIR_BASE}"/builds/default,\ bootfile=install-amd64-minimal-${TIMESTAMP}.ipxe \ -watchdog i6300esb -watchdog-action reset -boot menu=on -usb Signed-off-by: Christian Nilsson <[email protected]>
Copy out needed files from iso to perform iPXE boot from gentoo mirrors Provided as PoC of what is needed for this to be vaild If merged this would resolve NiKiZe/Gentoo-iPXE#2 There is an alternative aproch to extract and generate these files during upload instead Really want to have this in the same target as minimal livecd To test result with qemu localy after build (replace your variables): qemu-system-x86_64 -enable-kvm -M q35 -m 1024 -cpu host -nic user,model=virtio,\ tftp="${BUILD_SRCDIR_BASE}"/builds/default,\ bootfile=install-amd64-minimal-${TIMESTAMP}.ipxe \ -watchdog i6300esb -watchdog-action reset -boot menu=on -usb Signed-off-by: Christian Nilsson <[email protected]>
Copy out needed files from iso to perform iPXE boot from gentoo mirrors Provided as PoC of what is needed for this to be vaild If merged this would resolve NiKiZe/Gentoo-iPXE#2 There is an alternative aproch to extract and generate these files during upload instead Really want to have this in the same target as minimal livecd To test result with qemu localy after build (replace your variables): qemu-system-x86_64 -enable-kvm -M q35 -m 1024 -cpu host -nic user,model=virtio,\ tftp="${BUILD_SRCDIR_BASE}"/builds/default,\ bootfile=install-amd64-minimal-${TIMESTAMP}.ipxe \ -watchdog i6300esb -watchdog-action reset -boot menu=on -usb Signed-off-by: Christian Nilsson <[email protected]>
Have tried to create PoCs to generate PXE files for minimal livecd (amd64), feedback appreciated https://bugs.gentoo.org/494300#c4 |
Extracts and generates needed files to perform iPXE boot from gentoo mirrors Provided as PoC of what is needed for this to be vaild If merged this would resolve NiKiZe/Gentoo-iPXE#2 Will be providing PoC for doing most of this in catalyst instead as well Really want to have this in the same target as minimal livecd To test result with qemu localy after build (replace your variables): qemu-system-x86_64 -enable-kvm -M q35 -m 1024 -cpu host -nic user,model=virtio,\ tftp="${BUILD_SRCDIR_BASE}"/builds/default,\ bootfile=install-amd64-minimal-${TIMESTAMP}.ipxe \ -boot menu=on -usb Signed-off-by: Christian Nilsson <[email protected]>
robbat2:
dilfridge
|
This is
gentoo
kernelgentoo.igz
original initrdimage.squashfs
boot.ipxe
the iPXE script - once it is well tested for all platformsThe text was updated successfully, but these errors were encountered: