Re: Bug#1104405: mmdebstrap: readdir() attempted on invalid dirhandle
Hello Josch,
Thank you for considering this use case and taking the time to explain.
On Sat, Sep 06, 2025 at 06:21:47PM +0200, Johannes Schauer Marin Rodrigues wrote:
> Quoting João Pedro Malhado (2025-04-30 19:13:57)
> > Do you see a way to install a hurd image to a partition without creating and
> > copying a tarball explicitly?
>
> If you hate creating temporary files that much there is also the option of
> piping the tarball which mmdebstrap can write to stdout into mke2fs:
>
> mmdebstrap [options and hooks] "-" | sudo mke2fs -d - /dev/sdX
>
> Again, unexplored territory. If you have more questions please don't hesitate
> to ask.
I was not really aware of the -d option of mke2fs.
It works! If one wants to install a Debian Hurd system on partition /dev/sdaX
from a linux partition one can use the following command as root
mmdebstrap --variant=apt \
--include=passwd,debian-ports-archive-keyring,mmdebstrap,sysvinit-core,sysv-rc,e2fsprogs,libarchive13t64 \
--customize-hook='chroot "$1"
mmdebstrap --mode=chrootless --arch=hurd-i386
--include=sysvinit-core,sysv-rc,debian-ports-archive-keyring,gnumach-image-1-486
--customize-hook="passwd --root=\"\$1\" --delete root"
--variant=apt unstable -
"deb http://ftp.ports.debian.org/debian-ports/ unstable main"
"deb http://ftp.ports.debian.org/debian-ports/ unreleased main"
| mkfs.ext2 -o hurd -d - /dev/sdaX' \
stable /dev/null
The linux system one is running the command from needs to have libarchive13
installed for this to work.
I guess this bug report can now be closed.
Samuel mentioned that there would be interest in documenting this process as an
alternative to crosshurd. How does one create an account to edit the wiki on
https://darnassus.sceen.net/~hurd-web/ ?
Regards,
João
Reply to: