~alpine/aports

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

Christopher Brannon <chris@the-brannons.com>
Details
Message ID
<20180211011343.16188-1-chris@the-brannons.com>
Sender timestamp
1518311623
DKIM signature
missing
Download raw message
Patch: +2 -2
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:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)