Skip to content

nixos/installer/cd-dvd/iso-image: Allow booting on CHRP machines - #488831

Draft
OPNA2608 wants to merge 2 commits into
NixOS:masterfrom
OPNA2608:init/ppc64-installer
Draft

nixos/installer/cd-dvd/iso-image: Allow booting on CHRP machines#488831
OPNA2608 wants to merge 2 commits into
NixOS:masterfrom
OPNA2608:init/ppc64-installer

Conversation

@OPNA2608

@OPNA2608 OPNA2608 commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

...& New World ROM Macs

image

Must be built on powerpc64-linux, cross is blocked by at least:

Needs:

WIP.

  • Under QEMU:
  • nixos/modules/installer/cd-dvd/ppm2osbadgeicon.c is a custom tool I hacked together for customising the image displayed in the graphical boot selector on New World ROM Macs, see image above. The default image from GRUB's CHRP & tbxi scripts is the GNU logo. I wanted to differentiate the icon for the installer from the icon of the already-installed Debian system (which uses the GRUB default).
    If this is deemed useful, I can throw the code into a separate repo and package it so we don't need to vendor it.
    Edit: https://github.com/OPNA2608/netpbm2osbadgeicons, needs packaging if we want to use this.
    If this customisation is deemed too much, that's also fine.
  • Related to the above: I have vendored a flake.ppm (pride flake logo), because the image produced by imagemagick on hardware has a tint added to the entire result that results in wrong colours (converting nix-snowflake.svg makes it look more like the old blue-purple colour scheme). Would like to drop this and instead generate it, but shipping weird colours…
    Edit: Should be fixed, was a bug in imagemagick. Was working around this with librsvg, need to undo this.
  • CHRP entry point (/ppc/bootinfo.txt) is mostly copied from GRUB. Would like to eventually generate both the CHRP bootinfo.txt and the New World ROM Mac BootX file from an attrset with format-specific adjustments made to it (different SGML tags & formats used for the boot menu icon, different tag capitalisation requirements).
  • Would like to rip some changes that cause rebuilds on other ISO targets out into an initial PR, then adjust this one so it's 0 rebuilds for all our existing installers.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • powerpc64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Feb 9, 2026
@OPNA2608 OPNA2608 added the 6.topic: exotic Exotic hardware or software platform label Feb 9, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Sep 5, 2026
@OPNA2608
OPNA2608 force-pushed the init/ppc64-installer branch from ffafab6 to 099734d Compare September 5, 2026 17:48
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Sep 5, 2026
@OPNA2608
OPNA2608 force-pushed the init/ppc64-installer branch from 099734d to 2c0731f Compare September 5, 2026 17:53
@nixpkgs-ci nixpkgs-ci Bot added the 8.has: package (new) This PR adds a new package label Sep 5, 2026
@OPNA2608
OPNA2608 force-pushed the init/ppc64-installer branch from 2c0731f to 878540f Compare September 5, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: exotic Exotic hardware or software platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant