[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#736519: aufs: nfsroot+aufs gives selective permission(-s) problem



Package: src:linux
Version: 3.2.51-1
Severity: normal
File: aufs

Dear Maintainer, I have a small issue of using aufs module.

I use readonly NFSROOT with tmpfs overlay for diskless workstations.


Issue I faced with is that users (whose supplementary groups list contains 'fuse') can't exec /bin/fusermount (permission denied).
And the second issue - file is not found by which command.

Both of them disappear if file is being touch-ed.
Attachments contain are obtained usin following commands: 
 a.dunaev $ strace -o which-trace.pre.txt which fusermount
 a.dunaev $ sudo touch /bin/fusermount
 a.dunaev $ strace -o which-trace.post.txt which fusermount

I've using customized initramfs. Specifically I've added nfs-bottom script (see attachment).



-- Package-specific info:
** Version:
Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.51-1

** Command line:
root=/dev/nfs ro ip=dhcp nfsroot=172.17.8.1:/srv/nfs/deb7raw initrd=/BOOT_OS/deb7raw/initrd.img ipv6.disable=1 BOOT_IMAGE=/BOOT_OS/deb7raw/vmlinuz 

** Tainted: C (1024)
 * Module from drivers/staging has been loaded.

** Kernel log:
[    5.362344] scsi1 : ata_piix
[    5.363022] ata1: SATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xf000 irq 14
[    5.363061] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xf008 irq 15
[    5.380224] iTCO_vendor_support: vendor-support=0
[    5.386267] Error: Driver 'pcspkr' is already registered, aborting...
[    5.407928] snd_hda_intel 0000:00:1b.0: irq 44 for MSI/MSI-X
[    5.407959] snd_hda_intel 0000:00:1b.0: setting latency timer to 64
[    5.528367] ata2.00: ATAPI: Optiarc DVD RW AD-7170A, 1.03, max UDMA/66
[    5.535815] ata1.00: HPA detected: current 312579695, native 312581808
[    5.535863] ata1.00: ATA-7: WDC WD1600AAJS-22PSA0, 05.06H05, max UDMA/133
[    5.535908] ata1.00: 312579695 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    5.538266] ata2.00: configured for UDMA/66
[    5.544459] ata1.00: configured for UDMA/133
[    5.544662] scsi 0:0:0:0: Direct-Access     ATA      WDC WD1600AAJS-2 05.0 PQ: 0 ANSI: 5
[    5.545874] scsi 1:0:0:0: CD-ROM            Optiarc  DVD RW AD-7170A  1.03 PQ: 0 ANSI: 5
[    5.547316] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input4
[    5.552276] snd_hda_intel 0000:01:00.1: irq 45 for MSI/MSI-X
[    5.552313] snd_hda_intel 0000:01:00.1: setting latency timer to 64
[    5.591588] [drm] Initialized drm 1.1.0 20060810
[    5.596265] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.07
[    5.596516] iTCO_wdt: Found a ICH7 or ICH7R TCO device (Version=2, TCOBASE=0x0460)
[    5.597355] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[    5.598811] HDMI status: Codec=0 Pin=3 Presence_Detect=0 ELD_Valid=0
[    5.599046] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input5
[    5.606666] leds_ss4200: no LED devices found
[    5.763121] [drm] radeon defaulting to kernel modesetting.
[    5.763163] [drm] radeon kernel modesetting enabled.
[    5.768879] sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    5.768932] cdrom: Uniform CD-ROM driver Revision: 3.20
[    5.769294] sr 1:0:0:0: Attached scsi CD-ROM sr0
[    5.774144] radeon 0000:01:00.0: setting latency timer to 64
[    5.774157] [drm] initializing kernel modesetting (RV610 0x1002:0x94C3 0x1458:0x216A).
[    5.774227] [drm] register mmio base: 0xE1000000
[    5.774266] [drm] register mmio size: 65536
[    5.774573] ATOM BIOS: GV
[    5.774632] radeon 0000:01:00.0: VRAM: 256M 0x0000000000000000 - 0x000000000FFFFFFF (256M used)
[    5.774685] radeon 0000:01:00.0: GTT: 512M 0x0000000010000000 - 0x000000002FFFFFFF
[    5.774691] sd 0:0:0:0: [sda] 312579695 512-byte logical blocks: (160 GB/149 GiB)
[    5.774749] sd 0:0:0:0: [sda] Write Protect is off
[    5.774752] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    5.774776] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.776266] [drm] Detected VRAM RAM=256M, BAR=256M
[    5.776313] [drm] RAM width 64bits DDR
[    5.776407] [TTM] Zone  kernel: Available graphics memory: 513450 kiB
[    5.776449] [TTM] Initializing pool allocator
[    5.776492] [TTM] Initializing DMA pool allocator
[    5.776554] [drm] radeon: 256M of VRAM memory ready
[    5.776593] [drm] radeon: 512M of GTT memory ready.
[    5.776652] [drm] GART: num cpu pages 131072, num gpu pages 131072
[    5.777464] [drm] radeon: ib pool ready.
[    5.777656] [drm] Loading RV610 Microcode
[    5.782404] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.782614] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    5.789571] platform radeon_cp.0: firmware: agent loaded radeon/RV610_pfp.bin into memory
[    5.796794] platform radeon_cp.0: firmware: agent loaded radeon/RV610_me.bin into memory
[    5.801781] platform radeon_cp.0: firmware: agent loaded radeon/R600_rlc.bin into memory
[    5.803849] [drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
[    5.803949] radeon 0000:01:00.0: WB enabled
[    5.803987] [drm] fence driver on ring 0 use gpu addr 0x10000c00 and cpu addr 0xffff88003c787c00
[    5.804061] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[    5.804101] [drm] Driver supports precise vblank timestamp query.
[    5.804186] radeon 0000:01:00.0: irq 46 for MSI/MSI-X
[    5.804192] radeon 0000:01:00.0: radeon: using MSI.
[    5.804259] [drm] radeon: irq initialized.
[    5.817420]  sda: sda1 sda2 < sda5 sda6 sda7 >
[    5.818051] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.835621] [drm] ring test on 0 succeeded in 1 usecs
[    5.835805] [drm] ib test on ring 0 succeeded in 0 usecs
[    5.836181] [drm] Radeon Display Connectors
[    5.836221] [drm] Connector 0:
[    5.836258] [drm]   DIN
[    5.836295] [drm]   Encoders:
[    5.836334] [drm]     TV1: INTERNAL_KLDSCP_DAC2
[    5.836372] [drm] Connector 1:
[    5.836410] [drm]   VGA
[    5.836446] [drm]   DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 0x7e5c 0x7e5c
[    5.836494] [drm]   Encoders:
[    5.836531] [drm]     CRT2: INTERNAL_KLDSCP_DAC2
[    5.836571] [drm] Connector 2:
[    5.836610] [drm]   DVI-I
[    5.836650] [drm]   HPD1
[    5.836688] [drm]   DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 0x7e4c
[    5.836738] [drm]   Encoders:
[    5.836778] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    5.836814] [drm]     DFP1: INTERNAL_LVTM1
[    5.836858] [drm] Internal thermal controller with fan control
[    5.836948] [drm] radeon: power management initialized
[    5.903030] [drm] fb mappable at 0xD0142000
[    5.903079] [drm] vram apper at 0xD0000000
[    5.903115] [drm] size 5242880
[    5.903150] [drm] fb depth is 24
[    5.903202] [drm]    pitch is 5120
[    5.903318] fbcon: radeondrmfb (fb0) is primary device
[    6.327026] Console: switching to colour frame buffer device 160x64
[    6.333906] fb0: radeondrmfb frame buffer device
[    6.333946] drm: registered panic notifier
[    6.333988] [drm] Initialized radeon 2.16.0 20080528 for 0000:01:00.0 on minor 0
[    6.394622] input: ImPS/2 Logitech Wheel Mouse as /devices/platform/i8042/serio1/input/input6
[    7.271037] device-mapper: uevent: version 1.0.3
[    7.271457] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com

** Model information
sys_vendor:  
product_name:  
product_version:  
chassis_vendor:  
chassis_version:  
bios_vendor: Award Software International, Inc.
bios_version: FE
board_vendor: Gigabyte Technology Co., Ltd.
board_name: 945P-S3 
board_version: x.x

** Loaded modules:
dm_mod
md_mod
sg
sd_mod
sr_mod
radeon
crc_t10dif
cdrom
ttm
drm_kms_helper
snd_hda_codec_hdmi
iTCO_wdt
ata_generic
drm
snd_hda_codec_realtek
snd_hda_intel
psmouse
power_supply
acpi_cpufreq
iTCO_vendor_support
snd_hda_codec
ata_piix
mperf
i2c_algo_bit
snd_hwdep
libata
serio_raw
evdev
snd_pcm
coretemp
i2c_i801
scsi_mod
pcspkr
snd_page_alloc
rng_core
snd_timer
processor
button
snd
i2c_core
soundcore
thermal_sys
nfs
nfs_acl
auth_rpcgss
fscache
lockd
sunrpc
microcode
aufs(C)
uhci_hcd
ehci_hcd
r8169
mii
usbcore
usb_common

** Network interface configuration:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto  lo
iface lo inet loopback

auto  eth0
iface eth0 inet manual

** Network status:
*** IP interfaces and addresses:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:1a:4d:4e:f1:6e brd ff:ff:ff:ff:ff:ff
    inet 172.17.32.3/16 brd 172.17.255.255 scope global eth0

*** Device statistics:
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:    3152      48    0    0    0     0          0         0     3152      48    0    0    0     0       0          0
  eth0: 166147247  120074    0    0    0     0          0         0  6141746   66143    0    0    0     0       0          0

*** Protocol statistics:
Ip:
    67013 total packets received
    2 with invalid addresses
    0 forwarded
    0 incoming packets discarded
    67011 incoming packets delivered
    66229 requests sent out
Icmp:
    0 ICMP messages received
    0 input ICMP message failed.
    ICMP input histogram:
    0 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
Tcp:
    17 active connections openings
    3 passive connection openings
    0 failed connection attempts
    0 connection resets received
    1 connections established
    66858 segments received
    66077 segments send out
    0 segments retransmited
    0 bad segments received.
    0 resets sent
Udp:
    153 packets received
    0 packets to unknown port received.
    0 packet receive errors
    152 packets sent
UdpLite:
TcpExt:
    13 TCP sockets finished time wait in fast timer
    75 delayed acks sent
    Quick ack mode was activated 1 times
    6 packets directly queued to recvmsg prequeue.
    144 bytes directly received in process context from prequeue
    65562 packet headers predicted
    3 packets header predicted and directly queued to user
    64 acknowledgments not containing data payload received
    10658 predicted acknowledgments
    1 DSACKs sent for old packets
IpExt:
    InBcastPkts: 1
    OutBcastPkts: 1
    InOctets: 161828415
    OutOctets: 5221344
    InBcastOctets: 136
    OutBcastOctets: 136


** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub [8086:2770] (rev 81)
	Subsystem: Giga-byte Technology Device [1458:5000]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>

00:01.0 PCI bridge [0604]: Intel Corporation 82945G/GZ/P/PL PCI Express Root Port [8086:2771] (rev 81) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 00009000-00009fff
	Memory behind bridge: e0000000-e1ffffff
	Prefetchable memory behind bridge: 00000000d0000000-00000000dfffffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1b.0 Audio device [0403]: Intel Corporation NM10/ICH7 Family High Definition Audio Controller [8086:27d8] (rev 01)
	Subsystem: Giga-byte Technology Device [1458:a002]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 44
	Region 0: Memory at e4000000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

00:1c.0 PCI bridge [0604]: Intel Corporation NM10/ICH7 Family PCI Express Port 1 [8086:27d0] (rev 01) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 00008000-00008fff
	Memory behind bridge: 40300000-404fffff
	Prefetchable memory behind bridge: 0000000040500000-00000000406fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR+ NoISA+ VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.3 PCI bridge [0604]: Intel Corporation NM10/ICH7 Family PCI Express Port 4 [8086:27d6] (rev 01) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
	I/O behind bridge: 0000a000-0000afff
	Memory behind bridge: e2000000-e3ffffff
	Prefetchable memory behind bridge: 0000000040000000-00000000402fffff
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR+ NoISA+ VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1d.0 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 [8086:27c8] (rev 01) (prog-if 00 [UHCI])
	Subsystem: Giga-byte Technology Device [1458:5004]
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 23
	Region 4: I/O ports at b000 [size=32]
	Kernel driver in use: uhci_hcd

00:1d.1 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 [8086:27c9] (rev 01) (prog-if 00 [UHCI])
	Subsystem: Giga-byte Technology Device [1458:5004]
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin B routed to IRQ 19
	Region 4: I/O ports at b400 [size=32]
	Kernel driver in use: uhci_hcd

00:1d.2 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 [8086:27ca] (rev 01) (prog-if 00 [UHCI])
	Subsystem: Giga-byte Technology Device [1458:5004]
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin C routed to IRQ 18
	Region 4: I/O ports at b800 [size=32]
	Kernel driver in use: uhci_hcd

00:1d.3 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 [8086:27cb] (rev 01) (prog-if 00 [UHCI])
	Subsystem: Giga-byte Technology Device [1458:5004]
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin D routed to IRQ 16
	Region 4: I/O ports at bc00 [size=32]
	Kernel driver in use: uhci_hcd

00:1d.7 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller [8086:27cc] (rev 01) (prog-if 20 [EHCI])
	Subsystem: Giga-byte Technology Device [1458:5006]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 23
	Region 0: Memory at e4004000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ehci_hcd

00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev e1) (prog-if 01 [Subtractive decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Bus: primary=00, secondary=04, subordinate=04, sec-latency=32
	I/O behind bridge: 00007000-00007fff
	Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>

00:1f.0 ISA bridge [0601]: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge [8086:27b8] (rev 01)
	Subsystem: Giga-byte Technology Device [1458:5001]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>

00:1f.2 IDE interface [0101]: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] [8086:27c0] (rev 01) (prog-if 80 [Master])
	Subsystem: Giga-byte Technology Device [1458:b002]
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin B routed to IRQ 19
	Region 0: I/O ports at 01f0 [size=8]
	Region 1: I/O ports at 03f4 [size=1]
	Region 2: I/O ports at 0170 [size=8]
	Region 3: I/O ports at 0374 [size=1]
	Region 4: I/O ports at f000 [size=16]
	Capabilities: <access denied>
	Kernel driver in use: ata_piix

00:1f.3 SMBus [0c05]: Intel Corporation NM10/ICH7 Family SMBus Controller [8086:27da] (rev 01)
	Subsystem: Giga-byte Technology GA-8I945PG-RH Mainboard [1458:5001]
	Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Interrupt: pin B routed to IRQ 19
	Region 4: I/O ports at 0500 [size=32]
	Kernel driver in use: i801_smbus

01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI RV610 video device [Radeon HD 2400 PRO] [1002:94c3] (prog-if 00 [VGA controller])
	Subsystem: Giga-byte Technology Device [1458:216a]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 46
	Region 0: Memory at d0000000 (64-bit, prefetchable) [size=256M]
	Region 2: Memory at e1000000 (64-bit, non-prefetchable) [size=64K]
	Region 4: I/O ports at 9000 [size=256]
	[virtual] Expansion ROM at e0000000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: radeon

01:00.1 Audio device [0403]: Advanced Micro Devices [AMD] nee ATI RV610 HDMI Audio [Radeon HD 2350/2400 Series] [1002:aa10]
	Subsystem: Giga-byte Technology Device [1458:aa10]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Interrupt: pin B routed to IRQ 45
	Region 0: Memory at e1010000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel

03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 01)
	Subsystem: Giga-byte Technology GA-EP45-DS5/GA-EG45M-DS2H Motherboard [1458:e000]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 43
	Region 0: I/O ports at a000 [size=256]
	Region 2: Memory at e3000000 (64-bit, non-prefetchable) [size=4K]
	[virtual] Expansion ROM at 40000000 [disabled] [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: r8169


** USB devices:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


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

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

Versions of packages linux-image-3.2.0-4-amd64 depends on:
ii  debconf [debconf-2.0]                   1.5.49
ii  initramfs-tools [linux-initramfs-tool]  0.109.1
ii  kmod                                    9-3
ii  linux-base                              3.5

Versions of packages linux-image-3.2.0-4-amd64 recommends:
ii  firmware-linux-free  3.2

Versions of packages linux-image-3.2.0-4-amd64 suggests:
pn  debian-kernel-handbook     <none>
pn  grub-pc | extlinux | lilo  <none>
pn  linux-doc-3.2              <none>

Versions of packages linux-image-3.2.0-4-amd64 is related to:
pn  firmware-atheros        <none>
pn  firmware-bnx2           <none>
pn  firmware-bnx2x          <none>
pn  firmware-brcm80211      <none>
pn  firmware-intelwimax     <none>
pn  firmware-ipw2x00        <none>
pn  firmware-ivtv           <none>
pn  firmware-iwlwifi        <none>
pn  firmware-libertas       <none>
ii  firmware-linux          0.36+wheezy.1
ii  firmware-linux-nonfree  0.36+wheezy.1
pn  firmware-myricom        <none>
pn  firmware-netxen         <none>
pn  firmware-qlogic         <none>
pn  firmware-ralink         <none>
ii  firmware-realtek        0.36+wheezy.1
pn  xen-hypervisor          <none>

-- debconf information:
  linux-image-3.2.0-4-amd64/postinst/depmod-error-initrd-3.2.0-4-amd64: false
  linux-image-3.2.0-4-amd64/postinst/missing-firmware-3.2.0-4-amd64:
  linux-image-3.2.0-4-amd64/prerm/removing-running-kernel-3.2.0-4-amd64: true
  linux-image-3.2.0-4-amd64/postinst/ignoring-ramdisk:
execve("/usr/bin/which", ["which", "fusermount"], [/* 14 vars */]) = 0
brk(0)                                  = 0x9a0000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f453029f000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=15911, ...}) = 0
mmap(NULL, 15911, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f453029b000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\357\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1595408, ...}) = 0
mmap(NULL, 3709016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f452fcf8000
mprotect(0x7f452fe78000, 2097152, PROT_NONE) = 0
mmap(0x7f4530078000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x180000) = 0x7f4530078000
mmap(0x7f453007d000, 18520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f453007d000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f453029a000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4530299000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4530298000
arch_prctl(ARCH_SET_FS, 0x7f4530299700) = 0
mprotect(0x7f4530078000, 16384, PROT_READ) = 0
mprotect(0x7f45302a1000, 4096, PROT_READ) = 0
munmap(0x7f453029b000, 15911)           = 0
getpid()                                = 2944
rt_sigaction(SIGCHLD, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f452fd2a4f0}, NULL, 8) = 0
geteuid()                               = 10001
brk(0)                                  = 0x9a0000
brk(0x9c1000)                           = 0x9c1000
getppid()                               = 2943
stat("/home/a.dunaev", {st_mode=S_IFDIR|0755, st_size=160, ...}) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=160, ...}) = 0
open("/usr/bin/which", O_RDONLY)        = 3
fcntl(3, F_DUPFD, 10)                   = 10
close(3)                                = 0
fcntl(10, F_SETFD, FD_CLOEXEC)          = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f452fd2a4f0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f452fd2a4f0}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f452fd2a4f0}, NULL, 8) = 0
read(10, "#! /bin/sh\nset -ef\n\nif test -n \""..., 8192) = 946
stat("/usr/local/bin/fusermount", 0x7ffff1698140) = -1 ENOENT (No such file or directory)
stat("/usr/bin/fusermount", 0x7ffff1698140) = -1 ENOENT (No such file or directory)
stat("/bin/fusermount", {st_mode=S_IFREG|S_ISUID|0754, st_size=30864, ...}) = 0
geteuid()                               = 10001
faccessat(AT_FDCWD, "/bin/fusermount", X_OK) = -1 EACCES (Permission denied)
stat("/usr/local/games/fusermount", 0x7ffff1698140) = -1 ENOENT (No such file or directory)
stat("/usr/games/fusermount", 0x7ffff1698140) = -1 ENOENT (No such file or directory)
exit_group(1)                           = ?
execve("/usr/bin/which", ["which", "fusermount"], [/* 14 vars */]) = 0
brk(0)                                  = 0x181a000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3a66720000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=15911, ...}) = 0
mmap(NULL, 15911, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3a6671c000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\357\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1595408, ...}) = 0
mmap(NULL, 3709016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3a66179000
mprotect(0x7f3a662f9000, 2097152, PROT_NONE) = 0
mmap(0x7f3a664f9000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x180000) = 0x7f3a664f9000
mmap(0x7f3a664fe000, 18520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3a664fe000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3a6671b000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3a6671a000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3a66719000
arch_prctl(ARCH_SET_FS, 0x7f3a6671a700) = 0
mprotect(0x7f3a664f9000, 16384, PROT_READ) = 0
mprotect(0x7f3a66722000, 4096, PROT_READ) = 0
munmap(0x7f3a6671c000, 15911)           = 0
getpid()                                = 2958
rt_sigaction(SIGCHLD, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f3a661ab4f0}, NULL, 8) = 0
geteuid()                               = 10001
brk(0)                                  = 0x181a000
brk(0x183b000)                          = 0x183b000
getppid()                               = 2957
stat("/home/a.dunaev", {st_mode=S_IFDIR|0755, st_size=180, ...}) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=180, ...}) = 0
open("/usr/bin/which", O_RDONLY)        = 3
fcntl(3, F_DUPFD, 10)                   = 10
close(3)                                = 0
fcntl(10, F_SETFD, FD_CLOEXEC)          = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x40f270, ~[RTMIN RT_1], SA_RESTORER, 0x7f3a661ab4f0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f3a661ab4f0}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f3a661ab4f0}, NULL, 8) = 0
read(10, "#! /bin/sh\nset -ef\n\nif test -n \""..., 8192) = 946
stat("/usr/local/bin/fusermount", 0x7fff1a4f1540) = -1 ENOENT (No such file or directory)
stat("/usr/bin/fusermount", 0x7fff1a4f1540) = -1 ENOENT (No such file or directory)
stat("/bin/fusermount", {st_mode=S_IFREG|S_ISUID|0754, st_size=30864, ...}) = 0
geteuid()                               = 10001
faccessat(AT_FDCWD, "/bin/fusermount", X_OK) = 0
write(1, "/bin/fusermount\n", 16)       = 16
exit_group(0)                           = ?
#!/bin/sh

PREREQ=""
prereqs()
{
    echo "$PREREQ"
}

case $1 in 
    prereqs)
        prereqs
        exit 0
        ;;
esac

.. /scripts/functions
TITLE="Adjusting root filesystem"
panique()
{
    panic "$TITLE FAILED"
}

## Add TMPFS over readonly root with aid of AUFS
##
log_begin_msg "$TITLE"
    modprobe aufs                                         ||panique

    mkdir /ro /rw /aufs                                   ||panique
    mount --move $rootmnt /ro                             ||panique
    mount -t tmpfs tmpfs /rw   -o noatime,mode=0755       ||panique
    mount -t  aufs  aufs /aufs -o noatime,dirs=/rw:/ro=ro ||panique

    mkdir /aufs/ro /aufs/rw                               ||panique
    mount --move /ro   /aufs/ro                           ||panique
    mount --move /rw   /aufs/rw                           ||panique
    mount --move /aufs $rootmnt                           ||panique
log_end_msg

## Do some postconfiguration.
##
## $rootmnt is driven by AUFS so it shold be safe to do that here

hostname > $rootmnt/etc/hostname
rm $rootmnt/usr/sbin/policy-rc.d

#panic "$TITLE SUCCEEDED"
exit 0

Reply to: