Bug#794243: grub-common: Add support for F2FS to grub-probe

Tianming Xie persmule at gmail.com
Fri Jul 31 16:14:47 UTC 2015


Package: grub-common
Version: 2.02~beta2-26
Severity: wishlist

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

On this machine, I use an F2FS on /dev/mmcblk0 (/dev/mmcblk0p1) as the rootfs.
Since the current grub-probe does not support extracting UUID from F2FS, the
rootfs info written to grub.cfg is the device path of the rootfs
(/dev/mmcblk0p1). If grub-probe can support f2fs, the generated grub.cfg may
become more portable.



-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mmcblk0p1 / f2fs rw,relatime,background_gc=on,nouser_xattr,noacl,active_logs=6 0 0
/dev/mmcblk0p3 /usr/local f2fs rw,relatime,background_gc=on,user_xattr,acl,active_logs=6 0 0
/dev/sda4 /srv ext4 rw,relatime,data=ordered 0 0
/dev/sda8 /home ext4 rw,relatime,data=ordered 0 0
/dev/sda2 /boot ext2 rw,relatime 0 0
/dev/sda6 /var ext4 rw,relatime,data=ordered 0 0
/dev/mmcblk0p2 /var/lib/dpkg f2fs rw,relatime,background_gc=on,user_xattr,acl,active_logs=6 0 0
/dev/sda7 /var/lib/boinc-client ext4 rw,relatime,data=ordered 0 0
/dev/sda5 /var/lib/dpkg/updates ext4 rw,relatime,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/memstick-SD32G_0x18802d27
(hd1)	/dev/disk/by-id/ata-TOSHIBA_MK1214GAH_39H5W1ZIW
*********************** END /boot/grub/device.map

*********************** BEGIN /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="0"
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 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_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
else
  search --no-floppy --fs-uuid --set=root 81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
fi
    font="/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=zh_CN
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
else
  search --no-floppy --fs-uuid --set=root 81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
fi
insmod png
if background_image /grub/.background_cache.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-/dev/mmcblk0p1' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
	else
	  search --no-floppy --fs-uuid --set=root 81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
	fi
	echo	'载入 Linux 4.0.0-2-amd64 ...'
	linux	/vmlinuz-4.0.0-2-amd64 root=/dev/mmcblk0p1 ro  quiet
	echo	'载入初始化内存盘...'
	initrd	/initrd.img-4.0.0-2-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-/dev/mmcblk0p1' {
	menuentry 'Debian GNU/Linux,Linux 4.0.0-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-2-amd64-advanced-/dev/mmcblk0p1' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
		else
		  search --no-floppy --fs-uuid --set=root 81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
		fi
		echo	'载入 Linux 4.0.0-2-amd64 ...'
		linux	/vmlinuz-4.0.0-2-amd64 root=/dev/mmcblk0p1 ro  quiet
		echo	'载入初始化内存盘...'
		initrd	/initrd.img-4.0.0-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.0.0-2-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-2-amd64-init-sysvinit-/dev/mmcblk0p1' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
		else
		  search --no-floppy --fs-uuid --set=root 81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
		fi
		echo	'载入 Linux 4.0.0-2-amd64 ...'
		linux	/vmlinuz-4.0.0-2-amd64 root=/dev/mmcblk0p1 ro  quiet init=/lib/sysvinit/init
		echo	'载入初始化内存盘...'
		initrd	/initrd.img-4.0.0-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.0.0-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-2-amd64-recovery-/dev/mmcblk0p1' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
		else
		  search --no-floppy --fs-uuid --set=root 81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
		fi
		echo	'载入 Linux 4.0.0-2-amd64 ...'
		linux	/vmlinuz-4.0.0-2-amd64 root=/dev/mmcblk0p1 ro single 
		echo	'载入初始化内存盘...'
		initrd	/initrd.img-4.0.0-2-amd64
	}
}

### END /etc/grub.d/10_linux ###

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

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

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
	else
	  search --no-floppy --fs-uuid --set=root 81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
	fi
	linux16	/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
	else
	  search --no-floppy --fs-uuid --set=root 81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
	fi
	linux16	/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
	else
	  search --no-floppy --fs-uuid --set=root 81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
	fi
	multiboot	/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
	else
	  search --no-floppy --fs-uuid --set=root 81d21ad5-8a6f-4285-9a31-b827dcdd9a6b
	fi
	multiboot	/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

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

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Jul 31 23:36 ata-ST500LM012_HN-M500MBB_S2R7J9FD702143 -> ../../sda
lrwxrwxrwx 1 root root 10 Jul 31 23:36 ata-ST500LM012_HN-M500MBB_S2R7J9FD702143-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 31 23:36 ata-ST500LM012_HN-M500MBB_S2R7J9FD702143-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jul 31 23:36 ata-ST500LM012_HN-M500MBB_S2R7J9FD702143-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jul 31 23:36 ata-ST500LM012_HN-M500MBB_S2R7J9FD702143-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jul 31 23:36 ata-ST500LM012_HN-M500MBB_S2R7J9FD702143-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jul 31 23:36 ata-ST500LM012_HN-M500MBB_S2R7J9FD702143-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Jul 31 23:36 ata-ST500LM012_HN-M500MBB_S2R7J9FD702143-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Jul 31 23:36 ata-ST500LM012_HN-M500MBB_S2R7J9FD702143-part8 -> ../../sda8
lrwxrwxrwx 1 root root 13 Jul 31 23:31 mmc-SL32G_0x19c63837 -> ../../mmcblk0
lrwxrwxrwx 1 root root 15 Jul 31 23:31 mmc-SL32G_0x19c63837-part1 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 15 Jul 31 23:31 mmc-SL32G_0x19c63837-part2 -> ../../mmcblk0p2
lrwxrwxrwx 1 root root 15 Jul 31 23:31 mmc-SL32G_0x19c63837-part3 -> ../../mmcblk0p3
lrwxrwxrwx 1 root root  9 Jul 31 23:31 usb-HUAWEI_Mass_Storage-0:0 -> ../../sr0
lrwxrwxrwx 1 root root  9 Jul 31 23:31 usb-HUAWEI_SD_Storage-0:0 -> ../../sdb
lrwxrwxrwx 1 root root  9 Jul 31 23:36 wwn-0x135c0aa34cf25000 -> ../../sda
lrwxrwxrwx 1 root root 10 Jul 31 23:36 wwn-0x135c0aa34cf25000-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 31 23:36 wwn-0x135c0aa34cf25000-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jul 31 23:36 wwn-0x135c0aa34cf25000-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jul 31 23:36 wwn-0x135c0aa34cf25000-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jul 31 23:36 wwn-0x135c0aa34cf25000-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jul 31 23:36 wwn-0x135c0aa34cf25000-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Jul 31 23:36 wwn-0x135c0aa34cf25000-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Jul 31 23:36 wwn-0x135c0aa34cf25000-part8 -> ../../sda8
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 15 Jul 31 23:31 18fc5193-04ac-4d8c-835f-7ceb98582f8a -> ../../mmcblk0p2
lrwxrwxrwx 1 root root 15 Jul 31 23:31 1f4ac649-d14f-4fb1-9550-939cd7dc49b1 -> ../../mmcblk0p3
lrwxrwxrwx 1 root root  9 Jul 31 23:31 2013-01-29-08-00-00-00 -> ../../sr0
lrwxrwxrwx 1 root root 10 Jul 31 23:36 341c5108-0f39-4b5e-a518-a073249f71ff -> ../../sda5
lrwxrwxrwx 1 root root 10 Jul 31 23:36 38ae398f-0463-49b1-877e-8220dce08222 -> ../../sda8
lrwxrwxrwx 1 root root 10 Jul 31 23:36 53a11e43-4972-4e8f-bcbd-710891a34bab -> ../../sda6
lrwxrwxrwx 1 root root 10 Jul 31 23:36 80a2da37-bd34-44aa-821f-e578f9154d4a -> ../../sda4
lrwxrwxrwx 1 root root 10 Jul 31 23:36 81d21ad5-8a6f-4285-9a31-b827dcdd9a6b -> ../../sda2
lrwxrwxrwx 1 root root 10 Jul 31 23:36 a51e8308-acea-4811-95cf-79b6b49d3119 -> ../../sda7
lrwxrwxrwx 1 root root 15 Jul 31 23:31 bd5dda9c-073c-45ca-b89b-e8c73272254b -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 10 Jul 31 23:36 f299eff4-7921-4a7f-9b7f-c40daf778dee -> ../../sda3
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'testing-proposed-updates'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.0.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages grub-common depends on:
ii  gettext-base        0.19.4-1
ii  libc6               2.19-19
ii  libdevmapper1.02.1  2:1.02.90-2.2
ii  libfreetype6        2.5.2-4
ii  libfuse2            2.9.4-1
ii  liblzma5            5.1.1alpha+20120614-2.1
ii  libpng12-0          1.2.50-2+b2
ii  zlib1g              1:1.2.8.dfsg-2+b1

Versions of packages grub-common recommends:
ii  os-prober  1.66

Versions of packages grub-common suggests:
ii  console-setup  1.131
ii  desktop-base   8.0.2
pn  grub-emu       <none>
pn  multiboot-doc  <none>
ii  xorriso        1.3.2-1.1

-- no debconf information



More information about the Pkg-grub-devel mailing list