[gentoo-catalyst] [PATCH 04/11] targets: Update BINPKG_COMPRESS to new zstd default

2021-01-18 Thread Matt Turner
In portage commit 230595cf600c (Default BINPKG_COMPRESSION to zstd (bug 715108)) the default BINPKG_COMPRESSION setting was changed to zstd. But to retain compatibility with binpkg consumers, the default is unchanged for existing installations, so we need to update our BINPKG_COMPRESSION. Bug:

[gentoo-catalyst] [PATCH 03/11] targets: Update seed stage's sys-apps/portage

2021-01-18 Thread Matt Turner
We'll want to use some new features that have been added specifically for catalyst. It's probably a good idea to use the latest stable portage anyway. Signed-off-by: Matt Turner --- targets/stage1/chroot.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/targets/stage1/chroot.sh

[gentoo-catalyst] [PATCH 06/11] catalyst: Store references to functions

2021-01-18 Thread Matt Turner
... rather than their names. This makes it possible for tooling to understand the code structure better. Signed-off-by: Matt Turner --- catalyst/base/stagebase.py| 69 --- catalyst/targets/embedded.py | 34 +++

[gentoo-catalyst] [PATCH 05/11] targets: Update the @changed-subslot set by default

2021-01-18 Thread Matt Turner
In portage commit 1789fdf2ee81 (Add @changed-subslot package set) I added this: the set of upgradable packages for which the highest visible version has a different subslot than the currently installed version. Updating the entire stage is expensive and unnecessary (since we're going to build the

[gentoo-catalyst] [PATCH 07/11] catalyst: Call config_profile_link for all targets

2021-01-18 Thread Matt Turner
This reverts the following two commits, which have no documented rationale. Revert "Set the profile by calling eselect." This reverts commit 90c03f9dc255ba89849e46490f9ead7ab3921950. Revert "Drop config_profile_link from the action_sequence for the generic stage." This reverts commit

[gentoo-catalyst] [PATCH 08/11] catalyst: Deduplicate prepare_sequence assignments

2021-01-18 Thread Matt Turner
Signed-off-by: Matt Turner --- catalyst/base/stagebase.py| 13 ++--- catalyst/targets/embedded.py | 6 -- catalyst/targets/livecd_stage1.py | 6 -- catalyst/targets/livecd_stage2.py | 6 -- catalyst/targets/netboot.py | 6 --

[gentoo-catalyst] [PATCH 09/11] catalyst: Deduplicate the common build_sequence steps

2021-01-18 Thread Matt Turner
This also provides a single location to add a function to all targets' build_sequence. Signed-off-by: Matt Turner --- catalyst/base/stagebase.py| 11 ++- catalyst/targets/embedded.py | 3 --- catalyst/targets/livecd_stage1.py | 3 --- catalyst/targets/livecd_stage2.py |

[gentoo-catalyst] [PATCH 10/11] catalyst: Add option to enter the chroot before building

2021-01-18 Thread Matt Turner
With --enter-chroot, after the mounts and environment are set up, catalyst will drop you into a shell inside the chroot. Useful for hacking or debugging. Signed-off-by: Matt Turner --- catalyst/base/stagebase.py | 17 - catalyst/main.py | 4 doc/catalyst.1.txt

[gentoo-catalyst] [PATCH 11/11] catalyst: Remove update_seed spec option

2021-01-18 Thread Matt Turner
There should be no need for custom updates, and if there are exceptional circumstances the new --enter-chroot option can be used. Signed-off-by: Matt Turner --- catalyst/targets/stage1.py | 2 -- doc/catalyst-spec.5.txt | 10 --- targets/stage1/chroot.sh|

[gentoo-catalyst] [PATCH 02/11] targets: Remove some obvious comments

2021-01-18 Thread Matt Turner
Signed-off-by: Matt Turner --- targets/stage2/controller.sh | 2 -- targets/stage3/controller.sh | 2 -- targets/stage4/controller.sh | 2 -- 3 files changed, 6 deletions(-) diff --git a/targets/stage2/controller.sh b/targets/stage2/controller.sh index fa5592e1..8ee51a5b 100755 ---

[gentoo-catalyst] [PATCH 01/11] targets: Remove unused 'enter' command

2021-01-18 Thread Matt Turner
Doesn't appear to have ever been wired up. I'm going to add something like what I think this was, but without the duplication. Signed-off-by: Matt Turner --- targets/embedded/controller.sh | 3 --- targets/stage1/controller.sh | 3 --- targets/stage2/controller.sh | 4