Gentoo Archives: gentoo-user

From: Thorsten Kampe <thorsten@×××××××××××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Cascading autofs mounts
Date: Tue, 29 Dec 2009 01:19:35
Message-Id: hhbldi$b8q$1@ger.gmane.org
1 Hi,
2
3 does anyone know (or have an idea about) how to achieve cascading mounts
4 with autofs 5?! Basically what I would like to do is to (auto)-mount an
5 iso image which lies on an (auto)-mounted smb share.
6
7 /etc/auto.master contains:
8 # mount_directory map_file options
9 /mnt/smb /etc/auto/smb --timeout=5 --ghost
10 /mnt/iso /etc/auto/iso --timeout=5 --ghost
11
12 /etc/auto/smb:
13 tkampe -fstype=cifs,cred=/root/cred ://tkampe/C\$
14
15 /etc/auto/iso:
16 image -fstype=iso9660,ro,loop :/mnt/smb/tkampe/image.iso
17
18 The auto-mount of the smb share works fine. But the mount of the iso
19 works only if the smb share is already mounted (via "cd
20 /mnt/smb/tkampe" for instance).
21
22 What I would like to achieve is that trying to access /mnt/iso/image
23 (which should be auto-mounted to /mnt/smb/tkampe/image.iso) triggers the
24 auto-mount of /mnt/smb/tkampe to //tkampe/C$. But it doesn't.
25
26 Ideas?
27
28
29 Thorsten