[Nix-dev] aufs & kernel 2.6.28.9
Tony White
tonywhite100 at googlemail.com
Tue Apr 14 16:41:25 CEST 2009
Hi,
I trying to build a rescue cd with 2.6.28.9 so that I can try to make
ext4fs root among other things but I've run into a problem that seems
a little difficult to fix regarding aufs.
building fs/aufs25/aufs.ko
fs/aufs25
make CONFIG_AUFS=m AUFS_EXTRA_CFLAGS="-I
/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/include
-DCONFIG_AUFS_FAKE_DM -DCONFIG_AUFS_BRANCH_MAX_127
-DCONFIG_AUFS_RR_SQUASHFS -DCONFIG_AUFS_BR_XFS
-DCONFIG_AUFS_MAGIC_SYSRQ -DCONFIG_AUFS_DEBUG -DCONFIG_AUFS_LOCAL
-DCONFIG_AUFS_SYSAUFS -DCONFIG_AUFS_MODULE -UCONFIG_AUFS
-DLKTRHidePrePath=\\\"/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25\\\""
-C /tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/linux-2.6.28.9
M=/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25
modules
make[1]: Entering directory
`/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/linux-2.6.28.9'
building include/config/auto.conf
building crmodverdir
building /tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/linux-2.6.28.9/Module.symvers
building _module_/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25
building /tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25/module.o
CC [M] /tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25/module.o
In file included from
/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25/dentry.h:35,
from
/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25/aufs.h:40,
from
/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25/module.c:26:
/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25/vfsub.h:
In function 'do_vfsub_permission':
/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25/vfsub.h:201:
error: implicit declaration of function 'permission'
In file included from
/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25/aufs.h:44,
from
/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25/module.c:26:
/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25/inode.h:
In function 'au_security_inode_permission':
/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25/inode.h:118:
error: too many arguments to function 'security_inode_permission'
/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25/module.c:181:2:
warning: #warning CONFIG_AUFS_SYSAUFS is unnecessary for linux-2.6.25
and later.
make[2]: *** [/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25/module.o]
Error 1
make[1]: *** [_module_/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/fs/aufs25]
Error 2
make[1]: Leaving directory
`/tmp/nix-build-9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv-0/aufs-20080508/linux-2.6.28.9'
make: *** [fs/aufs25/aufs.ko] Error 2
builder for `/nix/store/9ssjx222yc4wfsd3x6v05q2g41flrq16-aufs-20080508-2.6.28.9.drv'
failed with exit code 2
building path(s)
`/nix/store/9c00l6f3lzj6wxgfx0j00xfvkyky8hi8-sshfs-fuse-2.1'
cannot build derivation
`/nix/store/h0d7i5rl4rss84xlsym33z032g7jv2nw-kernel-modules.drv': 1
dependencies couldn't be built
cannot build derivation
`/nix/store/1pnpqfby7543hwsmnkg5cj1wh3dibbcz-modprobe.drv': 1
dependencies couldn't be built
cannot build derivation
`/nix/store/xsw0v313g81l489x7xfmxi13i5zsv25v-bashrc.sh.drv': 1
dependencies couldn't be built
cannot build derivation
`/nix/store/riav75lpxc2y0cs26r78drmmxqppywbj-kernel-modules-shrunk.drv':
1 dependencies couldn't be built
cannot build derivation
`/nix/store/idbichsm1nv51m2prmfj24piqs28d3bv-etc.drv': 1 dependencies
couldn't be built
cannot build derivation
`/nix/store/r2w48gsyhj6vhzin3x8cy62fr2cax5z2-activate-configuration.sh.drv':
1 dependencies couldn't be built
cannot build derivation
`/nix/store/2iw1wyswqdrvr0dmdnrliaa5dla1mc1x-boot-stage-1-init.sh.drv':
1 dependencies couldn't be built
cannot build derivation
`/nix/store/9j9bvizlyr6ikgv9p6smhs8nbljza2cc-system.drv': 1
dependencies couldn't be built
cannot build derivation
`/nix/store/jsgs5sn01w21fn2jykalfzlpa8i8akrm-iso9660-image.drv': 1
dependencies couldn't be built
error: build of
`/nix/store/jsgs5sn01w21fn2jykalfzlpa8i8akrm-iso9660-image.drv' failed
So I can see it's an aufs problem, I'm guessing it could do with a
newer version. However I goto download :
http://nixos.org/tarballs/aufs-20080508.tar.bz2
To inspect the archive layout and it's a different to the layout to :
http://sourceforge.net/project/downloading.php?group_id=167503&filename=aufs2-base5.tar.bz2
Which is the latest current stable version, So my questions are :
Is aufs absolutely a requirement of the rescue cd? I know I can
disable it to save time but is it worth it?
Is editing the expression to use the sourceforge archive the correct
method of resolution?
Is the aufs-20080508.tar.bz2 the same thing, Just a slightly different?
If anyone knows?
Thanks,
Tony
More information about the nix-dev
mailing list