Release Engineering

Tasklist

FS#19149 - archiso /usr/share permission errors

Attached to Project: Release Engineering
Opened by Dieter Plaetinck (Dieter_be) - Sunday, 18 April 2010, 10:59 GMT
Last edited by Dieter Plaetinck (Dieter_be) - Friday, 07 May 2010, 21:54 GMT
Task Type Bug Report
Category ArchISO
Status Closed
Assigned To Aaron Griffin (phrakture)
Gerhard Brauer (GerBra)
Dieter Plaetinck (Dieter_be)
Architecture All
Severity Low
Priority Normal
Reported Version 2010.04.05-testbuild
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

if you for example fetch an aif package from build.archlinux.org/pkg, and try to install it with `pacman -U aif`,
you get: "cannot remove /usr/share: permission denied"

which is weird:
1) it shouldn't remove /usr/share (maybe it means /usr/share/aif)
2) /usr or /usr/share is no separate mountpoint. / is mounted rw.

i've also read reports from other people somewhere, that basically `pacman -U` operations often fail, even though the entire / should be rw
This task depends upon

Closed by  Dieter Plaetinck (Dieter_be)
Friday, 07 May 2010, 21:54 GMT
Reason for closing:  Fixed
Additional comments about closing:  merged into archiso, new builds done
Comment by Aaron Griffin (phrakture) - Monday, 19 April 2010, 15:34 GMT
Is /usr/share empty at this point? I believe pacman removes empty dirs on removal, and recurses upward. So if it removed /usr/share/aif and /usr/share was empty, it would try to remove it.

Does this actually CAUSE any errors? Or is it just a message that is weird?

Try doing "touch /usr/share/.dummy" and then pacman -U the package.
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 20 April 2010, 23:26 GMT
I can infer that you are using the dual iso. Oops! and this is and issue: Since /usr/share (and /lib/modules) is a bind mount, the overlay in / via aufs does not take any effect. I guess that we need to append /usr/share (and /lib/modules) to aufs stack in some way.
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 20 April 2010, 23:42 GMT
mmm one way to stack/append to aufs tree, is how squashfs images for /usr/share and /lib/modules are constructed. These images should contain the full path "/usr/share" and "/lib/modules" and under isomounts files, instead of putting the full path "/usr/share" must be "/", so this squashfs image will be appended to aufs stack instead of a bind mount. (in this way, was done originaly in first draft of archiso2dual)

I will see what I can do ;)
Comment by Gerardo Exequiel Pozzi (djgera) - Wednesday, 21 April 2010, 00:30 GMT
OK here is the patch, tested ;)

Loading...