mount: /.../chroot/dev/console: special device /dev/console does not exist (was: Re: deb822 format sources?)

2026-01-06 Thread Simon Josefsson
Simon Josefsson  writes:

> I've been using Debian trixie live-build and it seems to work fine, but
> I've had to re-discover some bugs and backport the fixes to my setup.
>
> I just tried latest git and got a complaint:
>
> E: The URL for --mirror-debian-installer must end with a /.
>
> I'm not using the --mirror-debian-installer parameter at all.  I see the
> error message was added recently.  Does it handle the case where this is
> not used and the string is presumably empty?

I changed all my URLs to add trailing / and the complaint disappeared.

Switching to the latest version in git triggered another error:

+ git -C /live-build log -1
commit 0724b2cc03974a4b5acb506625d92c312ca6c6c4
...
[2026-01-06 09:45:46] lb chroot_devpts install --debug --verbose
D: Reading configuration file config/common
D: Reading configuration file config/bootstrap
D: Reading configuration file config/chroot
D: Reading configuration file config/binary
D: Reading configuration file config/source
P: Begin mounting /dev/pts...
mount: /builds/debdistutils/tacos/live/chroot/dev/console: special device 
/dev/console does not exist.
   dmesg(1) may have more information after failed mount system call.
E: An unexpected failure occurred, exiting...

See pipeline here:
https://gitlab.com/debdistutils/tacos/live/-/jobs/12615979195

I tracked it down to the f74ace02de45966c436139fc267098333bb544ba commit
with an innocent commit message of just reformatting the code:

https://salsa.debian.org/live-team/live-build/-/commit/f74ace02de45966c436139fc267098333bb544ba

This pipeline works for the commit
78449b77a5b94480006d10bafb981fded6cce6de right before:

https://gitlab.com/debdistutils/tacos/live/-/jobs/12615971373

But fails on the commit after f74ace02de45966c436139fc267098333bb544ba:

https://gitlab.com/debdistutils/tacos/live/-/jobs/12615979195

+ git -C /live-build log -1
commit f74ace02de45966c436139fc267098333bb544ba
...
mount: /builds/debdistutils/tacos/live/chroot/dev/console: special device 
/dev/console does not exist.

Any ideas?

/Simon


signature.asc
Description: PGP signature


Re: deb822 format sources?

2026-01-05 Thread andy pugh
On Mon, 5 Jan 2026 at 17:46, Simon Josefsson  wrote:
>
> E: The URL for --mirror-debian-installer must end with a /.


I had the same message, fixed it by adding the / to the default of the
default...

Actually, no, I had a very similar but different message.

   --mirror-debian-installer URL
   sets  the  location  of  the  mirror  that  will  be used
to fetch the debian installer images of the
   derivative. By default, this points to the same mirror used
to build the live system, i.e. the  value
   of --mirror-bootstrap.

So that one only goes one default deep.

I _think_ that mine was complaining about

   --mirror-chroot-volatile URL
   sets the location of the debian volatile package mirror
that will be used to fetch  packages  of  the
   derivative  in  order  to  build  the  live  system.  By
default,  this  is  set  to  the  value  of
   --mirror-chroot.

And

   --mirror-chroot URL
   sets the location of the debian package mirror that will
be  used  to  fetch  the  packages  of  the
   derivative  in  order  to  build  the  live  system.  By
default,  this  is  set  to  the  value  of
   --mirror-bootstrap.

So the fix was to append a / to mirror-bootstrap.

But there is something odd going on, as it only complained about
mirror-chroot-volatile not mirror-bootstrap or mirror-chroot.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912



Re: deb822 format sources?

2026-01-05 Thread Simon Josefsson
Roland Clobus  writes:

> On 04/01/2026 18:07, andy pugh wrote:
>> On Sun, 4 Jan 2026 at 16:55, Roland Clobus  wrote:
>>> IIRC you have a fork of live-build. Please cherry-pick at least this
>>> commit. Or alternatively, use the version of live-build from git.
>> I admit to being a bit confused about how version control works
>> between our repo and live-build. (or where the boundaries lie)
>> I am working with an install of live-build from Debian installed with
>> apt-get. Then I cloned our repo which contains the config files.
>
> Ah, that version was released two weeks before the fix...
> I guess it is time for a new release.

Yes please!  Is backporting to trixie-backports relevant?

I've been using Debian trixie live-build and it seems to work fine, but
I've had to re-discover some bugs and backport the fixes to my setup.

I just tried latest git and got a complaint:

E: The URL for --mirror-debian-installer must end with a /.

I'm not using the --mirror-debian-installer parameter at all.  I see the
error message was added recently.  Does it handle the case where this is
not used and the string is presumably empty?

/Simon


signature.asc
Description: PGP signature


Re: deb822 format sources?

2026-01-05 Thread andy pugh
On Mon, 5 Jan 2026 at 16:44, Roland Clobus  wrote:

> > I am working with an install of live-build from Debian installed with
> > apt-get. Then I cloned our repo which contains the config files.
>
> Ah, that version was released two weeks before the fix...
> I guess it is time for a new release.

I installed the deb from the artifacts of a recent CI build on Salsa,
and that did provide a working sources.list file.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912



Re: deb822 format sources?

2026-01-05 Thread Roland Clobus

On 04/01/2026 18:07, andy pugh wrote:

On Sun, 4 Jan 2026 at 16:55, Roland Clobus  wrote:

IIRC you have a fork of live-build. Please cherry-pick at least this
commit. Or alternatively, use the version of live-build from git.


I admit to being a bit confused about how version control works
between our repo and live-build. (or where the boundaries lie)
I am working with an install of live-build from Debian installed with
apt-get. Then I cloned our repo which contains the config files.


Ah, that version was released two weeks before the fix...
I guess it is time for a new release.

With kind regards,
Roland Clobus


OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: deb822 format sources?

2026-01-04 Thread andy pugh
On Sun, 4 Jan 2026 at 16:55, Roland Clobus  wrote:

> > (it has the CD instead as the source)
>
> That sound like an error. We had the issue early in the trixie release,

It's an error on my part inasmuch as the CD source is commented out,
but there is nothing else in the source.list

I have patched around it to avoid our users installing a version of
Trixie that they can't install software on, which felt to have some
urgency to it as I just released a new version yesterday.
I will upload that and then work on doing the job properly.

> IIRC you have a fork of live-build. Please cherry-pick at least this
> commit. Or alternatively, use the version of live-build from git.

I admit to being a bit confused about how version control works
between our repo and live-build. (or where the boundaries lie)
I am working with an install of live-build from Debian installed with
apt-get. Then I cloned our repo which contains the config files.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912



Re: deb822 format sources?

2026-01-04 Thread Aaron Rainbolt
On Sun, Jan 4, 2026 at 10:55 AM Roland Clobus  wrote:
... snip ...
> There is a MR prepared:
> https://salsa.debian.org/live-team/live-build/-/merge_requests/436
>
> But there are some issues with it.

Author of said PR here. If you have a chance, could you list the
remaining issues in the bug report? The only issue I remember is the
use of `gpg` filename extensions rather than `pgp`, are there any
others? I have work time to allocate to fixing those.

--
Aaron



Re: deb822 format sources?

2026-01-04 Thread andy pugh
On Sun, 4 Jan 2026 at 14:22, andy pugh  wrote:

> I have tried manually adding a debian.sources file in config/archives
> but it is going to take some time to test if that has worked.

That didn't work, but adding a debian.sources in
config/includes/chroot/etc/apt/sources.list.d did.


-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912



Re: deb822 format sources?

2026-01-04 Thread Roland Clobus

Hello Andy,

On 04/01/2026 15:22, andy pugh wrote:

I have built a Trixie-based LinuxCNC .iso.
For some reason it installs without the debian sources.list entries.
(it has the CD instead as the source)


That sound like an error. We had the issue early in the trixie release, 
but that has been fixed by 82788ada2346903345a901045a00c544e095c93c


IIRC you have a fork of live-build. Please cherry-pick at least this 
commit. Or alternatively, use the version of live-build from git.



Is this in some way related to the switch to deb822 and apt now using
.sources files instead?


There is a MR prepared:
https://salsa.debian.org/live-team/live-build/-/merge_requests/436

But there are some issues with it.


In any case, there isn't a debian.sources entry either, so after
installing the ISO there is no way to install extra packages from the
Debian repositories without manually updating
/etc/apt/sources.list[.d]

Config: https://github.com/LinuxCNC/linuxcnc-live-build/tree/trixie
ISO: linuxcnc_2.9.8-amd64.hybrid.iso

I have tried manually adding a debian.sources file in config/archives
but it is going to take some time to test if that has worked.


I think the best way forward would be to make MR436 work properly, then 
all can benefit.


With kind regards,
Roland Clobus




OpenPGP_signature.asc
Description: OpenPGP digital signature