No description
install: invalid group: '11' The filesystem package creates directories with `install -g 11`, and GNU coreutils rejects a gid that resolves to nothing. gid 11 is `ftp` on Arch; Ubuntu leaves it free. This is the circular corner of any bootstrap: the package that DEFINES /etc/group needs groups that do not exist yet. The way out is to give the build host the target's id map, not to work around the check -- rewriting the install call to force a numeric gid would produce directories owned by a group the target does not have. Only the ids Arch uses and Ubuntu lacks are created, and only when missing, so a host that is already correct is left alone. Checked one by one: of 1, 2, 10, 11, 12 and 50, only 11 was absent. --- FR --- install: invalid group: '11' Le paquet filesystem cree des repertoires avec « install -g 11 », et GNU coreutils refuse un gid qui ne resout vers rien. Le gid 11 est « ftp » sur Arch ; Ubuntu le laisse libre. C est le coin circulaire de tout amorcage : le paquet qui DEFINIT /etc/group reclame des groupes qui n existent pas encore. La sortie est de donner a l hote de compilation la table d identifiants de la cible, non de contourner la verification -- forcer l interpretation numerique produirait des repertoires appartenant a un groupe que la cible n a pas. Seuls les identifiants qu Arch utilise et qu Ubuntu n a pas sont crees, et seulement s ils manquent : un hote deja correct n est pas touche. Verifie un a un : sur 1, 2, 10, 11, 12 et 50, seul le 11 etait absent. Assisted-by: Claude Opus 5 |
||
|---|---|---|
| .github/workflows | ||
| arch-kernel | ||
| boot | ||
| patches | ||
| scripts | ||
| .env.example | ||
| .gitignore | ||
| CODEOWNERS | ||
| Containerfile | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| TODO.md | ||
Arch Linux s390x
A port of Arch Linux to IBM s390x mainframe architecture with systemd support.
Boots a full Arch Linux system on IBM mainframes (or QEMU s390x emulation) using a hybrid build: cross-compilation for the kernel, native s390x compilation on z/VM for userspace.
Quick Start
make container # build dev container (first time)
cp .env.example .env # configure z/VM access
make all # build kernel + initramfs + systemd
make test-systemd # boot it
What Works
- Arch Linux kernel 6.18.6-arch1 with Arch patches, cross-compiled
- Initramfs via modified mkinitcpio
- Static busybox built natively on z/VM, 2.3MB
- Root filesystem with ext4, switch_root to real rootfs
- Systemd as PID 1
Pacman, bash, and GNU coreutils are not yet ported.
Build System
The build uses two tiers:
Cross-compilation (x86_64 host): Kernel is built in a Fedora 43 container with s390x-linux-gnu-gcc. Initramfs is generated with a patched mkinitcpio that handles cross-architecture binary injection.
Native compilation (s390x z/VM): Busybox and systemd must be built on real s390x hardware. The z/VM system runs RHEL 9.6 with GCC 11.5.0. Scripts handle SSH deployment and retrieval automatically via .env configuration.