diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2018-02-22 10:28:39 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2018-02-22 10:28:39 +0000 |
commit | dbfe34f363c53e4daa31a4bd3efacf2966868d25 (patch) | |
tree | 10b50e07c663a35c697064293d38fb5c960d3476 /main/mkinitfs | |
parent | c60e80d89c50d8c576f0601fc6a5807e7e3a2438 (diff) | |
download | aports-dbfe34f363c53e4daa31a4bd3efacf2966868d25.tar.bz2 aports-dbfe34f363c53e4daa31a4bd3efacf2966868d25.tar.xz |
main/mkinitfs: fix netboot warning
Diffstat (limited to 'main/mkinitfs')
-rw-r--r-- | main/mkinitfs/0001-initramfs-do-not-relocate-mountpoint-for-netboot.patch | 28 | ||||
-rw-r--r-- | main/mkinitfs/APKBUILD | 6 |
2 files changed, 32 insertions, 2 deletions
diff --git a/main/mkinitfs/0001-initramfs-do-not-relocate-mountpoint-for-netboot.patch b/main/mkinitfs/0001-initramfs-do-not-relocate-mountpoint-for-netboot.patch new file mode 100644 index 0000000000..e6e580a145 --- /dev/null +++ b/main/mkinitfs/0001-initramfs-do-not-relocate-mountpoint-for-netboot.patch @@ -0,0 +1,28 @@ +From 1d115251816a3f83a008883f1b9665c3d8f4d3a4 Mon Sep 17 00:00:00 2001 +From: Carlo Landmeter <clandmeter@alpinelinux.org> +Date: Tue, 20 Feb 2018 10:18:11 +0000 +Subject: [PATCH] initramfs: do not relocate mountpoint for netboot + +mountpoint cannot be located when repo is external. +--- + initramfs-init.in | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/initramfs-init.in b/initramfs-init.in +index 95fcd97..bf2d9bd 100755 +--- a/initramfs-init.in ++++ b/initramfs-init.in +@@ -221,6 +221,10 @@ relocate_mount() { + return + fi + while read dir; do ++ # skip http(s)/ftp repos for netboot ++ if ! [ -d "$dir" ]; then ++ continue ++ fi + local dev=$(df -P "$dir" | tail -1 | awk '{print $1}') + local mnt=$(find_mnt $dev $fstab) + if [ -n "$mnt" ]; then +-- +2.16.1 + diff --git a/main/mkinitfs/APKBUILD b/main/mkinitfs/APKBUILD index 1b3ce792ed..da837f7f35 100644 --- a/main/mkinitfs/APKBUILD +++ b/main/mkinitfs/APKBUILD @@ -2,7 +2,7 @@ pkgname=mkinitfs pkgver=3.2.0 _ver=${pkgver%_git*} -pkgrel=1 +pkgrel=2 pkgdesc="Tool to generate initramfs images for Alpine" url="https://git.alpinelinux.org/cgit/mkinitfs" arch="all" @@ -15,6 +15,7 @@ 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 0001-skip-hooks-on-diskless-install.patch + 0001-initramfs-do-not-relocate-mountpoint-for-netboot.patch " builddir="$srcdir/$pkgname-$_ver" @@ -29,4 +30,5 @@ package() { } sha512sums="906bfbce677d4ece9c9fea7b2a529121740bc9d96ea011be083303cc5c56162f09271b0a673e9e335234ccf2f293109bda1eda333698a95357d0772c86f498af mkinitfs-3.2.0.tar.xz -f5c9b21e53c663dac1b8f33f929dbe067492f0dc1bd5ef5310ef531033f31fc3fa0b6de6dce03cecaf90b8ed47b278d0f1f7c64dbbeede7621c895ee3ea79864 0001-skip-hooks-on-diskless-install.patch" +f5c9b21e53c663dac1b8f33f929dbe067492f0dc1bd5ef5310ef531033f31fc3fa0b6de6dce03cecaf90b8ed47b278d0f1f7c64dbbeede7621c895ee3ea79864 0001-skip-hooks-on-diskless-install.patch +4387357cfcd3441c5d8777e42c0e62a73fa446aacd2faac081947afc39bdd8fb91e12b34f3b69a6827bd7d0705f54514b77c0ff4c38ee0d70553050117c42576 0001-initramfs-do-not-relocate-mountpoint-for-netboot.patch" |