Re: [solved, partly] Re: Grub menu entry for a system on a second drive.
- To: debian-user@lists.debian.org
- Subject: Re: [solved, partly] Re: Grub menu entry for a system on a second drive.
- From: David Wright <deblis@lionunicorn.co.uk>
- Date: Thu, 31 Oct 2024 23:10:22 -0500
- Message-id: <[🔎] ZyRUrpyxFNA4CniQ@axis.corp>
- Reply-to: debian-user@lists.debian.org
- In-reply-to: <Zx9wnICo6dKpMFgH@wooledge.org>
- References: <20241024202757.93907205C7@bendel.debian.org> <c4dcf893-5dfd-fa95-0eb2-5c3ffb96654e@earthlink.net> <20241025162343.958582049F@bendel.debian.org> <9326d7a6-53d6-bac4-dcc9-5ef0ddfa69fc@woodall.me.uk> <20241027035521.EBCC820653@bendel.debian.org> <Zx5UresJWNb24RUZ@axis.corp> <20241027182622.2D3CE20750@bendel.debian.org> <Zx8IF0ZXRwcDR3Vo@axis.corp> <Zx9wnICo6dKpMFgH@wooledge.org>
On Mon 28 Oct 2024 at 07:08:12 (-0400), Greg Wooledge wrote:
> On Sun, Oct 27, 2024 at 22:42:15 -0500, David Wright wrote:
> > type
> > set -x
> > before you run os-prober and
> > set +x
> > afterwards, and track what it does.
>
> os-prober is a script, so that won't work as written. You'd either
> need to modify os-prober (change the second line from "set -e" to
> "set -ex" for example) and then run it; or do something like:
>
> script
> set -x
> source /usr/bin/os-prober
> exit
>
> (That assumes your interactive shell is bash.)
I see what you mean. I guess one could make the shell explicit
and then set x with:
script
bash -x /usr/bin/os-prober
exit
(I can't remember where I saw that construction.)
Cheers,
David.
Reply to: