main/mkinitfs: fix the /boot/boot symlink to point at ., not /.

If /boot is on the root partition, I.E., no separate /boot partition,
then the /boot/boot symlink incorrectly pointed to /.  Pointing
/boot/boot to "." is correct in all situations.
This commit is contained in:
Christopher Brannon 2018-05-23 07:28:22 -07:00 committed by Jakub Jirutka
parent 9647ca6a35
commit f6a6625d91
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
pkgname=mkinitfs pkgname=mkinitfs
pkgver=3.2.0 pkgver=3.2.0
_ver=${pkgver%_git*} _ver=${pkgver%_git*}
pkgrel=13 pkgrel=14
pkgdesc="Tool to generate initramfs images for Alpine" pkgdesc="Tool to generate initramfs images for Alpine"
url="https://git.alpinelinux.org/cgit/mkinitfs" url="https://git.alpinelinux.org/cgit/mkinitfs"
arch="all" arch="all"

View File

@ -18,7 +18,7 @@ done
# extlinux will use path relative partition, so if /boot is on a # extlinux will use path relative partition, so if /boot is on a
# separate partition we want /boot/<kernel> resolve to /<kernel> # separate partition we want /boot/<kernel> resolve to /<kernel>
if ! [ -e /boot/boot ]; then if ! [ -e /boot/boot ]; then
ln -sf / /boot/boot ln -sf . /boot/boot
fi fi
# cleanup unused initramfs # cleanup unused initramfs