From 026c3d65a33185225f4519291517f16589f80f1d Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 24 Feb 2022 10:43:09 +0100 Subject: hurd: Add hints on how to hack an ISO image --- english/ports/hurd/hurd-devel-debian.wml | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'english/ports') diff --git a/english/ports/hurd/hurd-devel-debian.wml b/english/ports/hurd/hurd-devel-debian.wml index 22971b418a0..33f00fcba18 100644 --- a/english/ports/hurd/hurd-devel-debian.wml +++ b/english/ports/hurd/hurd-devel-debian.wml @@ -160,5 +160,41 @@ files). In that case, one can use dh-exec: build depend on dh-exec, chmod +x the .install file, and prepend the problematic lines with e.g. [linux-any] or [!hurd-any].

+ +

+Hacking with the Debian installer

+ +

+To build an ISO image, the simplest is to start from an existing one from the Hurd CD images page. You can then mount it and copy it: +

+ +
 
+mount debian-sid-hurd-i386-NETINST-1.iso /mnt
+cp -a /mnt /tmp/myimage
+umount /mnt
+chmod -R +w /tmp/myimage
+
+ +

+You can mount the initial ram disk, and e.g. replace a translator with your own version: +

+ +
 
+gunzip /tmp/myimage/initrd.gz
+mount /tmp/myimage/initrd /mnt
+cp ~/hurd/rumpdisk/rumpdisk /mnt/hurd/
+umount /mnt
+gnzip /tmp/myimage/initrd
+
+ +

+Now you can rebuild the iso with grub-mkrescue: +

+ +
 
+rm -fr /tmp/myimage/boot/grub/i386-pc
+grub-mkrescue -o /tmp/myimage.iso /tmp/myimage
+
+ -- cgit v1.2.3