Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sys-kernel/booster - Alternatives initramfs
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
schmidicom
Veteran
Veteran


Joined: 09 Mar 2006
Posts: 1928
Location: Schweiz

PostPosted: Fri Dec 29, 2023 10:04 am    Post subject: sys-kernel/booster - Alternatives initramfs Reply with quote

Ich habe auf Github ein interessantes Projekt im Bereich initrd/initramfs gefunden (mein ebuild dazu findet ihr unten) und wollte es direkt mal ausprobieren. Leider endete das Experiment bei mir relativ schnell damit das nach dem der Kernel das damit erstellte Image entpackte einfach nichts mehr machte. Und selbst mit der Kernel-Option "debug" konnte ich keine weiteren Infos herausziehen die mir geholfen hätten das ganze weiter zu untersuchen.

Für mich ist das Experiment bis auf weiteres beendet oder eher auf Eis gelegt, aber vielleicht hat ja hier jemand Bock das auszuprobieren. Und wenn dabei jemand herausfindet was eventuell schief gelaufen sein könnte nehme ich jede Anregung dazu gerne an.

https://github.com/schmidicom/schmidicom-overlay/blob/master/sys-kernel/booster/booster-0.11.ebuild:
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit go-module

DESCRIPTION="Fast and secure initramfs generator"
HOMEPAGE="https://github.com/anatol/booster"
SRC_URI="https://github.com/anatol/booster/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
   https://res.messerligroup.com/deploy/${P}-deps.tar.xz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

DEPEND="sys-apps/busybox
   dev-libs/libfido2"
RDEPEND="${DEPEND}"
BDEPEND="app-text/ronn-ng"

src_compile() {
   # build binary
   ego build -v -o generator_binary ./generator
   ego build -v -o init_binary ./init
   # build manpage
   ronn docs/manpage.md || die "build manpage failed!"
   mv docs/manpage.1 docs/booster.1 || die "rename manpage failed!"
}

src_install() {
   # install booster binary
   newbin generator_binary booster || die "install booster failed!"
   # install booster init
   exeinto /usr/lib/booster
   newexe init_binary init || die "install booster failed!"
   # install manpage
   doman docs/booster.1  || die "install booster failed!"
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum