Summary: | sys-boot/grub-static-0.97-r10 incorrectly detects /boot as read-only and fails | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Roland Ramthun <bts> |
Component: | Current packages | Assignee: | AMD64 Project <amd64> |
Status: | RESOLVED WONTFIX | ||
Severity: | major | CC: | jstein, steffen |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 674364 | ||
Bug Blocks: |
Description
Roland Ramthun
2012-07-20 15:37:16 UTC
The system is amd64 multilib. Emerging sys-boot/grub gives similar messages, but works. After merging sys-boot-grub grub is installed in /boot, but /boot has been remounted ro. [...] make[2]: Entering directory `/var/tmp/portage/sys-boot/grub-0.97-r10/work/grub-0.97' make[2]: Für das Ziel »install-exec-am« ist nichts zu tun. make[2]: Für das Ziel »install-data-am« ist nichts zu tun. make[2]: Leaving directory `/var/tmp/portage/sys-boot/grub-0.97-r10/work/grub-0.97' make[1]: Leaving directory `/var/tmp/portage/sys-boot/grub-0.97-r10/work/grub-0.97' * Fallback PaX marking -m * /var/tmp/portage/sys-boot/grub-0.97-r10/image//sbin/grub TYPE PAX FILE ET_EXEC --mxe- /var/tmp/portage/sys-boot/grub-0.97-r10/image//sbin/grub >>> Completed installing grub-0.97-r10 into /var/tmp/portage/sys-boot/grub-0.97-r10/image/ strip: strip --strip-unneeded -R .comment -R .GCC.command.line bin/mbchk sbin/grub ecompressdir: bzip2 -9 /usr/share/info ecompressdir: bzip2 -9 /usr/share/doc ecompressdir: bzip2 -9 /usr/share/man >>> Installing (2 of 2) sys-boot/grub-0.97-r10 * checking 36 files for package collisions >>> Merging sys-boot/grub-0.97-r10 to / * * To avoid automounting and auto(un)installing with /boot, * just export the DONT_MOUNT_BOOT variable. * * * Your boot partition, detected as being mounted as /boot, is read-only. * Remounting it in read-write mode ... * --- /bin/ >>> /bin/mbchk --- /usr/ --- /usr/share/ --- /usr/share/info/ >>> /usr/share/info/multiboot.info.bz2 >>> /usr/share/info/grub.info.bz2 >>> /usr/share/grub/ >>> /usr/share/grub/splash.xpm.gz --- /usr/share/man/ --- /usr/share/man/man1/ >>> /usr/share/man/man1/mbchk.1.bz2 --- /usr/share/man/man8/ >>> /usr/share/man/man8/grub-terminfo.8.bz2 >>> /usr/share/man/man8/grub.8.bz2 >>> /usr/share/man/man8/grub-install.8.bz2 >>> /usr/share/man/man8/grub-md5-crypt.8.bz2 --- /usr/share/doc/ >>> /usr/share/doc/grub-0.97-r10/ >>> /usr/share/doc/grub-0.97-r10/grub.conf.sample.bz2 >>> /usr/share/doc/grub-0.97-r10/AUTHORS.bz2 >>> /usr/share/doc/grub-0.97-r10/NEWS.bz2 >>> /usr/share/doc/grub-0.97-r10/README.bz2 >>> /usr/share/doc/grub-0.97-r10/TODO.bz2 >>> /usr/share/doc/grub-0.97-r10/THANKS.bz2 >>> /usr/share/doc/grub-0.97-r10/grub.conf.gentoo.bz2 >>> /usr/share/doc/grub-0.97-r10/BUGS.bz2 >>> /usr/share/doc/grub-0.97-r10/ChangeLog.bz2 --- /sbin/ >>> /sbin/grub >>> /sbin/grub-md5-crypt >>> /sbin/grub-install >>> /sbin/grub-set-default >>> /sbin/grub-terminfo --- /lib/ >>> /lib/grub/ >>> /lib/grub/i386-pc/ >>> /lib/grub/i386-pc/xfs_stage1_5 >>> /lib/grub/i386-pc/iso9660_stage1_5 >>> /lib/grub/i386-pc/jfs_stage1_5 >>> /lib/grub/i386-pc/fat_stage1_5 >>> /lib/grub/i386-pc/reiserfs_stage1_5 >>> /lib/grub/i386-pc/e2fs_stage1_5 >>> /lib/grub/i386-pc/ufs2_stage1_5 >>> /lib/grub/i386-pc/stage2 >>> /lib/grub/i386-pc/stage1 >>> /lib/grub/i386-pc/vstafs_stage1_5 >>> /lib/grub/i386-pc/stage2_eltorito >>> /lib/grub/i386-pc/minix_stage1_5 >>> /lib/grub/i386-pc/ffs_stage1_5 * * To avoid automounting and auto(un)installing with /boot, * just export the DONT_MOUNT_BOOT variable. * * * Your boot partition, detected as being mounted as /boot, is read-only. * Remounting it in read-write mode ... * * Linking from new grub.conf name to menu.lst * Copying files from /lib/grub, /usr/lib/grub and /usr/share/grub to //boot/grub Probing devices to guess BIOS drives. This may take a long time. * Grub has been installed to //boot successfully. * * To interactively install grub files to another device such as a USB * stick, just run the following and specify the directory as prompted: * emerge --config =grub-0.97-r10 * Alternately, you can export GRUB_ALT_INSTALLDIR=/path/to/use to tell * grub where to install in a non-interactive way. * * Automatically remounting /boot as ro * >>> sys-boot/grub-0.97-r10 merged. [...] sysresccd linux # mount /dev/sda2 on / type ext4 (rw,noatime,discard) /dev/sda1 on /boot type ext2 (ro,noatime) grub-static and grub use the same exact /boot mount logic -- they simply call the eclass. are you sure they behave the same ? Well, both give the "Automatically remounting /boot as ro" message. But grub remounted after installing the files into /boot while grub-static remounted it prior to installing the files and subsequently failed. Today I installed Gentoo on a different second computer and had the exact same behaviour. Both systems were stable amd64 multilib systems and installed as described in the Gentoo AMD64 Handbook. Masked for removal sys-boot/grub-static-0.97-r12 works perfect since many years on 24 boxes I look after, including some with RAID 5. No maintainence and no new feature needed that screw up a perfectly good and reliable application. sys-boot/grub (Grub 2) is unreliable, overdesigned and complicated pile of dung to install and troubleshoot. +1 on that! Please don't remove grub-static. If there's no further maintenance needed you can simply copy the ebuild to your local overlay - that takes less time than it takes to copy&paste a bugzilla message to a second bug. Of course if any maintenance is needed after all you'll have to perform that yourself. Instructions: https://wiki.gentoo.org/wiki/Handbook:AMD64/Portage/CustomTree#Defining_a_custom_repository +1 do not remove grub-static. If somebody needs new features -> grub2. Grub works since many years on maybe 200+ servers without problems. Gone |