Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 507302

Summary: sys-apps/portage-2.2.10 check destination RO before preinst & prerm
Product: Portage Development Reporter: Denis Kaganovich <mahatma>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Denis Kaganovich 2014-04-10 09:15:28 UTC
sys-apps/portage-2.2.10 check destination RO on "install" phase - before preinst & prerm. It can cause some troubles in packages, mounting own destinations (grub, but I trap in my overlay), as "install" still sandboxed to it job. Anymore: good idea to move this check after prerm (& preinst) - it from common sense of "prerm" & "preinst" phases - prepare destination, so destination is "ready" only after it.

Reproducible: Always
Comment 1 eroen 2014-04-28 17:55:48 UTC
Another idea might be to fix the packages that mount things on their own, or at least make this behaviour non-default and non-silent.

Mounting like eg grub:2 does is at best fragile and can unwittingly expose users to security issues and data loss. Consider the case where /boot is on a usb drive not normally connected when the system is runnint, using a /dev/sd* entry in fstab; then the user (or someone else) connects a different usb drive.