linux-vserver / util-vserver

http://linux-vserver.org/
GNU General Public License v2.0
15 stars 14 forks source link

"secure-mount --trigger-automount" emits error during start for bind mounts within a vserver #21

Open AlexanderS opened 9 years ago

AlexanderS commented 9 years ago

Hi,

I have something like the following in the fstab of a vserver:

/dev/vg/stuff                /dir                 ext4  defaults  0  1
/vservers/name/dir/something /dir/somethingother/ auto  bind      0  0

During startup secure-mount --trigger-automount emits something like the following message:

stat(): No such file or directory
/etc/vservers/name/fstab:6:1: failed to stat src

It is working, but the error message is irritating. Is there any way to fix this? Or should I use a pre-start script for the bind mount?

Thanks, Alex

dhozac commented 9 years ago

Could you upload a --debug run when this happens? I'm not sure which step is doing this.

AlexanderS commented 9 years ago

It is triggered here: 1bd9801

I think the --trigger-automount should not emit an error of the directory is not available or should be optional.