[PATCH 0/2] bootlinux: enable custom existing kernel tree switch

Daniel Gomez <[email protected]> Mon, 24 Nov 2025 21:29:40 +0100
Newsgroups dev.linux.lists.kdevops
Message-ID <20251124-custom-linux-9p-tree-and-mount-point-v1-0-cfdd5716b43c@samsung.com>
These patches enables the following workflow:

make defconfig-linux-modules-kpd LINUX_TREE_REF=v6.17
make bringup
make linux

Switch to custom modules tree at different location
./scripts/kconfig/merge_config.sh -n .config 9p_modules.config
make linux

The 9p_modules.config fragment contains:

CONFIG_BOOTLINUX_9P_HOST_PATH="/path/to/other/tree"
CONFIG_BOOTLINUX_LINUS=n
CONFIG_BOOTLINUX_CUSTOM=y
CONFIG_BOOTLINUX_TREE_CUSTOM_NAME="modules"
CONFIG_BOOTLINUX_TREE_CUSTOM_URL="/mirror/linux-modules.git"
CONFIG_BOOTLINUX_TREE_CUSTOM_REF="modules-next"

I've noticed that when a user wants to switch to another cloned tree
with a different directory name and location than the one already
configured by default, bootlinux/9p is not able to handle this change
properly. This enables 9p to be reconfigured correctly and to continue
working on the already running guest(s).

This also enables maintaining multiple kernel trees (e.g., git-worktree)
and switching between them seamlessly.

Signed-off-by: Daniel Gomez <[email protected]>
---
Daniel Gomez (2):
      bootlinux: support existing kernel trees
      bootlinux: handle 9P remounting when tree configuration changes

 playbooks/roles/bootlinux/tasks/build/9p.yml       |  71 ++++++++--
 playbooks/roles/bootlinux/tasks/main.yml           |  38 ++++++
 playbooks/roles/bootlinux/tasks/power-cycle-vm.yml | 150 +++++++++++++++++++++
 3 files changed, 247 insertions(+), 12 deletions(-)
---
base-commit: 2674eeee8a274f456d9d7c14c8967dc568d74b28
change-id: 20251124-custom-linux-9p-tree-and-mount-point-7ceee87ca3dc

Best regards,
--  
Daniel Gomez <[email protected]>