Subject: [alpine-aports] [PATCH] mkinitfs: point the /boot/boot symlink at ., not /.

From: Christopher Brannon <[email-masked]>
Date: Sat, 10 Feb 2018 17:13:43 -0800

From: Linux User <cmb@cmb-alpine..test>

If /boot is on the root partition, then /boot/boot should not point
to /, because it will be pointing at the wrong directory.  Pointing
/boot/boot to "." is correct in all situations.
---
 main/mkinitfs/APKBUILD         | 2 +-
 main/mkinitfs/mkinitfs.trigger | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/mkinitfs/APKBUILD b/main/mkinitfs/APKBUILD
index 1b3ce792ed..c2f18b4d7d 100644
--- a/main/mkinitfs/APKBUILD
+++ b/main/mkinitfs/APKBUILD
@@ -2,7 +2,7 @@
 pkgname=mkinitfs
 pkgver=3.2.0
 _ver=${pkgver%_git*}
-pkgrel=6
+pkgrel=7
 pkgdesc="Tool to generate initramfs images for Alpine"
 url="https://git.alpinelinux.org/cgit/mkinitfs"
 arch="all"
diff --git a/main/mkinitfs/mkinitfs.trigger b/main/mkinitfs/mkinitfs.trigger
index cedf36337d..e8acc97854 100644
--- a/main/mkinitfs/mkinitfs.trigger
+++ b/main/mkinitfs/mkinitfs.trigger
@@ -18,7 +18,7 @@ done
 # extlinux will use path relative partition, so if /boot is on a
 # separate partition we want /boot/<kernel> resolve to /<kernel>
 if ! [ -e /boot/boot ]; then
-	ln -sf / /boot/boot
+	ln -sf . /boot/boot
 fi
 
 # cleanup unused initramfs
-- 
2.15.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---