Re: dual boot Hurd/Linux?
Hello again,
ti 22.4.2025 klo 20.42 João Pedro Malhado (phlogiston@sapo.pt) kirjoitti:
> On Tue, Apr 22, 2025 at 04:23:19PM +0300, Martin-Éric Racine wrote:
> > Can you share the custom script you use to detect Hurd kernels on the
> > Hurd partition and add them to the menu with the correct Hurd-specific
> > disk names?
>
> Nothing fancy here, I just manage the hurd entry by hand: on linux, I added to
> /etc/grub.d/40_custom the following
>
> menuentry "Debian GNU/Hurd" {
> set root='hd0,msdos1'
> echo 'Loading GNU Mach ...'
> multiboot /boot/gnumach-1.8-486-up.gz root=part:1:device:hd0
> echo 'Loading the Hurd ...'
> module /hurd/pci-arbiter.static pci-arbiter \
> --host-priv-port='${host-port}' --device-master-port='${device-port}' \
> --next-task='${acpi-task}' \
> '$(pci-task=task-create)' '$(task-resume)'
> module /hurd/acpi.static acpi \
> --next-task='${disk-task}' \
> '$(acpi-task=task-create)'
> module /hurd/rumpdisk.static rumpdisk \
> --next-task='${fs-task}' \
> '$(disk-task=task-create)'
> module /hurd/ext2fs.static ext2fs \
> --multiboot-command-line='${kernel-command-line}' \
> --exec-server-task='${exec-task}' -T typed '${root}' \
> '$(fs-task=task-create)'
> module /hurd/exec.static exec '$(exec-task=task-create)'
> }
A similar version of the above indeed found the partition and
succesfully loaded Mach and Hurd.
However... 'crosshurd' [1] is currently broken:
1) Due to Secure APT, 'crosshurd' must Depends on
debian-ports-archive-keyring, otherwise, it cannot proceed.
2) Even once the keyring is installed, it fails to complete. Too many
broken dependencies for the base install. Trying to manually 'dpkg -i'
everything that's in /var/cache/apt/archives in stages eventually
fixes it. However, it messes with ./native-install's idea of what
stage is completed. It never reaches the point when it asks me to
reboot to proceed to the next stage.
3) Typing 'reboot' anyhow fails, because 'crosshurd' never fetched the
package that provides it.
4) Rebooting manually (power switch) gets us to a Mach+Hurd that
succesfully loads off GRUB, but cannot proceed, because 'crosshurd'
also forgot to install '/sbin/init'.
Martin-Éric
[1] https://www.gnu.org/software/hurd/hurd/running/debian/CrossInstall.html
Reply to: