[Bug 1313911] Re: grub-mkconfig finds all /grub directories on umounted disks

2014-04-28 Thread Phillip Susi
That is exactly what os_prober is supposed to do since usually the other
OS(es) is(are) not mounted.  If you don't want os_prober to detect other
operating systems, then you can disable it with chmod a-x /etc/grub.d
/30_os-prober.


** Changed in: grub-installer (Ubuntu)
   Status: New = Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1313911

Title:
  grub-mkconfig finds all /grub directories on umounted disks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/1313911/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1313911] Re: grub-mkconfig finds all /grub directories on umounted disks

2014-04-28 Thread joh...@servergy.com
Hi ;

I shouldn't  have to modify a file to stop unwanted behavior ; I am
requesting an option be added to the cli;

** Changed in: grub-installer (Ubuntu)
   Status: Invalid = New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1313911

Title:
  grub-mkconfig finds all /grub directories on umounted disks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/1313911/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1313911] Re: grub-mkconfig finds all /grub directories on umounted disks

2014-04-28 Thread joh...@servergy.com
chmod +ax may be a handy debug tool; not acceptable for deployments ;
there needs to be a runtime cli option.

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 Mon, Apr 28, 2014 at 6:02 PM, Phillip Susi ps...@ubuntu.com wrote:
 That is exactly what os_prober is supposed to do since usually the other
 OS(es) is(are) not mounted.  If you don't want os_prober to detect other
 operating systems, then you can disable it with chmod a-x /etc/grub.d
 /30_os-prober.


 ** Changed in: grub-installer (Ubuntu)
Status: New = Invalid

 --
 You received this bug notification because you are subscribed to the bug
 report.
 https://bugs.launchpad.net/bugs/1313911

 Title:
   grub-mkconfig finds all /grub directories on umounted disks

 Status in grub-installer package in Ubuntu:
   Invalid

 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 

[Bug 1313911] Re: grub-mkconfig finds all /grub directories on umounted disks

2014-04-28 Thread Phillip Susi
** Package changed: grub-installer (Ubuntu) = grub2 (Ubuntu)

** Changed in: grub2 (Ubuntu)
   Importance: Undecided = Wishlist

** Changed in: grub2 (Ubuntu)
   Status: New = Triaged

** Summary changed:

- grub-mkconfig finds all /grub directories on umounted disks
+ Please add debconf option to disable os_prober

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1313911

Title:
  Please add debconf option to disable os_prober

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1313911/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs