FS#7188 - space check fails in chroot

Attached to Project: Pacman
Opened by james meyer (jams) - Thursday, 17 May 2007, 15:04 GMT
Last edited by Dan McGee (toofishes) - Saturday, 02 June 2007, 17:19 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture i686
Severity Low
Priority Normal
Reported Version 3.0.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
When installing packages into a chroot enviroment without an /etc/mtab file the pacman process fails on the space check. Adding a /etc/mtab file to the chroot fixes the problem.

A switch to disable the space check seems like a reasonable workaround.

Steps to Reproduce:
see description
This task depends upon

Closed by  Dan McGee (toofishes)
Saturday, 02 June 2007, 17:19 GMT
Reason for closing:  Deferred
Additional comments about closing:  free space check code removed for now
Comment by Aaron Griffin (phrakture) - Thursday, 17 May 2007, 15:30 GMT
I don't think we want to implement this. I had thought I cleaned up the error so a missing mtab is non-fatal, can you post the output you get?
Comment by james meyer (jams) - Thursday, 17 May 2007, 15:43 GMT
Here is the info you requested.
The first message happens when /etc/mtab is present but empty.
The second message occurs when /etc/mtab is NOT present

### /etc/mtab not present
bash-3.2# pacman -V

.--. Pacman v3.0.4 - libalpm v1.0.0
/ _.-' .-. .-. .-. Copyright (C) 2002-2007 Judd Vinet <jvinet@zeroflux.org>
\ '-. '-' '-' '-'
'--'
This program may be freely redistributed under
the terms of the GNU General Public License

bash-3.2# pacman -S xterm
resolving dependencies... done.
looking for inter-conflicts... done.

Targets: xorg-apps-1.0.2-3 xterm-225-1

Total Package Size: 0.80 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from current...
xorg-apps 617.5K 8.7M/s 00:00:00 [#############################################################################################################################################################] 100%
xterm 198.3K 49.7M/s 00:00:00 [#############################################################################################################################################################] 100%
checking package integrity... done.
cleaning up... done.
(2/2) checking for file conflicts [#############################################################################################################################################################] 100%
error: could not prepare transaction
error: failed to commit transaction (not enough space on disk)


#---------------------------
#etc mtab is missing
bash-3.2# pacman -S xterm
resolving dependencies... done.
looking for inter-conflicts... done.
error: cannot read disk space information from /etc/mtab: No such file or directory
error: failed to prepare transaction (not enough space on disk)
:: 0.0 MB required, have -0.0 MB


Comment by Dan McGee (toofishes) - Saturday, 02 June 2007, 17:19 GMT
Freespace code rmoved from git for now, so we shouldn't have to worry about these things.

Loading...