live-bootstrap icon indicating copy to clipboard operation
live-bootstrap copied to clipboard

"Validate mirrors" function does not respect the external sources argument

Open ajherchenroder opened this issue 4 months ago • 3 comments

After updating my fork to the latest commit I had a build failure when using the "external-sources" argument. The validate mirrors function crashed out because I didn't specify a mirror.

ajherchenroder avatar Sep 10 '25 21:09 ajherchenroder

I'm not sure I quite understand. That is currently expected, you always need to specify a mirror.

Or is the case you are looking at, a) use --external-sources b) already have all distfiles in distfiles/ c) don't specify a mirror and that should be expected to work? That would make a bit of sense to me, maybe we can get that to work.

fosslinux avatar Sep 11 '25 03:09 fosslinux

What you’ve said is exactly my use case. I have all my distfiles in a tarball on my NAS. My bash script just downloads the file and extract the tarball into the distfiles directory. Then it kicks off the build with the —external-sources argument. I set it up that way before the whole mirror thing came about as part of my UEFI work around but I also find it useful for automation. I think you could make the argument that “-external-sources” is "Download sources externally from live-bootstrap" per the help. Why should I need to specify a mirror if I’m handling it externally?

ajherchenroder avatar Sep 11 '25 09:09 ajherchenroder

Okay, you make some good points.

The help message needs to be improved. It should probably read something more like "Download sources before running the bootstrap", or something like that. The meaning is supposed to be, externally to the live-bootstrap environment. I understand your interpretation "the distfiles already exist because I downloaded them beforehand", but that's not what it's supposed to mean.

I think what might be best here is to do the mirror option validation at download time rather than at the beginning of the script. I'll make a PR with my idea shortly.

fosslinux avatar Sep 13 '25 07:09 fosslinux