[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bootstrap after crosshurd failing



Hello Samuel,

On Fri, Apr 11, 2025 at 01:58:01AM +0200, Samuel Thibault wrote:
> Hello,
> 
> João Pedro Malhado, le mar. 08 avril 2025 21:11:41 +0200, a ecrit:
> > 
> > The failure I got was the same as the one you are seeing in salsa tests
> > https://salsa.debian.org/hurd-team/crosshurd/-/jobs/7386073
> > 
> > With the following patch I get native-install to finish and get to a login
> > console of the installed system.
> 
> > -apt_options="--option APT::Get::Force-Yes=true"
> > +apt_options="--option APT::Get::Allow-change-held-packages=true"
> 
> > Also in the patch a change in the apt options to suppress a warning due to
> > force-yes option.
> 
> Which warning?

This is to suppress the warning on line 2463 of the log
https://salsa.debian.org/hurd-team/crosshurd/-/jobs/7412296
about the deprecation of --force-yes. 
 
> Why adding APT::Get::Allow-change-held-packages=true? What package is
> getting held?

I don't know. I used it to replace --force-yes. I don't know why that flag was
being used.

> > The patch instals packages with priority important after those with priority
> > required, and before everything else.
> 
> Why doing so? That is unnecessary overhead, we are supposed to be
> already be able to automatically install dependencies of required
> packages.

Well, this was a wild guess. Some packages failed to install, so I tried this
and it worked.

I note that I applied my patch on the top of 1.7.62, but I noted that you have
some commits after that.
 
> > At the end of all this I cannot login because I have never set any users or
> > passwords :D Is there a default root password?
> 
> Check /etc/shadow, it's probably just not defined.

Yes, I guess one needs to set the root password after running native-install and
before rebooting. Probably worth adding to the README and to the end of the text
printed at the end of native-install. Would you want a patch to that effect?


> That being said, since mmdebstrap was recently fixed into being able to
> cross-install hurd (even setting up /dev entries with xattr), I don't
> really see the point in trying to fix crosshurd, when mmdebstrap is
> maintained and has little hurd knowledge that we'd have to maintain.

I appreciated that, but crosshurd is presently the only documented way that I
could find of installing a hurd system on real hardware without a CD-ROM.
I would be glad to use mmdebstrap to that effect, but I could not find the
relevant documentation.

Best regards,
João


Reply to: