diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-11-05 15:13:04 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-11-05 16:33:01 +0100 |
commit | bf7f7ef2699bdf89222427fe16a34707fa394065 (patch) | |
tree | c07af5fb16008d7b4e361730fbded52ab74f7b1b | |
parent | e3884fbde941e42651d3a137bd20e9e09660714c (diff) | |
download | alpine_aports-bf7f7ef2699bdf89222427fe16a34707fa394065.tar.bz2 alpine_aports-bf7f7ef2699bdf89222427fe16a34707fa394065.tar.xz alpine_aports-bf7f7ef2699bdf89222427fe16a34707fa394065.zip |
main/alpine-conf: use UUID on new boot usbs
-rw-r--r-- | main/alpine-conf/0001-setup-bootable-use-UUID-on-new-USBs.patch | 25 | ||||
-rw-r--r-- | main/alpine-conf/APKBUILD | 12 |
2 files changed, 33 insertions, 4 deletions
diff --git a/main/alpine-conf/0001-setup-bootable-use-UUID-on-new-USBs.patch b/main/alpine-conf/0001-setup-bootable-use-UUID-on-new-USBs.patch new file mode 100644 index 0000000000..82c8a49736 --- /dev/null +++ b/main/alpine-conf/0001-setup-bootable-use-UUID-on-new-USBs.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 6df463ada5052a39b32a443b276b489c431a115f Mon Sep 17 00:00:00 2001 | ||
2 | From: Natanael Copa <ncopa@alpinelinux.org> | ||
3 | Date: Tue, 5 Nov 2013 14:15:44 +0100 | ||
4 | Subject: [PATCH] setup-bootable: use UUID on new USBs | ||
5 | |||
6 | --- | ||
7 | setup-bootable.in | 2 +- | ||
8 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
9 | |||
10 | diff --git a/setup-bootable.in b/setup-bootable.in | ||
11 | index 18e41bf..2df03e6 100644 | ||
12 | --- a/setup-bootable.in | ||
13 | +++ b/setup-bootable.in | ||
14 | @@ -256,7 +256,7 @@ for i in $tomove; do | ||
15 | mv "$destdir"/.new/$i "$destdir"/ || die "Failed to move $destdir/.new/ to $destdir" | ||
16 | done | ||
17 | |||
18 | -if [ -n "$replace_alpine_dev" ] && [ -n "$UUID" ]; then | ||
19 | +if [ -n "$replace_alpine_dev" -o -z "$upgrade" ] && [ -n "$UUID" ]; then | ||
20 | sed -i -e "s/alpine_dev=[^ \t:]\+/alpine_dev=UUID=$UUID/" \ | ||
21 | "$destdir"/syslinux.cfg | ||
22 | fi | ||
23 | -- | ||
24 | 1.8.4.2 | ||
25 | |||
diff --git a/main/alpine-conf/APKBUILD b/main/alpine-conf/APKBUILD index a0811a7c87..98c9a37a20 100644 --- a/main/alpine-conf/APKBUILD +++ b/main/alpine-conf/APKBUILD | |||
@@ -1,13 +1,14 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=alpine-conf | 2 | pkgname=alpine-conf |
3 | pkgver=2.14.0 | 3 | pkgver=2.14.0 |
4 | pkgrel=1 | 4 | pkgrel=2 |
5 | pkgdesc="Alpine configuration management scripts" | 5 | pkgdesc="Alpine configuration management scripts" |
6 | url=http://git.alpinelinux.org/cgit/$pkgname | 6 | url=http://git.alpinelinux.org/cgit/$pkgname |
7 | arch="all" | 7 | arch="all" |
8 | license="GPL2" | 8 | license="GPL2" |
9 | depends="openrc" | 9 | depends="openrc" |
10 | source="http://dev.alpinelinux.org/archive/alpine-conf/alpine-conf-$pkgver.tar.xz | 10 | source="http://dev.alpinelinux.org/archive/alpine-conf/alpine-conf-$pkgver.tar.xz |
11 | 0001-setup-bootable-use-UUID-on-new-USBs.patch | ||
11 | " | 12 | " |
12 | 13 | ||
13 | _builddir="$srcdir"/$pkgname-$pkgver | 14 | _builddir="$srcdir"/$pkgname-$pkgver |
@@ -34,6 +35,9 @@ package() { | |||
34 | done | 35 | done |
35 | } | 36 | } |
36 | 37 | ||
37 | md5sums="94b82dd9d7a2c63aa6909238da3b44b3 alpine-conf-2.14.0.tar.xz" | 38 | md5sums="94b82dd9d7a2c63aa6909238da3b44b3 alpine-conf-2.14.0.tar.xz |
38 | sha256sums="14dc81845b16ffcbb39af9d0c5aeffab68166eec154c822b7c1c9c0697823d5b alpine-conf-2.14.0.tar.xz" | 39 | c0eeeebfb67b757c954a2f5100461a7b 0001-setup-bootable-use-UUID-on-new-USBs.patch" |
39 | sha512sums="39aa74e676221475ce088d82b134563c3dd04a69e90919089d3876b6a4715f6df58aa156352a40d9f817414cbdb603350a3e9c15914fb254a24d8cef4acd6581 alpine-conf-2.14.0.tar.xz" | 40 | sha256sums="14dc81845b16ffcbb39af9d0c5aeffab68166eec154c822b7c1c9c0697823d5b alpine-conf-2.14.0.tar.xz |
41 | 754a59868f069c4eb2321034f00539ea02e734ede1a483b9c9ec5360c788f8c1 0001-setup-bootable-use-UUID-on-new-USBs.patch" | ||
42 | sha512sums="39aa74e676221475ce088d82b134563c3dd04a69e90919089d3876b6a4715f6df58aa156352a40d9f817414cbdb603350a3e9c15914fb254a24d8cef4acd6581 alpine-conf-2.14.0.tar.xz | ||
43 | 3b2d2fb754421f7dd4c45c7212544c2f34587da9da10e777ee9de153dd77e70d016bf8b270d72dd6ee8299c99a17f2969bddef586afbdcac13b4d76c87bcc35e 0001-setup-bootable-use-UUID-on-new-USBs.patch" | ||