Commit 26e9e6bc authored by Natanael Copa's avatar Natanael Copa

main/mkinitfs: fix for parsing modules.dep when it has full paths

fixes issue with initramfs not having the needed modules
parent 71799865
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mkinitfs
pkgver=2.0_rc9
pkgrel=0
pkgrel=1
pkgdesc="Tool to generate initramfs images for Alpine"
url=http://git.alpinelinux.org/cgit/mkinitfs
depends="busybox apk-tools>=2.0"
triggers="$pkgname.trigger:/usr/share/kernel/*"
source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2
mod-deps.patch
"
license="GPL-2"
prepare() {
cd "$srcdir"/$pkgname-$pkgver
for i in $source; do
case "$i" in
*.patch) patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$srcdir"/$pkgname-$pkgver
make || return 1
......@@ -19,4 +29,5 @@ package() {
cd "$srcdir"/$pkgname-$pkgver
make install DESTDIR="$pkgdir" || return 1
}
md5sums="54eb3779916b61c91f91c608dc99667a mkinitfs-2.0_rc9.tar.bz2"
md5sums="54eb3779916b61c91f91c608dc99667a mkinitfs-2.0_rc9.tar.bz2
ff8fd46b88690e74505f3fe31fae0aff mod-deps.patch"
commit 18f70462c7fefe7cadcc1cd618b88de565a0f717
Author: Natanael Copa <ncopa@alpinelinux.org>
Date: Mon Aug 9 15:56:35 2010 +0000
mkinitfs: handle the case when modules.dep has full path
we do that by simply removing the prepend string
diff --git a/mkinitfs.in b/mkinitfs.in
index c3d8354..8246d07 100755
--- a/mkinitfs.in
+++ b/mkinitfs.in
@@ -92,6 +92,10 @@ BEGIN {
modulesdep="modules.dep";
FS = ": ";
while ( (getline < modulesdep) > 0) {
+ if (substr($0,1,1) == "/") {
+ gsub(prepend, "", $1);
+ gsub(prepend, "", $2);
+ }
deps[$1] = $2;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment