FS#12593 - Testing/aufs-utils 20081226-1 no /etc/default/aufs errors
Attached to Project:
Arch Linux
Opened by Carbon (carbonjiao) - Sunday, 28 December 2008, 05:52 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 29 December 2008, 19:39 GMT
Opened by Carbon (carbonjiao) - Sunday, 28 December 2008, 05:52 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 29 December 2008, 19:39 GMT
|
Details
Description:
After install aufs-utils-20081226-1 from testing when I upgraded my kernel to 2.6.28, erros occured as below when I use mount.aufs: /sbin/mount.aufs line 37 /etc/default/aufs no such file or directory.... I checked the PKGBUILD from http://repos.archlinux.org/viewvc.cgi/aufs-utils/repos/testing-i686/PKGBUILD?revision=22440, Oh, there is no code to install /etc/default/aufs... Solution: Add " install -D -m644 util/etc_default_aufs $startdir/pkg/etc/default/aufs || return 1" to the PKGBUILD file after the line 43 as below, then all are OK! # $Id$ # Contributor: Paul Mattal <paul@mattal.com> # Maintainer: Paul Mattal <pjmattal@elys.com> pkgname=aufs-utils pkgver=20081226 pkgrel=1 _kernver='2.6.28-ARCH' pkgdesc="Another Unionfs Implementation that supports NFS branches" arch=('i686' 'x86_64') url="http://aufs.sourceforge.net/" license=('GPL2') depends=('glibc') source=(ftp://ftp.archlinux.org/other/aufs/aufs-$pkgver.tar.bz2) md5sums=('e855ed9edc16953028f22cae393690de') build() { cd $startdir/src/aufs || return 1 # Fix TMPFS_MAGIC error sed 's|-le 26|-le 27|g' -i fs/aufs25/Makefile || return 1 # disable debug, broken in 2.6.28! sed -i 's|CONFIG_AUFS_DEBUG = y|CONFIG_AUFS_DEBUG = |' \ local.mk || return 1 # configure for NFS by: # 1) configure local.mk to use FILP and LHASH sed -i 's|CONFIG_AUFS_PUT_FILP_PATCH =|CONFIG_AUFS_PUT_FILP_PATCH = y|' \ local.mk || return 1 sed -i 's|CONFIG_AUFS_LHASH_PATCH =|CONFIG_AUFS_LHASH_PATCH = y|' \ local.mk || return 1 # 2) configure local.mk NOT to use FAKE_DM sed -i 's|CONFIG_AUFS_FAKE_DM = y|CONFIG_AUFS_FAKE_DM = |' \ local.mk || return 1 # build make KDIR=/usr/src/linux-$_kernver/ -f local.mk || return 1 # install install -D -m755 util/aufind.sh $startdir/pkg/usr/bin/aufind.sh || return 1 install -D -m755 util/aulchown $startdir/pkg/usr/bin/aulchown || return 1 install -D -m755 util/auplink $startdir/pkg/usr/bin/auplink || return 1 install -D -m755 util/mount.aufs $startdir/pkg/sbin/mount.aufs || return 1 install -D -m755 util/umount.aufs $startdir/pkg/sbin/umount.aufs || return 1 install -D -m644 util/etc_default_aufs $startdir/pkg/etc/default/aufs || return 1 } # vim:set ts=2 sw=2 et: |
This task depends upon