OpenRC: always overwrite /etc/mtab (via mtab service).

This commit is contained in:
Juan RP 2011-06-26 08:28:56 +02:00
parent 4d086d2b1d
commit 87faf3f80f
2 changed files with 2 additions and 2 deletions

View File

@ -294,5 +294,5 @@ xbps changes:
- # Remove stale backups - # Remove stale backups
- rm -f /etc/mtab~ /etc/mtab~~ - rm -f /etc/mtab~ /etc/mtab~~
- eend 0 - eend 0
+ [ ! -h /etc/mtab ] && ln -sf /proc/self/mounts /etc/mtab + ln -sf /proc/self/mounts /etc/mtab
} }

View File

@ -1,7 +1,7 @@
# Template file for 'OpenRC' # Template file for 'OpenRC'
pkgname=OpenRC pkgname=OpenRC
version=20110211 version=20110211
revision=11 revision=12
wrksrc=openrc-${version} wrksrc=openrc-${version}
distfiles="http://xbps.nopcode.org/distfiles/openrc-$version.tar.bz2" distfiles="http://xbps.nopcode.org/distfiles/openrc-$version.tar.bz2"
build_style=custom-install build_style=custom-install