[opensuse-buildservice] /etc/mtab during "osc build" bogus
Inside the chroot environment during "osc build", the /etc/mtab contains the entries of the outside environment. Therefore, tools relying on that file fail, e.g. df: df -a > /dev/null ; echo $? df: ‘/sys/kernel/security’: No such file or directory df: ‘/sys/fs/cgroup’: No such file or directory df: ‘/sys/fs/cgroup/systemd’: No such file or directory df: ‘/sys/fs/pstore’: No such file or directory df: ‘/sys/fs/cgroup/cpuset’: No such file or directory df: ‘/sys/fs/cgroup/cpu,cpuacct’: No such file or directory df: ‘/sys/fs/cgroup/memory’: No such file or directory df: ‘/sys/fs/cgroup/devices’: No such file or directory df: ‘/sys/fs/cgroup/freezer’: No such file or directory df: ‘/sys/fs/cgroup/net_cls’: No such file or directory df: ‘/sys/fs/cgroup/blkio’: No such file or directory df: ‘/sys/fs/cgroup/perf_event’: No such file or directory df: ‘/sys/fs/cgroup/hugetlb’: No such file or directory df: ‘/dev/hugepages’: No such file or directory df: ‘/dev/mqueue’: No such file or directory df: ‘/sys/kernel/debug’: No such file or directory df: ‘/sys/fs/fuse/connections’: No such file or directory df: ‘/run/user/1000/gvfs’: No such file or directory df: ‘/var/run/user/1000/gvfs’: No such file or directory df: ‘/var/tmp/build-root/standard-i586/proc’: No such file or directory df: ‘/var/tmp/build-root/standard-i586/dev/pts’: No such file or directory 1 Is there a discussion about this to get it fixed? Thanks & have a nice day, Berny -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Bernhard Voelker <mail@bernhard-voelker.de> writes:
Inside the chroot environment during "osc build", the /etc/mtab contains
/etc/mtab is just a link to /proc/self/mounts. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 12/21/2013 12:22 AM, Andreas Schwab wrote:
Bernhard Voelker <mail@bernhard-voelker.de> writes:
Inside the chroot environment during "osc build", the /etc/mtab contains
/etc/mtab is just a link to /proc/self/mounts.
I'm not sure for server builds, but for a local build it's not: $ ls -l /var/tmp/build-root/etc/mtab -rw-r--r-- 1 root root 3091 Dec 2 00:05 /var/tmp/build-root/etc/mtab Have a nice day, Berny -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am 21.12.2013 09:53, schrieb Bernhard Voelker:
On 12/21/2013 12:22 AM, Andreas Schwab wrote:
Bernhard Voelker <mail@bernhard-voelker.de> writes:
Inside the chroot environment during "osc build", the /etc/mtab contains
/etc/mtab is just a link to /proc/self/mounts.
I'm not sure for server builds, but for a local build it's not:
$ ls -l /var/tmp/build-root/etc/mtab -rw-r--r-- 1 root root 3091 Dec 2 00:05 /var/tmp/build-root/etc/mtab
Interestingly enough the build package has several code paths to create /etc/mtab. What happens most likely is cp /proc/mounts $BUILD_ROOT/etc/mtab chmod 644 $BUILD_ROOT/etc/mtab So no symlinks, but still derived from your external mounts. The server builds happen within kvm, so there is no user 1000 and similiar problems of course. Greetings, Stephan -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Andreas Schwab
-
Bernhard Voelker
-
Stephan Kulow