FS#30884 - check for read-only filesystems

Attached to Project: Pacman
Opened by pocm (pocm) - Saturday, 28 July 2012, 01:10 GMT
Last edited by Allan McRae (Allan) - Sunday, 02 February 2014, 07:05 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.0.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

$ mount -o remount,ro /boot
$ pacman -Syu filesystem
[...]
error: cannot remove file '/boot/': Read-only file system
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded.

1) pacman should be able to tell this during the "file conflicts" stage, as bailing during the upgrade is messy

2) "no packages were upgraded" <-- this is not necessarily true! Others may have been successfully upgraded first.
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 02 February 2014, 07:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  Use CheckSpace
Comment by Allan McRae (Allan) - Saturday, 28 July 2012, 02:28 GMT
See also  FS#21971 
Comment by Allan McRae (Allan) - Sunday, 02 February 2014, 07:03 GMT
(1/1) checking available disk space [######################] 100%
error: Partition /boot is mounted read only
error: not enough free disk space
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.
Comment by Allan McRae (Allan) - Sunday, 02 February 2014, 07:03 GMT
That required the CheckSpace option to be enabled.
Comment by Allan McRae (Allan) - Sunday, 02 February 2014, 07:04 GMT
Also, we never attempt to remove a mountpoint since commit 26a79cb29 (in pacman-4.1)

Loading...