[lxc-devel] [ lxc-Bugs-3477687 ] Cannot mount if rootfs is an image

SourceForge.net noreply at sourceforge.net
Wed Feb 15 22:10:01 UTC 2012


Bugs item #3477687, was opened at 2012-01-23 03:39
Message generated for change (Comment added) made by dlezcano
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=826303&aid=3477687&group_id=163076

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dennis Birkholz (dennisbirkholz)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cannot mount if rootfs is an image

Initial Comment:
I use an image as my lxc rootfs. If i try to mount something via lxc.mount.entry or using a fstab-file with lxc.mount i always get the error 'ignoring mount point XXX'.
I dumped rootfs->path in the mount_entry_on_absolute_rootfs-function in conf.c which is set to the name of the image and not to the value of lxc.rootfs.mount so it seems your currently can not use any mount points if your rootfs is an image file.

----------------------------------------------------------------------

>Comment By: Daniel Lezcano (dlezcano)
Date: 2012-02-15 14:10

Message:
Yes, that's right. I think the man page is not up-to-date.

----------------------------------------------------------------------

Comment By: Dennis Birkholz (dennisbirkholz)
Date: 2012-01-23 03:48

Message:
Just for curiosity i used the path of the image instead of the target
directory in my mount points and that is working. So the statement in the
man page "If the rootfs is an image file or a device block and the fstab is
used to mount a point somewhere in this rootfs, the path of the rootfs
mount point should be prefixed with the /usr/lib/lxc/root default path or
the value of lxc.rootfs.mount if specified." is wrong.

----------------------------------------------------------------------

Comment By: Dennis Birkholz (dennisbirkholz)
Date: 2012-01-23 03:42

Message:
FYI: i downloaded the 0.7.5 source package and compiled it myself.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=826303&aid=3477687&group_id=163076




More information about the lxc-devel mailing list