[Mageia-dev] RPM Filesystem space check broken?
Colin Guthrie
mageia at colin.guthr.ie
Thu Dec 15 22:30:23 CET 2011
'Twas brillig, and Colin Guthrie at 15/12/11 21:28 did gyre and gimble:
> Hi,
>
> Doing some tests in a VM relating to LVM+/usr etc. etc. I ran into a bit
> of an issue:
>
> [root at localhost ~]# rpm -Fvh dracut-014-1.csg2.noarch.rpm
> Preparing... ###########################################
> [100%]
> installing package dracut-014-1.csg2.noarch needs 2MB on the /usr
> filesystem
> [root at localhost ~]# df
> Filesystem Size Used Avail Use% Mounted on
> rootfs 1.1G 192M 782M 20% /
> devtmpfs 360M 0 360M 0% /dev
> tmpfs 365M 0 365M 0% /dev/shm
> /dev/sda1 1.1G 192M 782M 20% /
> /dev/mapper/vg0-1 3.4G 932M 2.3G 29% /usr
> tmpfs 365M 296K 365M 1% /run
> tmpfs 365M 0 365M 0% /sys/fs/cgroup
> tmpfs 365M 0 365M 0% /media
>
>
> Clearly all my FS's have > 2M but this check still seems to kick in.
> What's up?
Wow, quickest "prove to yourself it's not an error" ever. /usr was
mounted ro. urpmi'ing the file told me that.
Perhaps the rpm check could be improved to help protect the stupid from
themselves (i.e. me!)
Col
--
Colin Guthrie
colin(at)mageia.org
http://colin.guthr.ie/
Day Job:
Tribalogic Limited http://www.tribalogic.net/
Open Source:
Mageia Contributor http://www.mageia.org/
PulseAudio Hacker http://www.pulseaudio.org/
Trac Hacker http://trac.edgewall.org/
More information about the Mageia-dev
mailing list