diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-07 22:29:03 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-07 22:29:03 -0500 |
commit | 6f3a6da561a3e1a6cdb1aa4765610773e13c2dca (patch) | |
tree | 401bd3eea285bfe240a664f04a2792491b1fa74e /system/mkinitfs/0001-initramfs-do-not-relocate-mountpoint-for-netboot.patch | |
parent | e070336d60ba45aa1f8cb596bfb1c820a1d9734d (diff) | |
download | packages-6f3a6da561a3e1a6cdb1aa4765610773e13c2dca.tar.gz packages-6f3a6da561a3e1a6cdb1aa4765610773e13c2dca.tar.bz2 packages-6f3a6da561a3e1a6cdb1aa4765610773e13c2dca.tar.xz packages-6f3a6da561a3e1a6cdb1aa4765610773e13c2dca.zip |
system/mkinitfs: new package
Diffstat (limited to 'system/mkinitfs/0001-initramfs-do-not-relocate-mountpoint-for-netboot.patch')
-rw-r--r-- | system/mkinitfs/0001-initramfs-do-not-relocate-mountpoint-for-netboot.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/system/mkinitfs/0001-initramfs-do-not-relocate-mountpoint-for-netboot.patch b/system/mkinitfs/0001-initramfs-do-not-relocate-mountpoint-for-netboot.patch new file mode 100644 index 000000000..e6e580a14 --- /dev/null +++ b/system/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 + |