Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186 - emerge --world update polluted /boot with grub/lilo stuff
Summary: emerge --world update polluted /boot with grub/lilo stuff
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Geert Bevin
URL:
Whiteboard:
Keywords:
Depends on: 441
Blocks:
  Show dependency tree
 
Reported: 2002-01-15 16:36 UTC by aeoo
Modified: 2002-02-04 06:53 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 aeoo 2002-01-15 16:36:34 UTC
My /boot is never mounted, as per default gentoo philosophy.  And when it is 
mounted, it's mounted under /mnt/boot.

However, after doing emerge --world update I notice this:
--------------------
root@gamma /boot # pwd
/boot
root@gamma /boot # ls -l
total 36
lrwxrwxrwx    1 root     root            1 Jan 15 14:31 boot -> .
-rw-r--r--    1 root     root         7708 Jan 15 16:42 boot-bmp.b
-rw-r--r--    1 root     root         7680 Jan 15 16:42 boot-menu.b
-rw-r--r--    1 root     root         5920 Jan 15 16:42 boot-text.b
lrwxrwxrwx    1 root     root           11 Jan 15 16:42 boot.b -> boot-menu.b
-rw-r--r--    1 root     root          728 Jan 15 16:42 chain.b
drwxr-xr-x    2 root     root         4096 Jan 15 16:40 grub
-rw-r--r--    1 root     root          656 Jan 15 16:42 os2_d.b
--------------------
If these files were in fact meant to overwrite anything in my real /mnt/boot 
partition, obviously they didn't succeed, and they created a /boot with stuff 
in it.  Considering that some people might be using /boot as a mount point and 
have boot partition unmounted at most times, that is not good.

The issue is: should boot partition be mounted in /boot prior to emerge 
--world update?  If so, can emerge check to make sure it's mounted prior to 
executing update?  Or, perhaps, only check it if lilo/grub are being updated?  
Or perhaps it should be mounted under /mnt/boot instead?  Should this be 
documented on gentoo.org or in emerge --world update's output?
Comment 1 Nils Ohlmeier 2002-01-15 17:58:04 UTC
This also happened when i did an 'emerge update' on my system.
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-01-28 12:40:18 UTC
not sure how to solve this one cleanly.
Comment 3 Geert Bevin 2002-01-31 08:48:20 UTC
the to be implemented pkg_prereq() ebuild function could check if /boot is
mounted and exit with an error message if it's not
Comment 4 Geert Bevin 2002-02-04 06:53:42 UTC
fixed in lilo-22.1-r2 and grub-0.90-r5, additional pkg_setup() function provides
the required checks and tries to mount /boot automatically