Commit 7b5319cd authored by Natanael Copa's avatar Natanael Copa

main/mkinitfs: make sure nlplug-findfs are included in initramfs

If user had a modified /etc/mkinitfs/features.d/base.files we may not
get the needed nlplug-findfs. Use post-* script to verify it is actually
there.

fixes #4873
parent c38fb836
......@@ -2,12 +2,12 @@
pkgname=mkinitfs
pkgver=2.8.0_git20151024
_ver=${pkgver%_git*}
pkgrel=1
pkgrel=2
pkgdesc="Tool to generate initramfs images for Alpine"
url=http://git.alpinelinux.org/cgit/mkinitfs
makedepends="kmod-dev util-linux-dev linux-headers"
depends="acct busybox apk-tools>=2.0 lddtree>=1.25"
install="$pkgname.pre-upgrade"
install="$pkgname.pre-upgrade $pkgname.post-install $pkgname.post-upgrade"
triggers="$pkgname.trigger=/usr/share/kernel/*"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_ver.tar.xz
git.patch
......
#!/bin/sh
# safety. if nlplug-findfs is missing in the initramfs image we may end up
# with an unbootable system.
if ! grep -q -w /sbin/nlplug-findfs /etc/mkinitfs/features.d/base.files; then
echo "/sbin/nlplug-findfs" >> /etc/mkinitfs/features.d/base.files
fi
mkinitfs.post-install
\ No newline at end of file
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