blob: e6e580a14588a68c15c02c675803478ed45b0b96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
|