Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#27640 - [devtools] cannot update chroots because of /etc/mtab

Attached to Project: Arch Linux
Opened by Andrea Scarpino (BaSh) - Tuesday, 20 December 2011, 11:34 GMT
Last edited by Ionut Biru (wonder) - Saturday, 04 February 2012, 12:33 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Trying to build a package using testing-x86_64-build doesn't update the chroot because of the mtab conflict.

error: failed to commit transaction (conflicting files)
filesystem: /etc/mtab exists in filesystem
Errors occurred, no packages were upgraded.

This line in the mkarchroot script create the mtab file everytime:

chroot "${working_dir}" /bin/findmnt -rnu -o SOURCE,TARGET,FSTYPE,OPTIONS > "${working_dir}/etc/mtab"

Additional info:
* devtools 20111111-1
* devtools from git

Steps to reproduce:
This task depends upon

Closed by  Ionut Biru (wonder)
Saturday, 04 February 2012, 12:33 GMT
Reason for closing:  Fixed
Comment by Øyvind Heggstad (Mr.Elendig) - Tuesday, 20 December 2011, 17:50 GMT Comment by Andrea Scarpino (BaSh) - Tuesday, 20 December 2011, 18:00 GMT
so what?

mkarchroot create that file everytime.
Comment by Tom Gundersen (tomegun) - Tuesday, 20 December 2011, 18:59 GMT
Deleting the relevant line from /usr/sbin/mkarchroot fixes the problem.

Alternatively recreating the chroot with 'testing-x86_64-build -c' works around the issue.

Patch posted: <http://mailman.archlinux.org/pipermail/arch-projects/2011-December/002277.html>.

Loading...