Bug#855370: dracut-core: Check installation path of aufs-dkms in module-setup.sh

2017-02-19 Thread Thomas Lange
> On Sat, 18 Feb 2017 22:38:53 +0100, John Paul Adrian Glaubitz 
>  said:

> Replacing aufs with overlayfs is currently *not* possible as overlayfs
> still doesn't support NFS as a lowerdir [1]. Thus, trying to create a
As far as I read [1] it's not possible to use overlayfs as upper fs. I
have a working stretch setup, so overlayfs works using a 4.x kernel
and overlayfs. I force my FAI server to export the nfsroot via NFS
v3, and this works. IIRC there's a problem with exporting the nfsroot
using NFS v4.


-- 
regards Thomas



Bug#855370: dracut-core: Check installation path of aufs-dkms in module-setup.sh

2017-02-18 Thread John Paul Adrian Glaubitz
Hi Thomas!

> I thought aufs was replaced by overlayfs. But you are right, there's
> still aufs in the dkms package.

Replacing aufs with overlayfs is currently *not* possible as overlayfs
still doesn't support NFS as a lowerdir [1]. Thus, trying to create a
union mount with a read-only NFS filesystem will not work.

If installing through FAI from an NFSROOT should work in Stretch, this
patch therefore *must* be merged and users have to use aufs instead
of overlayfs.

Let's get this patch merged and a file an unblock request for Stretch.

Adrian

> [1] https://www.kernel.org/doc/Documentation/filesystems/overlayfs.txt

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Bug#855370: dracut-core: Check installation path of aufs-dkms in module-setup.sh

2017-02-17 Thread Jan Luca Naumann
Hey,

I have packaged the module some time ago since overlayfs has still
problems with NFS-roots[1] which is as far as I know bad for e.g. FAI.

Best regards,
Jan

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832451#15

Am 17.02.2017 um 11:52 schrieb Thomas Lange:
> > I forgot to note that the aufs-module can be found in the package
> > aufs-dkms (source: aufs) in Debian stretch+.
> I thought aufs was replaced by overlayfs. But you are right, there's
> still aufs in the dkms package.
> 



Bug#855370: dracut-core: Check installation path of aufs-dkms in module-setup.sh

2017-02-17 Thread Thomas Lange
> I forgot to note that the aufs-module can be found in the package
> aufs-dkms (source: aufs) in Debian stretch+.
I thought aufs was replaced by overlayfs. But you are right, there's
still aufs in the dkms package.

-- 
regards Thomas



Bug#855370: dracut-core: Check installation path of aufs-dkms in module-setup.sh

2017-02-17 Thread Jan Luca Naumann
On Fri, 17 Feb 2017 09:46:26 +0100 Jan Luca Naumann
 wrote:
> At the moment the module-setup.sh script of the aufs-module included in the
> Debian package do not check if there is an aufs module installed in the
> DKMS path.
> 
> The attached patch adds the feature that the check() function of the setup
> file also controls the DKMS location and thus adds support for the aufs-dkms
> package.
> 
> Best regards,
> Jan

I forgot to note that the aufs-module can be found in the package
aufs-dkms (source: aufs) in Debian stretch+.

Best regards,
Jan



Bug#855370: dracut-core: Check installation path of aufs-dkms in module-setup.sh

2017-02-17 Thread Jan Luca Naumann
Package: dracut-core
Version: 044+241-1
Severity: important
Tags: patch

At the moment the module-setup.sh script of the aufs-module included in the
Debian package do not check if there is an aufs module installed in the
DKMS path.

The attached patch adds the feature that the check() function of the setup
file also controls the DKMS location and thus adds support for the aufs-dkms
package.

Best regards,
Jan
diff --git a/debian/90aufs/module-setup.sh b/debian/90aufs/module-setup.sh
index 56d24580..9987cc87 100755
--- a/debian/90aufs/module-setup.sh
+++ b/debian/90aufs/module-setup.sh
@@ -2,7 +2,7 @@
 
 check() {
 # do not add modules if the kernel does not have aufs support
-[ -d /lib/modules/$kernel/kernel/fs/aufs ] || return 1
+[ -d /lib/modules/$kernel/kernel/fs/aufs ] || [ -f 
/lib/modules/$kernel/updates/dkms/aufs.ko ] || return 1
 }
 
 depends() {