logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/bootstrap-initrd.git
commit: 00344d108e893926e2aeb7a72fcc0d027081785c
parent c6bfbcfa08d4bca54e4fb0c5bf9084e15dbd774d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  7 May 2024 18:41:58 +0200

bootstrap-mdevd.sh: Add

Diffstat:

MREADME.md2++
Abootstrap-mdevd.sh24++++++++++++++++++++++++
Mdistfiles.SHA512SUM1+
Mfetch.sh1+
Mmake-root.sh2++
5 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -126,6 +126,8 @@ Meanwhile: - lua: For oasis - pkgconf: For iproute2 - iproute2: Basic networking configuration +- skalibs: dependency of mdevd +- mdevd: hotplug devices daemon ## Launching in QEMU ``` diff --git a/bootstrap-mdevd.sh b/bootstrap-mdevd.sh @@ -0,0 +1,24 @@ +#!/bin/sh +set -ex + +die() { + echo "die: $@" + exit 1 +} + +command -v make || die "Run /bootstrap-make.sh" +test -f /usr/lib/libskarnet.so || die "Run /bootstrap-mdevd.sh" + +tar xof /mdevd-*.tar.gz +cd mdevd-*/ + +sed 's;-iquote ;-I;' configure > configure.new +mv configure.new configure +chmod +x configure + +./configure --prefix=/usr +make RANLIB=true +make install + +cd .. +rm -fr mdevd-*/ diff --git a/distfiles.SHA512SUM b/distfiles.SHA512SUM @@ -15,6 +15,7 @@ d9f20f35468d979fc29ef5ccc6e77d263e942222b8475940608a234b15e8cff84ef2163514b7b036 428b50b9546d8ad81a7c7e74582135a317d27f0c65307f899ec6de50d71c6220672c53648f999b3019503c8fa6f0c1542131621a6bab9e09a7ef2e2919183b2d distfiles/lua-5.4.6-tests.tar.gz d90c6903355ee1309cb0d92a8a024522ff049091a117ea21efb585b5de35776191cd67d17a65b18c2f9d374795b7c944f047576f0e3fe818d094b26f0e4845c5 distfiles/lua-5.4.6.tar.gz 145260cbd6a8226cef3dfef0c8baba31847beaebc7e6b65d39d02715fd4f4cab9b139b6c3772e550088d4f9ae80c6d3ed20b9a7664c693644dfb96b4cb60e67c distfiles/make-4.4.1.tar.gz +2962be689858117960aa5b332bbc7ca31c2d6592bae1c10acb35a7d66e4bf093cc70d2966649b742ce10ab3ac252b49a4b86b2c548355544aae65ca6214cdaf1 distfiles/mdevd-0.1.6.3.tar.gz 6acd3ee911442934082f4f877d795b07c5e23022eaa9c0874799d97e92a2f5a663cb45f94b7f9745c49cbbce6b7e755a29e381ccfb9e68a0be1eedbd22fd5d3b distfiles/mk-20210330.tar.gz dddd12728842e84bf7d532901d9b9e26e2c8c86e25a3625329586c9088ec9b3825ce3e512c56b7e875b923905308b89494d31d7ca05ebda5485bd00de3954236 distfiles/musl-1.2.5-r0.apk.aarch64 4d76f479017b6f666c36782183f3bdb3e58a48f7400cd125c129e380a8654cf99f685f8d3e97b51cb0199b59720a320e251dd9b89fe55ef8f542a043ab3e7355 distfiles/musl-1.2.5-r0.apk.armhf diff --git a/fetch.sh b/fetch.sh @@ -16,6 +16,7 @@ URLS=" https://distfiles.ariadne.space/pkgconf/pkgconf-2.2.0.tar.gz https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-6.6.0.tar.gz https://www.skarnet.org/software/skalibs/skalibs-2.14.1.1.tar.gz + https://skarnet.org/software/mdevd/mdevd-0.1.6.3.tar.gz " WORKDIR="$(dirname "$0")" diff --git a/make-root.sh b/make-root.sh @@ -26,6 +26,7 @@ distfiles=" pkgconf-2.2.0.tar.gz iproute2-6.6.0.tar.gz skalibs-2.14.1.1.tar.gz + mdevd-0.1.6.3.tar.gz " local_files=" init.sh @@ -40,6 +41,7 @@ local_files=" bootstrap-pkgconf.sh bootstrap-iproute2.sh bootstrap-skalibs.sh + bootstrap-mdevd.sh " WORKDIR="$(dirname "$0")" WORKDIR="$(realpath "$WORKDIR")"