>>>>> On Sat, 07 Dec 2019, Ulrich Müller wrote: > The eclass failed to remount a read-only mounted /boot, because package > collision sanity checks in recent Portage versions prevented it from > reaching pkg_preinst() at all. Furthermore, with the "mount-sandbox" > feature enabled, the mount won't be propagated past pkg_preinst() and > installed files would end up under the (shadowed) mount point. > Therefore don't even attempt to mount /boot ourselves, but error out > if it isn't mounted read/write and ask the user to mount /boot. > Also clean up and simplify. (For example, awk is a grown-up program > which doesn't need any help from egrep or sed. :-) > Closes: https://bugs.gentoo.org/532264 > See-also: https://bugs.gentoo.org/274130#c5 > Signed-off-by: Ulrich Müller > --- > v3: Exit awk commands on first match. > v4: Added die statements after awk commands > Fixed typo in mount-boot_is_disabled function documentation > Reverted renaming of I_KNOW_WHAT_I_AM_DOING variable Pushed (with one small spelling change in an error message). Ulrich