Why propose these complicate solutions to a simple request ?
fix grub-mkconfig to discover images only on mounted file systems
without making any system modification using chmod or editting files.
Regards,
John.
--
o Energy-efficiency is #1 reason data centers look to expand. --
Digital Realty Trust
o Green Data Centers spending to increase 300% worldwide by 2016. --
Pike Research
o Data Centers have become as vital to the functioni
ng of society as power stations. -- The Economist
On Tue, Apr 29, 2014 at 4:53 AM, Colin Watson cjwat...@canonical.com wrote:
grub2's debconf setup is already excessively cumbersome, and I'd rather
not add to it; but you can put GRUB_DISABLE_OS_PROBER=true in
/etc/default/grub, as documented in info grub.
--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1313911
Title:
Please add debconf option to disable os_prober
Status in “grub2” package in Ubuntu:
Triaged
Bug description:
grub-mkconfig looks at all disks in the system and generates a huge
grub.cfg file;
It searches unmounted disks and adds everything with a /grub directory
to grub.cfg ;
By default - it should only search the current /boot partition, or
alternately add an option
that searches all mounted FS ;
IT SHOULD NOT BROWSE ALL RAW DISKS - EVEN THOSE THAT ARE NOT MOUNTED.
dpkg -l | grep grub-comm
ii grub-common2.02~beta2-9
powerpc GRand Unified Bootloader (common file)
grub file with contents of umounted disks:
( only /dev/sda was mounted )
-
(trusty)root@(none):~# cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ ${next_entry} ] ; then
set default=${next_entry}
set next_entry=
save_env next_entry
set boot_once=true
else
set default=5
fi
if [ x${feature_menuentry_id} = xy ]; then
menuentry_id_option=--id
else
menuentry_id_option=
fi
export menuentry_id_option
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env
recordfail; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd3,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint-ieee1275='ieee1275//sas/disk@20300,msdos3' --hint-bios=hd3,msdos3
--hint-efi=hd3,msdos3 --hint-baremetal=ahci3,msdos3
95af99e7-e863-4417-b594-e5debfabb9ee
else
search --no-floppy --fs-uuid --set=root
95af99e7-e863-4417-b594-e5debfabb9ee
fi
font=/usr/share/grub/unicode.pf2
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ ${recordfail} = 1 ] ; then
set timeout=-1
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=0
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 0 ; then
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload=${1}
if [ ${1} = keep ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set