diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-30 13:22:01 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-30 13:22:01 +0000 |
commit | ac3f9c9c44f92f3c02125147d0218b143e3ac461 (patch) | |
tree | 8a652c877ab557e8fb4ff524171c6e19cc123ee6 | |
parent | 78a267a967c59f5399c3bfd43273bd03d6f44b80 (diff) | |
download | alpine_aports-1.9.0.tar.bz2 alpine_aports-1.9.0.tar.xz alpine_aports-1.9.0.zip |
main/alpine-conf: another setup-disk fixv1.9.0
-rw-r--r-- | main/alpine-conf/0001-setup-disk-check-if-the-devce-itself-is-mounted.patch | 25 | ||||
-rw-r--r-- | main/alpine-conf/APKBUILD | 7 |
2 files changed, 30 insertions, 2 deletions
diff --git a/main/alpine-conf/0001-setup-disk-check-if-the-devce-itself-is-mounted.patch b/main/alpine-conf/0001-setup-disk-check-if-the-devce-itself-is-mounted.patch new file mode 100644 index 0000000000..28050509f8 --- /dev/null +++ b/main/alpine-conf/0001-setup-disk-check-if-the-devce-itself-is-mounted.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 841c6823ac8a3f1e17af457722c8b7ea2abf8cb4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Natanael Copa <ncopa@alpinelinux.org> | ||
3 | Date: Wed, 30 Sep 2009 12:57:59 +0000 | ||
4 | Subject: [PATCH] setup-disk: check if the devce itself is mounted | ||
5 | |||
6 | this will filter out loop0 device | ||
7 | --- | ||
8 | setup-disk.in | 1 + | ||
9 | 1 files changed, 1 insertions(+), 0 deletions(-) | ||
10 | |||
11 | diff --git a/setup-disk.in b/setup-disk.in | ||
12 | index 33cc868..c11d20c 100644 | ||
13 | --- a/setup-disk.in | ||
14 | +++ b/setup-disk.in | ||
15 | @@ -149,6 +149,7 @@ has_mounted_part() { | ||
16 | # parse /proc/mounts for mounted devices | ||
17 | for p in $(awk '$1 ~ /^\/dev\// {gsub("/dev/", "", $1); print $1}' \ | ||
18 | /proc/mounts); do | ||
19 | + [ "$p" = "$1" ] && return 0 | ||
20 | [ -e /sys/block/$1/$p ] && return 0 | ||
21 | done | ||
22 | return 1 | ||
23 | -- | ||
24 | 1.6.4.4 | ||
25 | |||
diff --git a/main/alpine-conf/APKBUILD b/main/alpine-conf/APKBUILD index 18aa74a5b6..485805e28e 100644 --- a/main/alpine-conf/APKBUILD +++ b/main/alpine-conf/APKBUILD | |||
@@ -1,16 +1,18 @@ | |||
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.0_rc7 | 3 | pkgver=2.0_rc7 |
4 | pkgrel=0 | 4 | pkgrel=1 |
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 | depends="openrc" | 7 | depends="openrc" |
8 | source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 | 8 | source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 |
9 | 0001-setup-disk-check-if-the-devce-itself-is-mounted.patch | ||
9 | " | 10 | " |
10 | license="GPL-2" | 11 | license="GPL-2" |
11 | 12 | ||
12 | build() { | 13 | build() { |
13 | cd "$srcdir/$pkgname-$pkgver" | 14 | cd "$srcdir/$pkgname-$pkgver" |
15 | patch -p1 -i ../0001-setup-disk-check-if-the-devce-itself-is-mounted.patch || return | ||
14 | 16 | ||
15 | make || return 1 | 17 | make || return 1 |
16 | make install PREFIX= DESTDIR="$pkgdir" | 18 | make install PREFIX= DESTDIR="$pkgdir" |
@@ -18,4 +20,5 @@ build() { | |||
18 | ln -s lbu "$pkgdir"/sbin/lbu_$i | 20 | ln -s lbu "$pkgdir"/sbin/lbu_$i |
19 | done | 21 | done |
20 | } | 22 | } |
21 | md5sums="8b44c02500d646dd64368904762d236e alpine-conf-2.0_rc7.tar.bz2" | 23 | md5sums="8b44c02500d646dd64368904762d236e alpine-conf-2.0_rc7.tar.bz2 |
24 | f51a1948ddf5f035e9e6509e57000ccd 0001-setup-disk-check-if-the-devce-itself-is-mounted.patch" | ||