aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel NĂ©ri <dne+alpine@mayonnaise.net>2020-05-18 14:39:16 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2020-05-29 09:59:00 +0000
commitd924c05aa4f8e643279bee47ba55d1d04b6a1097 (patch)
tree9986e9a4abddf26cddc792efaf9f3a044d25831a
parenteec7e1ea44833de66029deae23def8544907c6c2 (diff)
downloadalpine_aports-d924c05aa4f8e643279bee47ba55d1d04b6a1097.tar.bz2
alpine_aports-d924c05aa4f8e643279bee47ba55d1d04b6a1097.tar.xz
alpine_aports-d924c05aa4f8e643279bee47ba55d1d04b6a1097.zip
main/alpine-conf: avoid unwanted syslinux for setup-disk on mounted root
Upstream bug: alpine-conf#10455.
-rw-r--r--main/alpine-conf/0001-setup-disk-don-t-add-syslinux-package-for-mounted-ro.patch26
-rw-r--r--main/alpine-conf/APKBUILD9
2 files changed, 32 insertions, 3 deletions
diff --git a/main/alpine-conf/0001-setup-disk-don-t-add-syslinux-package-for-mounted-ro.patch b/main/alpine-conf/0001-setup-disk-don-t-add-syslinux-package-for-mounted-ro.patch
new file mode 100644
index 0000000000..d7d22b0879
--- /dev/null
+++ b/main/alpine-conf/0001-setup-disk-don-t-add-syslinux-package-for-mounted-ro.patch
@@ -0,0 +1,26 @@
1From 43e4d0b3d7441611a58ba89dfa3ae69269c16e52 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Daniel=20N=C3=A9ri?= <dne+alpine@mayonnaise.net>
3Date: Sat, 2 May 2020 22:02:51 +0000
4Subject: [PATCH] setup-disk: don't add syslinux package for mounted root
5 install unless requested
6
7---
8 setup-disk.in | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/setup-disk.in b/setup-disk.in
12index 7a3a2a3..86136de 100644
13--- a/setup-disk.in
14+++ b/setup-disk.in
15@@ -1212,7 +1212,7 @@ shift $(( $OPTIND - 1))
16
17 if [ -d "$1" ]; then
18 # install to given mounted root
19- apk add --quiet syslinux
20+ [ "$BOOTLOADER" = "syslinux" ] && apk add --quiet syslinux
21 install_mounted_root "${1%/}" \
22 && echo "You might need fix the MBR to be able to boot" >&2
23 exit $?
24--
252.26.2
26
diff --git a/main/alpine-conf/APKBUILD b/main/alpine-conf/APKBUILD
index 39424ad5ae..ddf59c2720 100644
--- a/main/alpine-conf/APKBUILD
+++ b/main/alpine-conf/APKBUILD
@@ -1,13 +1,15 @@
1# Maintainer: Natanael Copa <ncopa@alpinelinux.org> 1# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
2pkgname=alpine-conf 2pkgname=alpine-conf
3pkgver=3.9.0 3pkgver=3.9.0
4pkgrel=0 4pkgrel=1
5pkgdesc="Alpine configuration management scripts" 5pkgdesc="Alpine configuration management scripts"
6url="https://git.alpinelinux.org/alpine-conf/about" 6url="https://git.alpinelinux.org/alpine-conf/about"
7arch="all" 7arch="all"
8license="MIT" 8license="MIT"
9depends="openrc>=0.24.1-r6 busybox>=1.26.1-r3" 9depends="openrc>=0.24.1-r6 busybox>=1.26.1-r3"
10source="https://dev.alpinelinux.org/archive/alpine-conf/alpine-conf-$pkgver.tar.bz2" 10source="https://dev.alpinelinux.org/archive/alpine-conf/alpine-conf-$pkgver.tar.bz2
11 0001-setup-disk-don-t-add-syslinux-package-for-mounted-ro.patch
12 "
11 13
12builddir="$srcdir"/$pkgname-$pkgver 14builddir="$srcdir"/$pkgname-$pkgver
13build() { 15build() {
@@ -23,4 +25,5 @@ package() {
23 done 25 done
24} 26}
25 27
26sha512sums="c7f7ba8341d7c84aa85f521624de511acbea42337377693099156750462a380e0116c9bde2d3a1595c8942c024f1421e7106566c4c0415c734513ddf5ec08cb2 alpine-conf-3.9.0.tar.bz2" 28sha512sums="c7f7ba8341d7c84aa85f521624de511acbea42337377693099156750462a380e0116c9bde2d3a1595c8942c024f1421e7106566c4c0415c734513ddf5ec08cb2 alpine-conf-3.9.0.tar.bz2
297f29d2993d03d55784c60e87ea8d357744786f7de07f6946ffec24446004e62711b801a8fc5d13e36c2d72abfcaa39f97ab6c7126c70b12601aed851dd93a168 0001-setup-disk-don-t-add-syslinux-package-for-mounted-ro.patch"