Package: dracut-network
Version: 020-2
Severity: normal

Dear Maintainer,

I am using dracut because I make automatic debian installation through FAI 
(fai-server).
FAI generates a minimal debian (debootstrap), exported via NFS for PXE booting.
FAI wants this scenario : NFS read-only + writable tmpfs + AUFS
When I boot a physicial or a virtual machine with PXE, the debian correctly 
boots, but I have :

# ls -ld /
drwxrwxrwt  32 root root 260 Feb 3 17:53 /

The AUFS mont is done by dracut between a 0755 NFS mount point and a 1777 tmpfs.
The resulting merged filesystem keeps 1777. This is not usual nor safe for a 
root.
I expect 0755 for my root.

This cause some proprietary MegaRAID cli to complain because it checks if any 
path
component is writable on the path of an important file and the first test : "is 
/ writable" ? yes.

FAI does not seem to change default config values in dracut for this aspects.
I have successfully circumvent this problem by altering the tmpfs creation :

--- ./usr/lib/dracut/modules.d/90aufs/aufs-mount.sh     2012-11-08 
14:54:14.000000000 +0100
+++ ./usr/lib/dracut/modules.d/90aufs/aufs-mount.sh.new 2014-02-03 
18:33:35.827657399 +0100
@@ -23,7 +23,7 @@
 mount --move $NEWROOT /live/image
 
 mkdir /cow
-mount -n -t tmpfs tmpfs /cow
+mount -n -t tmpfs -o mode=0755 tmpfs /cow
 
 mount -t aufs -o noatime,noxino,dirs=/cow=rw:/live/image=rr aufs $NEWROOT

But I'm not sure that this is the right place to do that. And may be it could 
be tunable by the end-user.


-- System Information:
Debian Release: 7.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dracut-network depends on:
ii  dracut           020-2
ii  iputils-arping   3:20101006-1+b1
ii  isc-dhcp-client  4.2.2.dfsg.1-5+deb70u6

Versions of packages dracut-network recommends:
pn  nbd-client  <none>
ii  nfs-common  1:1.2.6-4
pn  open-iscsi  <none>

dracut-network suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to