Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: tinyramfs-0.1.0 #38105

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions srcpkgs/tinyramfs/files/kernel-hook-postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
PKGNAME="$1"
VERSION="$2"

usr/bin/tinyramfs -f -k ${VERSION} boot/initramfs-${VERSION}.img
5 changes: 5 additions & 0 deletions srcpkgs/tinyramfs/files/kernel-hook-postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
PKGNAME="$1"
VERSION="$2"

rm -f boot/initramfs-${VERSION}.img
20 changes: 20 additions & 0 deletions srcpkgs/tinyramfs/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Template file for 'tinyramfs'
pkgname=tinyramfs
version=0.1.0
revision=1
build_style=gnu-makefile
depends="util-linux cpio binutils eudev kmod"
short_desc="Tiny initramfs written in POSIX shell"
maintainer="wael <40663@proton.me>"
license="GPL-3.0-only"
homepage="https://github.com/illiliti/tinyramfs"
distfiles="https://github.com/illiliti/tinyramfs/archive/refs/tags/${version}.tar.gz"
checksum=a78ecd56a52a02bc1f4b86ba829a957ad1f83c252bfde66562d5c3ef40be7c51
# checking requires qemu, locally this still fails
make_check=no

post_install() {
vinstall ${FILESDIR}/kernel-hook-postinst 755 etc/kernel.d/post-install 20-tinyramfs
vinstall ${FILESDIR}/kernel-hook-postrm 755 etc/kernel.d/post-remove 20-tinyramfs
rm -rf ${DESTDIR}/usr/lib/dracut/hook.d/systemd-udev
}