Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
677
Issues
677
List
Boards
Labels
Service Desk
Milestones
Merge Requests
216
Merge Requests
216
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
6c09d61f
Commit
6c09d61f
authored
Jan 11, 2010
by
Natanael Copa
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main/alpine-conf: bugfix for lbu
lbu thought /media/usb was mounted when it was /media/usbdisk.
parent
67bd5d5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
main/alpine-conf/0001-lbu-fix-the-way-we-check-if-a-dir-is-mounted-or-not.patch
...lbu-fix-the-way-we-check-if-a-dir-is-mounted-or-not.patch
+27
-0
main/alpine-conf/APKBUILD
main/alpine-conf/APKBUILD
+5
-2
No files found.
main/alpine-conf/0001-lbu-fix-the-way-we-check-if-a-dir-is-mounted-or-not.patch
0 → 100644
View file @
6c09d61f
From dedf250425d3cb082cae9f0005d94fbc01e1e953 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Mon, 11 Jan 2010 20:56:02 +0000
Subject: [PATCH] lbu: fix the way we check if a dir is mounted or not
this works around an issue when lbu wrongly assumes /media/usb is
mounted when /media/usbdisk is.
---
lbu.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lbu.in b/lbu.in
index 7709567..da8ba86 100644
--- a/lbu.in
+++ b/lbu.in
@@ -65,7 +65,7 @@
exit_clean() {
}
mount_once() {
- if ! grep $1 /proc/mounts >/dev/null; then
+ if awk "\$2 == \"$1\" {exit 1}" /proc/mounts; then
mount $1 && UMOUNT_LIST="$1 $UMOUNT_LIST"
fi
}
--
1.6.6
main/alpine-conf/APKBUILD
View file @
6c09d61f
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
alpine-conf
pkgver
=
2.0
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"Alpine configuration management scripts"
url
=
http://git.alpinelinux.org/cgit/
$pkgname
depends
=
"openrc"
source
=
"http://git.alpinelinux.org/cgit/
$pkgname
/snapshot/
$pkgname
-
$pkgver
.tar.bz2
0001-lbu-fix-the-way-we-check-if-a-dir-is-mounted-or-not.patch
"
license
=
"GPL-2"
build
()
{
cd
"
$srcdir
/
$pkgname
-
$pkgver
"
patch
-p1
-i
"
$srcdir
"
/0001-lbu-fix-the-way-we-check-if-a-dir-is-mounted-or-not.patch
||
return
1
make
||
return
1
make
install
PREFIX
=
DESTDIR
=
"
$pkgdir
"
...
...
@@ -18,4 +20,5 @@ build() {
ln
-s
lbu
"
$pkgdir
"
/sbin/lbu_
$i
done
}
md5sums
=
"0aa966ef854de61b375d7e08bdb105b4 alpine-conf-2.0.tar.bz2"
md5sums
=
"0aa966ef854de61b375d7e08bdb105b4 alpine-conf-2.0.tar.bz2
3b520ebbf30e4e5c2ff76f14a1e2d8f2 0001-lbu-fix-the-way-we-check-if-a-dir-is-mounted-or-not.patch"
Natanael Copa
@ncopa
mentioned in commit
775a474d
·
Jul 12, 2019
mentioned in commit
775a474d
mentioned in commit 775a474d4ab2450e7ff4014d3f1482633d724bf7
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment