Bug#825688: grub-efi-arm: refuses to install to an ext* device
Steinar H. Gunderson
sgunderson at bigfoot.com
Sat May 28 20:18:27 UTC 2016
Package: grub-efi-arm
Version: 2.02~beta2-36
Severity: normal
Hi,
grub-install completely refuses to install an EFI GRUB to a /boot/EFI
that is not on vfat or hfs+ (the C source code has explicit checks).
However, there's no good reason why, on ARM, /boot/EFI couldn't be on
ext2/ext3/ext4; U-Boot reads it just fine, and will pick up the .EFI
file from there by default. Thus, this restriction should probably
be lifted (ie., ext[234] should be added to the whitelist).
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/mapper/soldroid-root / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/mmcblk0p1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro 0 0
*********************** END /proc/mounts
*********************** 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_msdos
insmod lvm
insmod ext2
set root='lvmid/2FSOEH-LQrV-JjCi-2rFL-f0DC-TxrZ-knqIRj/jkmQc2-DtwV-X9no-x4h2-BNMZ-t42b-0wokwJ'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/2FSOEH-LQrV-JjCi-2rFL-f0DC-TxrZ-knqIRj/jkmQc2-DtwV-X9no-x4h2-BNMZ-t42b-0wokwJ' 7c369f7c-c221-4a03-8d70-2d5527c29b21
else
search --no-floppy --fs-uuid --set=root 7c369f7c-c221-4a03-8d70-2d5527c29b21
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_DK
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 ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### 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-7c369f7c-c221-4a03-8d70-2d5527c29b21' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root E607-E4EF
else
search --no-floppy --fs-uuid --set=root E607-E4EF
fi
echo 'Loading Linux 4.6.0 ...'
linux /vmlinuz-4.6.0 root=/dev/mapper/soldroid-root ro quiet console=ttySAC2,115200n8 net.ifnames=0
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.6.0
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-7c369f7c-c221-4a03-8d70-2d5527c29b21' {
menuentry 'Debian GNU/Linux, with Linux 4.6.0' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.6.0-advanced-7c369f7c-c221-4a03-8d70-2d5527c29b21' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root E607-E4EF
else
search --no-floppy --fs-uuid --set=root E607-E4EF
fi
echo 'Loading Linux 4.6.0 ...'
linux /vmlinuz-4.6.0 root=/dev/mapper/soldroid-root ro quiet console=ttySAC2,115200n8 net.ifnames=0
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.6.0
}
menuentry 'Debian GNU/Linux, with Linux 4.6.0 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.6.0-recovery-7c369f7c-c221-4a03-8d70-2d5527c29b21' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root E607-E4EF
else
search --no-floppy --fs-uuid --set=root E607-E4EF
fi
echo 'Loading Linux 4.6.0 ...'
linux /vmlinuz-4.6.0 root=/dev/mapper/soldroid-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.6.0
}
menuentry 'Debian GNU/Linux, with Linux 4.6.0-rc7-armmp-lpae' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.6.0-rc7-armmp-lpae-advanced-7c369f7c-c221-4a03-8d70-2d5527c29b21' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root E607-E4EF
else
search --no-floppy --fs-uuid --set=root E607-E4EF
fi
echo 'Loading Linux 4.6.0-rc7-armmp-lpae ...'
linux /vmlinuz-4.6.0-rc7-armmp-lpae root=/dev/mapper/soldroid-root ro quiet console=ttySAC2,115200n8 net.ifnames=0
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.6.0-rc7-armmp-lpae
}
menuentry 'Debian GNU/Linux, with Linux 4.6.0-rc7-armmp-lpae (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.6.0-rc7-armmp-lpae-recovery-7c369f7c-c221-4a03-8d70-2d5527c29b21' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root E607-E4EF
else
search --no-floppy --fs-uuid --set=root E607-E4EF
fi
echo 'Loading Linux 4.6.0-rc7-armmp-lpae ...'
linux /vmlinuz-4.6.0-rc7-armmp-lpae root=/dev/mapper/soldroid-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.6.0-rc7-armmp-lpae
}
menuentry 'Debian GNU/Linux, with Linux 4.5.0-2-armmp-lpae' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.5.0-2-armmp-lpae-advanced-7c369f7c-c221-4a03-8d70-2d5527c29b21' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root E607-E4EF
else
search --no-floppy --fs-uuid --set=root E607-E4EF
fi
echo 'Loading Linux 4.5.0-2-armmp-lpae ...'
linux /vmlinuz-4.5.0-2-armmp-lpae root=/dev/mapper/soldroid-root ro quiet console=ttySAC2,115200n8 net.ifnames=0
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.5.0-2-armmp-lpae
}
menuentry 'Debian GNU/Linux, with Linux 4.5.0-2-armmp-lpae (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.5.0-2-armmp-lpae-recovery-7c369f7c-c221-4a03-8d70-2d5527c29b21' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root E607-E4EF
else
search --no-floppy --fs-uuid --set=root E607-E4EF
fi
echo 'Loading Linux 4.5.0-2-armmp-lpae ...'
linux /vmlinuz-4.5.0-2-armmp-lpae root=/dev/mapper/soldroid-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.5.0-2-armmp-lpae
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/25_devicetree ###
echo 'Loading device tree ...'
devicetree /exynos5422-odroidxu4.dtb
### END /etc/grub.d/25_devicetree ###
### 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 LVM
*********************** END LVM
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 10 Feb 11 17:28 dm-name-soldroid-root -> ../../dm-0
lrwxrwxrwx 1 root root 10 Feb 11 17:28 dm-uuid-LVM-2FSOEHLQrVJjCi2rFLf0DCTxrZknqIRjjkmQc2DtwVX9nox4h2BNMZt42b0wokwJ -> ../../dm-0
lrwxrwxrwx 1 root root 15 Feb 11 17:28 lvm-pv-uuid-xd1Ic8-MpQV-cmJl-Suqz-8wxr-OCNf-LIws2y -> ../../mmcblk0p2
lrwxrwxrwx 1 root root 13 Feb 11 17:28 mmc-064GE2_0x8f583699 -> ../../mmcblk0
lrwxrwxrwx 1 root root 15 Feb 11 17:28 mmc-064GE2_0x8f583699-part1 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 15 Feb 11 17:28 mmc-064GE2_0x8f583699-part2 -> ../../mmcblk0p2
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Feb 11 17:28 7c369f7c-c221-4a03-8d70-2d5527c29b21 -> ../../dm-0
lrwxrwxrwx 1 root root 15 Feb 11 17:28 E607-E4EF -> ../../mmcblk0p1
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing'), (1, 'experimental')
Architecture: armhf (armv7l)
Kernel: Linux 4.6.0 (SMP w/8 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages grub-efi-arm depends on:
ii debconf [debconf-2.0] 1.5.59
ii dpkg 1.18.7
ii grub-common 2.02~beta2-36
ii grub-efi-arm-bin 2.02~beta2-36
ii grub2-common 2.02~beta2-36
ii ucf 3.0036
grub-efi-arm recommends no packages.
grub-efi-arm suggests no packages.
-- debconf information:
grub2/device_map_regenerated:
grub2/force_efi_extra_removable: false
grub2/kfreebsd_cmdline:
grub2/linux_cmdline_default: quiet console=ttySAC2,115200n8 net.ifnames=0
grub2/linux_cmdline:
grub2/kfreebsd_cmdline_default: quiet
More information about the Pkg-grub-devel
mailing list