Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507302 - sys-apps/portage-2.2.10 check destination RO before preinst & prerm
Summary: sys-apps/portage-2.2.10 check destination RO before preinst & prerm
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-10 09:15 UTC by Denis Kaganovich
Modified: 2014-04-28 17:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.