logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git
commit: cd67b3793ca07cb4b365252053b4d59f509a9a5d
parent 6f622a9a573f1b82572800d0947bb194883745d7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 10 Apr 2019 17:52:20 +0200

articles/Install Gentoo via Floppy: Add make-initrd link and note on VPS install

Diffstat:

Marticles/Install Gentoo via Floppy.xhtml6+++---
Mfeed.atom4++--
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/articles/Install Gentoo via Floppy.xhtml b/articles/Install Gentoo via Floppy.xhtml @@ -2,12 +2,12 @@ <a href="/articles/Install%20Gentoo%20via%20Floppy"><h1>Install Gentoo via Floppy</h1></a> <p>Okay, so here are the files I generated for it:</p> <ul> - <li><a href="https://lanodan.eu/pastes/2019-04-10T15:26:10-make-initrd-smol.sh">make-initrd-smol.sh</a>: a slightly modified version of make-initrd to only copy a static busybox</li> + <li><a href="https://lanodan.eu/pastes/2019-04-10T15:26:10-make-initrd-smol.sh">make-initrd-smol.sh</a>: a slightly modified version of <a href="https://hacktivis.me/git/make-initrd/">make-initrd</a> to only copy a static busybox</li> <li><a href="https://lanodan.eu/pastes/2019-04-10T15:25:50-init">init</a>: the init file I wrote, included in the initramfs of the floppy image, could be done better</li> <li><a href="https://lanodan.eu/pastes/2019-04-10T13:05:05-fdimage">fdimage</a>: The floppy image (2.88 MB), done with <code>make fdimage288 FDINITRD=/boot/initramfs-smol.cpio.xz</code></li> </ul> <p>Some people might be wondering why I did this: Well, I saw this <a href="http://sakamoto.pl/weblog/07-windows-3-flash-edition/">blogpost of cramming Windows 3.1 + some extra in the coreboot virtual floppy</a>. And looking at how my kernel images where relatively well stripped down (5 MB for the kernel of my VPS and about the same size for my other machines) and that busybox is damn small (~700 Kilobytes), yet has all the neccesarry userspace tools required to install gentoo (iproute2, udhcpc, fdisk, mkfs, wget, …).</p> -<p>Also while the floppy version isn’t very useful nowadays, the kernel+initramfs is quite useful for netbooting (even if I already had that but 4 times bigger)</p> +<p>Also while the floppy version isn’t very useful nowadays, the kernel+initramfs is quite useful for netbooting or installation on a VPS which already has a Linux Install but doesn’t have a good enough ISO, which I basically never have since I use ZFS and interestingly Alpine Linux, which can be used for that, isn’t much present (I already had a quite generic kernel+initrd but 4 times bigger).</p> <p>It was quite fun to do, even if I needed to launch the VM quite a lot of time until I got all the drivers for QEMU to work. And so, here is what is present in the kernel:</p> <ul> <li>Architecture: amd64</li> @@ -20,5 +20,5 @@ </ul> <p>Note: The permissions for the <code>/dev</code> files are wrong, which is probably why udhcpc is broken. And it requires you to put <code>FEATURES="-userfetch"</code> in <code>/etc/portage/make.conf</code>. I guess this will make me fix some stuff in make-initrd.</p> <p>btw I managed to not hit the floppy limit (except when I tried without XZ on the initramfs), but I didn’t find a way to see the occupied size on the floppy. I would probably have tried to cram more stuff in it like tinyx / tinyxserver and/or useful recovery tools. Such a floppy-based linux was <a href="http://distro.ibiblio.org/baslinux/">Basic Linux</a> from 2005 but it’s apparently dead and it used either DOS for booting or two floppies.</p> -<p><a href="https://queer.hacktivis.me/notice/9hfVvXwIIuJhiPGbEu">Fediverse post for comments</a>, published on 2019-04-10T15:21:04Z, last updated on 2019-04-10T15:33:04Z</p> +<p><a href="https://queer.hacktivis.me/notice/9hfVvXwIIuJhiPGbEu">Fediverse post for comments</a>, published on 2019-04-10T15:21:04Z, last updated on 2019-04-10T15:52:20Z</p> </article> diff --git a/feed.atom b/feed.atom @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title>Home feed — Cyber-Home of Lanodan</title> - <updated>2019-04-10T15:33:04Z</updated> + <updated>2019-04-10T15:52:20Z</updated> <id>https://hacktivis.me/feed</id> <link href="https://hacktivis.me/feed.atom" rel="self" /> <link href="https://hacktivis.me/home" rel="alternate" /> @@ -14,7 +14,7 @@ <link rel="alternate" type="text/html" href="/articles/Install%20Gentoo%20via%20Floppy"/> <id>https://hacktivis.me/articles/Install%20Gentoo%20via%20Floppy</id> <published>2019-04-10T15:21:04Z</published> - <updated>2019-04-10T15:33:04Z</updated> + <updated>2019-04-10T15:52:20Z</updated> <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <!--#include file="/articles/Install Gentoo via Floppy.xhtml"--> </div></content>