Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40118 - memtest86+ writes to /boot even though it isn't mounted
Summary: memtest86+ writes to /boot even though it isn't mounted
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-01 12:56 UTC by Carsten Lohrke (RETIRED)
Modified: 2004-10-03 01:39 UTC (History)
1 user (show)

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 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-01 12:56:35 UTC
># no /boot? try to mount..
>if [ ! -d /boot ] ; then

O.k.- the directory doesn't exist, because the device isn't mounted? At least not on my system. ;)

Also, there are unintended sideeffects when the ebuild gets unmerged, but /boot is/isn't mounted. May I suggest to install the stuff in /usr and let the user copy the binary to /boot via pkg_config()!?
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-01 13:00:18 UTC
same for sys-apps/memtest86 btw.
Comment 2 Frank Dörfler 2004-02-02 05:55:56 UTC
my suggest to check if /boot is mounted

umountboot=0
ismount=$(mount | grep /boot)
if [ -z "$ismount" ]; then 
   #/boot isn't mounted
   umountboot=1
   mount /boot >/dev/null
fi
#now /boot is mounted and we going on to install memtest in /boot, if /boot was already mounted this will skip mounting
Comment 3 plasmagunman 2004-03-03 13:24:59 UTC
with "/usr/portage/eclass/mount-boot.eclass" this problems seems to be solved. perhaps you can confirm that and close this bug, to clean the bug-database.
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2004-03-03 13:43:40 UTC
There's still a problem. The ebuild doesn't check, if there's enough space left on the boot partition.
Comment 5 SpanKY gentoo-dev 2004-10-03 01:39:26 UTC
memtest's use the mount-boot eclass so /boot is mounted properly

as for not-enough-space ... that's a portage bug (if you really want to consider it a bug) which is handled elsewhere