Bug 26178 - wrong path to memtest when /boot/ is on a separate partition
Summary: wrong path to memtest when /boot/ is on a separate partition
Status: CLOSED WONTFIX
Alias: None
Product: Branch p6
Classification: Distributions
Component: grub2 (show other bugs)
Version: не указана
Hardware: all Linux
: P3 normal
Assignee: Andrey Cherepanov
QA Contact: QA p6
URL:
Keywords:
: 28497 (view as bug list)
Depends on: 26179 28497
Blocks: 26742
  Show dependency tree
 
Reported: 2011-08-27 23:18 MSK by Ivan Zakharyaschev
Modified: 2013-11-27 00:22 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2011-08-27 23:18:04 MSK
# tail -30 /boot/grub/grub.cfg
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/39_memtest ###
menuentry "Memtest86+-3.5" {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos2)'
	search --no-floppy --fs-uuid --set=root ac12087e-a82d-413e-8abc-7a9fc1f62ea5
	linux16 /boot/memtest-3.5.bin
}
menuentry "Memtest86+-4.20" {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos2)'
	search --no-floppy --fs-uuid --set=root ac12087e-a82d-413e-8abc-7a9fc1f62ea5
	linux16 /boot/memtest-4.20.bin
}
### END /etc/grub.d/39_memtest ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
# rpm -qf /etc/grub.d/39_memtest 
grub2-1.99-alt7
# 

This doesn't work in my case, because in my case /boot/ is on a separate partition, and hence the path to memtest is wrong:

# mount | fgrep /boot
/dev/sda2 on /boot type ext4 (rw,nosuid,nodev,noexec,relatime,user_xattr,acl,barrier=1,data=ordered)
# 

Some more info:

# rpm -qa 'memtest*'
memtester-4.2.1-alt1
memtest86+-4.20-alt1
memtest86-3.5-alt2
#
Comment 1 Michael Shigorin 2013-11-27 00:16:10 MSK
Для исправления надо взять или адаптировать коммит 64bdf6461bce30492fe6997b45e0ca578ef67e99 из 2.00-alt15 (см. bug #29460), но не уверен, что стоит сейчас трогать загрузчик в p6.

В качестве обходного варианта предлагаю зафиксировать желаемое при помощи /etc/grub.d/40_custom
Comment 2 Michael Shigorin 2013-11-27 00:22:52 MSK
*** Bug 28497 has been marked as a duplicate of this bug. ***