logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://anongit.hacktivis.me/git/bootstrap-initrd.git/
commit: 4b26859f7caddcdce511a2fa1c84f2f99be4e80f
parent c72510d54618ba38c60804f81f3c0f1dc1fcb4f0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 13 Jan 2025 20:31:46 +0100

remove mdevd (+ skalibs)

While needed for multiuser setups to get correct permissions,
in such an initrd it isn't really useful.

Diffstat:

MREADME.md2--
Mdistfiles.SHA512SUM2--
Mextras-build-all.sh3---
Dextras/mdevd.sh24------------------------
Dextras/skalibs.sh19-------------------
Mfetch.sh2--
Mmake-root.sh4----
7 files changed, 0 insertions(+), 56 deletions(-)

diff --git a/README.md b/README.md @@ -140,8 +140,6 @@ Meanwhile: - lua: For oasis - pkgconf: For iproute2 - iproute2: Basic networking configuration -- skalibs: dependency of mdevd -- mdevd: hotplug devices daemon - bearssl: small TLS library - tiny-curl: Still pretty big but hopefully close enough to the usual one - cacert (from curl.haxx.se): Maybe could be reduced to a handful of CAs (like maybe even just Let's Encrypt) diff --git a/distfiles.SHA512SUM b/distfiles.SHA512SUM @@ -16,7 +16,6 @@ e713445dbd824189e3fdf0b07bf61585372b4d3bd4b87dce8dca1125baadd3681ab5be7dfec203c0 27eebbe44aae1bd4fe08aacda463d50e49e1133964ab13ef2061bdac14851b21936d04a874d2c43fc16a3c5d52c3d6b7621960bd9e393808389795212a2ed2b3 distfiles/linux-headers-6.12.6-r0.apk.x86_64 d90c6903355ee1309cb0d92a8a024522ff049091a117ea21efb585b5de35776191cd67d17a65b18c2f9d374795b7c944f047576f0e3fe818d094b26f0e4845c5 distfiles/lua-5.4.6.tar.gz 145260cbd6a8226cef3dfef0c8baba31847beaebc7e6b65d39d02715fd4f4cab9b139b6c3772e550088d4f9ae80c6d3ed20b9a7664c693644dfb96b4cb60e67c distfiles/make-4.4.1.tar.gz -4435fac14887f12ba429099f8ad9c9215a6fc3966a5f836a48684ecdd2fa38ccbcdaf363af7e8397b4dc741b92fad0998179919e12fc5c0404b914370db13f1b distfiles/mdevd-0.1.6.4.tar.gz 0f874d6c7be3a69a69553d99c4b50ede6e3b92811052c13a36d8dd35955817f437f77e185d624804526d36e8cc6e99be4eedf8c2d3bcf09340068b1e41da5a49 distfiles/musl-1.2.5-r9.apk.aarch64 10f462174d0fa0caaa4e4b767848b2d3a89c70617aca562cf0cd310ee2119eee8638b9eb2909a0756ee8e8952236624c1bacaac314b2d1146cf1c47b4c9b409d distfiles/musl-1.2.5-r9.apk.armhf 874994ef577a9651b444ddab90f8ac248b7b2ef8c4b0b7dda38d4ff2200e76a737e9dc27b63da5e7fd4022d18829badcdf99969cc52752d710ec598460cbe03d distfiles/musl-1.2.5-r9.apk.armv7 @@ -41,7 +40,6 @@ b2ea989baed5e2328c6957b940744c82fa2d8bbf541418fcb6bd3fe49192242dc38ee9f2d20cc1b0 ae3d9d593e1645d65f9ab77aa828600c9af4bb30d0a073da7ae3dd805e65b87efaf6a0efb980f2d0168e475ae506eba194547d6479956dabb9d88293a9078a7f distfiles/pigz-2.8.tar.gz 0759e63b9bfdc1e0b2f95e4c5c7be24b4ffa22e06a08cfad7f8e8be9faf99c256b1cbc72159e4ec805791d6b507a80fc344d05d63a1d273c3285dac868bf6ca0 distfiles/pkgconf-pkgconf-2.3.0.tar.gz b050d22a0446e3e2439f59762f3b40104bc1c8361c6ac17a410c0d13c06af497470d468ba50de97b50181a959ae3189b2dba089162dbade536803c8ff96b2d83 distfiles/sbase-b30fb568.tar.gz -b96491e6429cc69bc75f50be99b7b18769cb756c1a82f698994c23aefb16bc68ee5558076993b948a6674203ecd82a454a978c89f450c219cc2728d52b7f5656 distfiles/skalibs-2.14.2.0.tar.gz f210c9a9c57fd4023300da4f4da53b1ce7519a408252d53487285a1eb11bb819aca288ad25f9e8a70a38c8bc4cbc97661a1609d3b3f6f255b2e9966d4269653b distfiles/tcc-0.9.27_git20241020-r1.apk.aarch64 487e8fd4963cdd1acbb4d9210b71c7472ac1977a55c8872cdeeafc8a5573fc932089c3a4b6afa8ffc928d2136efee56ca6fd026ad100b64d199669da045c553a distfiles/tcc-0.9.27_git20241020-r1.apk.armhf ca5dc84d04e5000a40d2151c169fc4142831fc7e2242aa49290da074986182bbd694a4a50b21879cda00787acf0bc14081bf0c1df73547783753386c41af81da distfiles/tcc-0.9.27_git20241020-r1.apk.armv7 diff --git a/extras-build-all.sh b/extras-build-all.sh @@ -11,12 +11,9 @@ set -ex /extras/e2fsprogs.sh # make /extras/gettext-tiny.sh # make -/extras/skalibs.sh # make /extras/tiny-curl.sh # make /extras/xz.sh # make -/extras/mdevd.sh # make skalibs - /extras/iproute2.sh # make pkgconf /extras/git.sh # make tiny-curl gettext-tiny diff --git a/extras/mdevd.sh b/extras/mdevd.sh @@ -1,24 +0,0 @@ -#!/bin/sh -set -ex - -die() { - echo "die: $@" - exit 1 -} - -command -v make || die "Run /extras/make.sh" -test -f /usr/lib/libskarnet.so || die "Run /extras/skalibs.sh" - -tar xof /distfiles/mdevd-*.tar.gz -cd mdevd-*/ - -sed 's;-iquote ;-I;' configure > configure.new -mv -f configure.new configure -chmod +x configure - -./configure --prefix=/usr -make RANLIB=true -make install - -cd .. -rm -fr mdevd-*/ diff --git a/extras/skalibs.sh b/extras/skalibs.sh @@ -1,19 +0,0 @@ -#!/bin/sh -set -ex - -die() { - echo "die: $@" - exit 1 -} - -command -v make || die "Run /extras/make.sh" - -tar xof /distfiles/skalibs-*.tar.gz -cd skalibs-*/ - -./configure --prefix=/usr -make RANLIB=true -make install - -cd .. -rm -fr skalibs-*/ diff --git a/fetch.sh b/fetch.sh @@ -12,8 +12,6 @@ URLS=" https://tukaani.org/xz/xz-5.6.3.tar.gz https://www.lua.org/ftp/lua-5.4.6.tar.gz https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-6.12.0.tar.gz - https://www.skarnet.org/software/skalibs/skalibs-2.14.2.0.tar.gz - https://skarnet.org/software/mdevd/mdevd-0.1.6.4.tar.gz https://bearssl.org/bearssl-0.6.tar.gz https://curl.se/tiny/tiny-curl-8.4.0.tar.gz https://curl.haxx.se/ca/cacert-2024-11-26.pem diff --git a/make-root.sh b/make-root.sh @@ -30,8 +30,6 @@ distfiles=" lua-5.4.6.tar.gz pkgconf-pkgconf-2.3.0.tar.gz iproute2-6.12.0.tar.gz - skalibs-2.14.2.0.tar.gz - mdevd-0.1.6.4.tar.gz bearssl-0.6.tar.gz tiny-curl-8.4.0.tar.gz cacert-2024-11-26.pem @@ -45,8 +43,6 @@ local_distfiles=" extras/lua.sh extras/pkgconf.sh extras/iproute2.sh - extras/skalibs.sh - extras/mdevd.sh extras/bearssl.sh extras/tiny-curl.sh extras/gettext-tiny.sh