Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44BD02820DC for ; Thu, 24 Apr 2025 17:12:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745514728; cv=none; b=JrAZpWiXdhrVhpbE0gSA7yP5Gn0wOo0+OfiKaW5DcWEmMZbMTIeTik0OEscJmzHubDKwq47EyxOyDkKdpTyAUkxs9aWLXhXY1yaGRYDsJHRfa9tjw2P4/3nFIxbGrI1ER7nHgLViE/K6cw6g2QLpokdF+6P35aRhSXWuvI4BaQE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745514728; c=relaxed/simple; bh=3eL0QQ+q6Cl7/tH09fbiKTbmV8+2m1s6UUoF4xrmmQA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PquVmLWFOzO55TqBCmjvgUTbGCIhN82gu1Tz2q/HclXNuU7EiHjPaLdJQgMftLrd6Jle2yOvvq8TdKnN8pQtTqBwuZo9d1wiN2egpxM1gDjj/6NaZEDeEgKmnX12BDGbS3M/kTjodh31StHBnzvRZr/TQstMtFeBoUPj2IuQ0T0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WCc4FT+D; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WCc4FT+D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E09CC4CEE3; Thu, 24 Apr 2025 17:12:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745514727; bh=3eL0QQ+q6Cl7/tH09fbiKTbmV8+2m1s6UUoF4xrmmQA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WCc4FT+DhgQibHpLcdB/AYtupqVfrC9HVwI5BNT6dnKg0r7O+PI8t2am1bqq3ot1K C4U8ruGHcLw1lwXcDbmcXA/6exs33gOxphY7qGHPUim/e5wNwmjo9SzujkW+UPuhEv 8RtUtwsUF6PMt6fmnFs2mM6hUgEuFHIHqjYJjua54cc8BuXQk/fOwXUGfR6MSmfxRT uHj/R3GrZ/9sSNuNE6cUEVZdrnSu8ARGCw0ECLvm+Rk4WEVJVE0orYohcr6xwvwVPY S8y6TW6Kp9tJ2+9Rm7jzSGAFTIojH1Tgyg6+kdvgkjjsI2DmPv3N0+Kni54PoJCYP9 QSimvuosYbe1g== Date: Thu, 24 Apr 2025 10:12:06 -0700 From: Luis Chamberlain To: Daniel Gomez Cc: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Subject: Re: [RFT] bootlinux: add bisection support Message-ID: References: <20250424000942.2944058-1-mcgrof@kernel.org> <6e5o27x6dwj2b6mjb4dwkqugh4duhzaomfg3rf7q532vcmzw44@xeutn543adnp> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Apr 24, 2025 at 10:08:09AM -0700, Luis Chamberlain wrote: > On Thu, Apr 24, 2025 at 08:40:52AM +0200, Daniel Gomez wrote: > > If make linux-deploy installs a "bad" ref kernel with a boot problem, the VM > > will always boot into the "bad" kernel. How is the script going to boot the new > > kernel for testing if the new ref is "bad"/"good"? > > Good point. > > On the guest: > > kdevops@bisect ~ $ awk -F\' '/menuentry / {print $2}' > /boot/grub/grub.cfg | awk '{print NR-1 " ... " $0}' > 0 ... Debian GNU/Linux, with Linux 6.15.0-rc3-next-20250423 > 1 ... Debian GNU/Linux, with Linux 6.15.0-rc3-next-20250423 (recovery mode) > 2 ... Debian GNU/Linux, with Linux 6.15.0-rc3-05015-g2ecdc8872668 > 3 ... Debian GNU/Linux, with Linux 6.15.0-rc3-05015-g2ecdc8872668 (recovery mode) > 4 ... Debian GNU/Linux, with Linux 6.15.0-rc3-04291-g400331cd3ff4 > 5 ... Debian GNU/Linux, with Linux 6.15.0-rc3-04291-g400331cd3ff4 (recovery mode) > 6 ... Debian GNU/Linux, with Linux 6.15.0-rc3-02800-g3686e26dd260 > 7 ... Debian GNU/Linux, with Linux 6.15.0-rc3-02800-g3686e26dd260 (recovery mode) > 8 ... Debian GNU/Linux, with Linux 6.12.22-amd64 > 9 ... Debian GNU/Linux, with Linux 6.12.22-amd64 (recovery mode) > 10 ... Debian GNU/Linux, with Linux 6.12.20-amd64 > 11 ... Debian GNU/Linux, with Linux 6.12.20-amd64 (recovery mode) > 12 ... Debian GNU/Linux, with Linux 6.12.19-amd64 > 13 ... Debian GNU/Linux, with Linux 6.12.19-amd64 (recovery mode) > 14 ... UEFI Firmware Settings > > Right now it fails to boot. On the host: > > GUEST=bisect > sudo virsh destroy $GUEST > DISK=$(sudo virsh dumpxml $GUEST | xmllint --xpath "string(//devices/disk[@device='disk']/source/@file)" -) > > virt-customize --format raw -a $DISK --run-command 'grub-set-default 8' > [ 0.0] Examining the guest ... > [ 8.7] Setting a random seed > [ 8.7] Running: grub-set-default 8 > [ 8.8] SELinux relabelling > [ 8.8] Finishing off I forgot to mention here I obviously followed up with sudo virsh start bisect > ssh bisect uname -r > 6.12.22-amd64 Luis