Bug#801185: grub-common: /etc/grub.d/00_header output depends on the locales ($LANG)
Vincent Lefevre
vincent at vinc17.net
Wed Oct 7 10:39:37 UTC 2015
Package: grub-common
Version: 2.02~beta2-28
Severity: normal
/etc/grub.d/00_header contains the following:
grub_lang=`echo $LANG | cut -d . -f 1`
[...]
if [ "x${LANG}" != "xC" ] && [ "x${LANG}" != "x" ]; then
cat << EOF
set locale_dir=\$prefix/locale
set lang=${grub_lang}
insmod gettext
EOF
fi
This means that the grub.cfg file that will be generated depends on
the locales used at generation time, i.e. the locales of the user
who does the upgrade. This makes no sense.
I noticed this problem on another machine[*] because after a kernel
upgrade, the grub.cfg file was regenerated, and at this time, I have
LANG=POSIX as a user. So, 3 lines got added to this file:
set locale_dir=$prefix/locale
set lang=POSIX
insmod gettext
If grub.cfg needs to depend on the locales, this should be against
the default locales, i.e. I think that LANG should be unset, then
/etc/default/locale should be sourced (LANG may be set there).
However the default locales can change at any time, and the grub.cfg
file will generally not be regenerated after that. So, I would say
that this is still not a good solution.
[*] I can't report the bug from it yet because I don't have a MUA
there; it's still being installed. Anyway the problem is not specific
to this machine.
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/sda1 / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /var/i386-chroot/home ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /var/i386-chroot/tmp ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-ST3500418AS_6VM8TTF0
*********************** 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_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
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=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_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
insmod png
if background_image /usr/share/images/desktop-base/lines-grub.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-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.2.0-1-amd64 ...'
linux /boot/vmlinuz-4.2.0-1-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.2.0-1-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-e3631277-c4d0-460e-a2a3-6de16013e050' {
menuentry 'Debian GNU/Linux, with Linux 4.2.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-1-amd64-advanced-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.2.0-1-amd64 ...'
linux /boot/vmlinuz-4.2.0-1-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.2.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.2.0-1-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-1-amd64-init-sysvinit-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.2.0-1-amd64 ...'
linux /boot/vmlinuz-4.2.0-1-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet init=/lib/sysvinit/init
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.2.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.2.0-1-amd64 (systemd)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-1-amd64-init-systemd-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.2.0-1-amd64 ...'
linux /boot/vmlinuz-4.2.0-1-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet init=/lib/systemd/systemd
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.2.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.2.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.2.0-1-amd64-recovery-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.2.0-1-amd64 ...'
linux /boot/vmlinuz-4.2.0-1-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.2.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.1.0-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.0-2-amd64-advanced-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.1.0-2-amd64 ...'
linux /boot/vmlinuz-4.1.0-2-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.1.0-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.1.0-2-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.0-2-amd64-init-sysvinit-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.1.0-2-amd64 ...'
linux /boot/vmlinuz-4.1.0-2-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet init=/lib/sysvinit/init
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.1.0-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.1.0-2-amd64 (systemd)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.0-2-amd64-init-systemd-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.1.0-2-amd64 ...'
linux /boot/vmlinuz-4.1.0-2-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet init=/lib/systemd/systemd
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.1.0-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.1.0-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.0-2-amd64-recovery-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.1.0-2-amd64 ...'
linux /boot/vmlinuz-4.1.0-2-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.1.0-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.1.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.0-1-amd64-advanced-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.1.0-1-amd64 ...'
linux /boot/vmlinuz-4.1.0-1-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.1.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.1.0-1-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.0-1-amd64-init-sysvinit-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.1.0-1-amd64 ...'
linux /boot/vmlinuz-4.1.0-1-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet init=/lib/sysvinit/init
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.1.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.1.0-1-amd64 (systemd)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.0-1-amd64-init-systemd-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.1.0-1-amd64 ...'
linux /boot/vmlinuz-4.1.0-1-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet init=/lib/systemd/systemd
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.1.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.1.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.0-1-amd64-recovery-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.1.0-1-amd64 ...'
linux /boot/vmlinuz-4.1.0-1-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.1.0-1-amd64
}
menuentry 'Debian GNU/Linux, with 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-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.0.0-2-amd64 ...'
linux /boot/vmlinuz-4.0.0-2-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/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-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.0.0-2-amd64 ...'
linux /boot/vmlinuz-4.0.0-2-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet init=/lib/sysvinit/init
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.0.0-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.0.0-2-amd64 (systemd)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-2-amd64-init-systemd-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.0.0-2-amd64 ...'
linux /boot/vmlinuz-4.0.0-2-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet init=/lib/systemd/systemd
echo 'Loading initial ramdisk ...'
initrd /boot/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-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.0.0-2-amd64 ...'
linux /boot/vmlinuz-4.0.0-2-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.0.0-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.0.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-1-amd64-advanced-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.0.0-1-amd64 ...'
linux /boot/vmlinuz-4.0.0-1-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.0.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.0.0-1-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-1-amd64-init-sysvinit-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.0.0-1-amd64 ...'
linux /boot/vmlinuz-4.0.0-1-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet init=/lib/sysvinit/init
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.0.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.0.0-1-amd64 (systemd)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-1-amd64-init-systemd-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.0.0-1-amd64 ...'
linux /boot/vmlinuz-4.0.0-1-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet init=/lib/systemd/systemd
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.0.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.0.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-1-amd64-recovery-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 4.0.0-1-amd64 ...'
linux /boot/vmlinuz-4.0.0-1-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.0.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 3.16.0-4-amd64 ...'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-init-sysvinit-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 3.16.0-4-amd64 ...'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet init=/lib/sysvinit/init
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (systemd)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-init-systemd-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 3.16.0-4-amd64 ...'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro quiet init=/lib/systemd/systemd
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-e3631277-c4d0-460e-a2a3-6de16013e050' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' e3631277-c4d0-460e-a2a3-6de16013e050
else
search --no-floppy --fs-uuid --set=root e3631277-c4d0-460e-a2a3-6de16013e050
fi
echo 'Loading Linux 3.16.0-4-amd64 ...'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=e3631277-c4d0-460e-a2a3-6de16013e050 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-4-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/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 2015-10-07 10:55:27 ata-ST3500418AS_6VM8TTF0 -> ../../sda
lrwxrwxrwx 1 root root 10 2015-10-07 10:55:33 ata-ST3500418AS_6VM8TTF0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2015-10-07 10:55:29 ata-ST3500418AS_6VM8TTF0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2015-10-07 10:55:29 ata-ST3500418AS_6VM8TTF0-part5 -> ../../sda5
lrwxrwxrwx 1 root root 9 2015-10-07 10:55:25 ata-hp_DDVDW_TS-H653R_R3786GCSB4498100 -> ../../sr0
lrwxrwxrwx 1 root root 9 2015-10-07 10:55:27 wwn-0x5000c5001ec637f8 -> ../../sda
lrwxrwxrwx 1 root root 10 2015-10-07 10:55:33 wwn-0x5000c5001ec637f8-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2015-10-07 10:55:29 wwn-0x5000c5001ec637f8-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2015-10-07 10:55:29 wwn-0x5000c5001ec637f8-part5 -> ../../sda5
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 2015-10-07 10:55:29 6b9bdbfe-fc41-4edf-818b-f378cc8241ba -> ../../sda5
lrwxrwxrwx 1 root root 10 2015-10-07 10:55:33 e3631277-c4d0-460e-a2a3-6de16013e050 -> ../../sda1
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: stretch/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.2.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages grub-common depends on:
ii gettext-base 0.19.6-1
ii libc6 2.19-22
ii libdevmapper1.02.1 2:1.02.104-1
ii libfreetype6 2.6-2
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.67
Versions of packages grub-common suggests:
ii console-setup 1.133
ii desktop-base 8.0.2
pn grub-emu <none>
pn multiboot-doc <none>
pn xorriso <none>
-- no debconf information
More information about the Pkg-grub-devel
mailing list