aboutsummaryrefslogtreecommitdiffstats
path: root/english/ports
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-24 10:43:09 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-24 10:43:09 +0100
commit026c3d65a33185225f4519291517f16589f80f1d (patch)
treebe59b7a3a31ad92aecd6e5839a02c97d7d7e4465 /english/ports
parent1b30f17ff40cb661801e273d1bc1dec08ff17062 (diff)
hurd: Add hints on how to hack an ISO image
Diffstat (limited to 'english/ports')
-rw-r--r--english/ports/hurd/hurd-devel-debian.wml36
1 files changed, 36 insertions, 0 deletions
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 <tt>dh-exec</tt>,
<tt>chmod +x</tt> the <tt>.install</tt> file, and prepend the problematic lines
with e.g. <tt>[linux-any]</tt> or <tt>[!hurd-any]</tt>.
</p>
+
+<h3> <a name="debian_installer">
+Hacking with the Debian installer</a></h3>
+
+<p>
+To build an ISO image, the simplest is to start from an existing one from <a href=hurd-cd>the Hurd CD images page</a>. You can then mount it and copy it:
+</p>
+
+<table><tr><td>&nbsp;</td><td class=example><pre>
+mount debian-sid-hurd-i386-NETINST-1.iso /mnt
+cp -a /mnt /tmp/myimage
+umount /mnt
+chmod -R +w /tmp/myimage
+</pre></td></tr></table>
+
+<p>
+You can mount the initial ram disk, and e.g. replace a translator with your own version:
+</p>
+
+<table><tr><td>&nbsp;</td><td class=example><pre>
+gunzip /tmp/myimage/initrd.gz
+mount /tmp/myimage/initrd /mnt
+cp ~/hurd/rumpdisk/rumpdisk /mnt/hurd/
+umount /mnt
+gnzip /tmp/myimage/initrd
+</pre></td></tr></table>
+
+<p>
+Now you can rebuild the iso with grub-mkrescue:
+</p>
+
+<table><tr><td>&nbsp;</td><td class=example><pre>
+rm -fr /tmp/myimage/boot/grub/i386-pc
+grub-mkrescue -o /tmp/myimage.iso /tmp/myimage
+</pre></td></tr></table>
+
</li>
</ul>

© 2014-2024 Faster IT GmbH | imprint | privacy policy