Re: /etc/default/grub wird nicht berücksichtigt
Le jeudi 27 octobre 2011 19:38:29, Michael Schmitt a écrit :
> Am 27.10.2011 17:13, schrieb Klaus Becker:
> > Le jeudi 27 octobre 2011 15:05:53, Michael Hierweck a écrit :
> >> Hallo Klaus,
> >>
> >> update-grub ruft grub-mkconfig auf und lässt dieses die Konfiguration
> >> (/boot/grub/grub.cfg) unter Berücksichtigung der Werte aus
> >> /etc/default/grub und /etc/grub.d erzeugen.
> >>
> >> Prüfe doch als erstes, ob deine Änerungen nach /boot/grub/grub.cfg
> >> übernommen werden.
> >>
> >> Wenn nicht, rufe grub-mkconfig mal zu Fuß auf, mit "set -x" zum Debuggen.
> >>
> >> Wenn doch, vermute ich, dass grub einer anderen Installation verwendung
> >> findet. (Stichwort: grub-install aus der richtigen Installation und
> >> passen grub und gewähltes Boot-Device im BIOS zusammen - falls BIOS,
> >> grub mit EFI habe ich noch vor mir...)
> >>
> >> Viele Grüße
> >>
> >> Michael
> >>
> >>
> > hab' ich alles ausprobiert, bringt nichts.
> >
> > "grub-mkconfig set -x" gibt es nicht, jedenfalls nicht unter Squeeze:
> >
> > # grub-mkconfig set -x
> > Unrecognized option `-x'
> > Usage: grub-mkconfig [OPTION]
> > Generate a grub config file
> > -o, --output=FILE output generated config to FILE [default=stdout]
> > -h, --help print this message and exit
> > -v, --version print the version information and exit
> >
> > Ich habe alles von sda1 ausgeführt:
> > - grub-install /dev/sda1
> > - vi /etc/default/grub
> > - update-grub
> >
> > Gruss
> > Klaus
> Mein Namensvetter meinte, Du sollst den Befehl "set -x" direkt in
> /usr/sbin/grub-mkconfig (ein Shellskript) als zweite Zeile (oder an
> anderer sinniger Stelle) schreiben und danach ausführen.
>
> Grüße
> Michael
ok, hier ist das Resultat. Ich sehe vor allem
+ GRUB_DISABLE_LINUX_RECOVERY=true
Das bedeutet doch sicher, dass meine Option akzeptiert ist. Aber iche auch z. B.
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)
Klaus
# grub-mkconfig
+ transform=s,x,x,
+ prefix=/usr
+ exec_prefix=/usr
+ sbindir=/usr/sbin
+ libdir=/usr/lib
+ sysconfdir=/etc
+ PACKAGE_NAME=GRUB
+ PACKAGE_VERSION=1.98+20100804-14+squeeze1
+ host_os=linux-gnu
+ datarootdir=/usr/share
+ datadir=/usr/share
+ sed s,x,x,
+ echo grub
+ pkgdatadir=/usr/share/grub
+ grub_cfg=
+ grub_mkconfig_dir=/etc/grub.d
+ basename /usr/sbin/grub-mkconfig
+ self=grub-mkconfig
+ echo grub-mkdevicemap
+ sed s,x,x,
+ grub_mkdevicemap=/usr/sbin/grub-mkdevicemap
+ sed s,x,x,
+ echo grub-probe
+ grub_probe=/usr/sbin/grub-probe
+ test 0 -gt 0
+ . /usr/lib/grub/grub-mkconfig_lib
+ transform=s,x,x,
+ prefix=/usr
+ exec_prefix=/usr
+ datarootdir=/usr/share
+ datadir=/usr/share
+ bindir=/usr/bin
+ sbindir=/usr/sbin
+ echo grub
+ sed s,x,x,
+ pkgdatadir=/usr/share/grub
+ test x/usr/sbin/grub-probe = x
+ test x = x
+ echo grub-mkrelpath
+ sed s,x,x,
+ grub_mkrelpath=/usr/bin/grub-mkrelpath
+ which gettext
+
+ gettext=gettext
+ sed s,x,x,
+ echo /boot/grub
+ GRUB_PREFIX=/boot/grub
+ [ x = x ]
+ id -u
+ EUID=0
+ [ 0 != 0 ]
+ set /usr/sbin/grub-mkdevicemap dummy
+ test -f /usr/sbin/grub-mkdevicemap
+ :
+ set /usr/sbin/grub-probe dummy
+ test -f /usr/sbin/grub-probe
+ :
+ mkdir -p /boot/grub
+ test -e /boot/grub/device.map
+ :
+ /usr/sbin/grub-probe --target=device /
+ GRUB_DEVICE=/dev/sda1
+ /usr/sbin/grub-probe --device /dev/sda1 --target=fs_uuid
+ GRUB_DEVICE_UUID=8cf3befc-1050-43c1-a604-cfa66bf79f22
+ /usr/sbin/grub-probe --target=device /boot
+ GRUB_DEVICE_BOOT=/dev/sda1
+ /usr/sbin/grub-probe --device /dev/sda1 --target=fs_uuid
+ GRUB_DEVICE_BOOT_UUID=8cf3befc-1050-43c1-a604-cfa66bf79f22
+ /usr/sbin/grub-probe --target=fs /
+ GRUB_FS=reiserfs
+ test -f /etc/default/grub
+ . /etc/default/grub
+ GRUB_DEFAULT=0
+ GRUB_TIMEOUT=5
+ lsb_release -i -s
+ GRUB_DISTRIBUTOR=Debian
+ GRUB_CMDLINE_LINUX_DEFAULT=quiet
+ GRUB_CMDLINE_LINUX=
+ GRUB_DISABLE_LINUX_RECOVERY=true
+ GRUB_INIT_TUNE=480 440 1
+ [ x != x ]
+ termoutdefault=0
+ [ x = x ]
+ GRUB_TERMINAL_OUTPUT=gfxterm
+ termoutdefault=1
+ [ xgfxterm = xgfxterm ]
+ test -e /boot/grub/gfxterm.mod
+ [ ! -s /boot/grub/video.lst ]
+ [ -n ]
+ path=/usr/share/grub/unicode.pf2
+ is_path_readable_by_grub /usr/share/grub/unicode.pf2
+ path=/usr/share/grub/unicode.pf2
+ test -e /usr/share/grub/unicode.pf2
+ :
+ /usr/sbin/grub-probe -t fs /usr/share/grub/unicode.pf2
+ :
+ return 0
+ GRUB_FONT_PATH=/usr/share/grub/unicode.pf2
+ [ unicode = ascii ]
+ break 2
+ [ -z /usr/share/grub/unicode.pf2 ]
+ export GRUB_DEVICE GRUB_DEVICE_UUID GRUB_DEVICE_BOOT GRUB_DEVICE_BOOT_UUID GRUB_FS GRUB_FONT_PATH GRUB_PRELOAD_MODULES GRUB_PREFIX
+ export GRUB_DEFAULT GRUB_HIDDEN_TIMEOUT GRUB_HIDDEN_TIMEOUT_QUIET GRUB_TIMEOUT GRUB_DEFAULT_BUTTON GRUB_HIDDEN_TIMEOUT_BUTTON GRUB_TIMEOUT_BUTTON GRUB_BUTTON_CMOS_ADDRESS GRUB_DISTRIBUTOR GRUB_CMDLINE_LINUX GRUB_CMDLINE_LINUX_DEFAULT GRUB_CMDLINE_XEN GRUB_CMDLINE_XEN_DEFAULT GRUB_CMDLINE_NETBSD GRUB_CMDLINE_NETBSD_DEFAULT GRUB_TERMINAL_INPUT GRUB_TERMINAL_OUTPUT GRUB_SERIAL_COMMAND GRUB_DISABLE_LINUX_UUID GRUB_DISABLE_LINUX_RECOVERY GRUB_DISABLE_NETBSD_RECOVERY GRUB_VIDEO_BACKEND GRUB_GFXMODE GRUB_BACKGROUND GRUB_THEME GRUB_GFXPAYLOAD_LINUX GRUB_DISABLE_OS_PROBER GRUB_INIT_TUNE GRUB_SAVEDEFAULT GRUB_BADRAM
+ test x != x
+ echo Generating grub.cfg ...
Generating grub.cfg ...
+ cat
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
+ grub_file_is_not_garbage /etc/grub.d/00_header
+ test -f /etc/grub.d/00_header
+ return 0
+ test -x /etc/grub.d/00_header
+ echo
+ echo ### BEGIN /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/00_header ###
+ /etc/grub.d/00_header
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
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 {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8cf3befc-1050-43c1-a604-cfa66bf79f22
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8cf3befc-1050-43c1-a604-cfa66bf79f22
set locale_dir=($root)/boot/grub/locale
set lang=fr
insmod gettext
set timeout=5
play 480 440 1
+ echo ### END /etc/grub.d/00_header ###
### END /etc/grub.d/00_header ###
+ grub_file_is_not_garbage /etc/grub.d/05_debian_theme
+ test -f /etc/grub.d/05_debian_theme
+ return 0
+ test -x /etc/grub.d/05_debian_theme
+ echo
+ echo ### BEGIN /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/05_debian_theme ###
+ /etc/grub.d/05_debian_theme
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8cf3befc-1050-43c1-a604-cfa66bf79f22
Found background image: /usr/share/images/desktop-base/desktop-grub.png
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
set color_normal=light-gray/black
set color_highlight=white/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
+ echo ### END /etc/grub.d/05_debian_theme ###
### END /etc/grub.d/05_debian_theme ###
+ grub_file_is_not_garbage /etc/grub.d/10_linux
+ test -f /etc/grub.d/10_linux
+ return 0
+ test -x /etc/grub.d/10_linux
+ echo
+ echo ### BEGIN /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_linux ###
+ /etc/grub.d/10_linux
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8cf3befc-1050-43c1-a604-cfa66bf79f22
echo 'Chargement de Linux 2.6.32-5-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=8cf3befc-1050-43c1-a604-cfa66bf79f22 ro quiet
echo 'Chargement du disque mémoire initial ...'
initrd /boot/initrd.img-2.6.32-5-amd64
}
+ echo ### END /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###
+ grub_file_is_not_garbage /etc/grub.d/10_linux_proxy
+ test -f /etc/grub.d/10_linux_proxy
+ return 0
+ test -x /etc/grub.d/10_linux_proxy
+ echo
+ echo ### BEGIN /etc/grub.d/10_linux_proxy ###
### BEGIN /etc/grub.d/10_linux_proxy ###
+ /etc/grub.d/10_linux_proxy
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
menuentry "Debian (sda1)" --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8cf3befc-1050-43c1-a604-cfa66bf79f22
echo 'Chargement de Linux 2.6.32-5-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=8cf3befc-1050-43c1-a604-cfa66bf79f22 ro quiet
echo 'Chargement du disque mémoire initial ...'
initrd /boot/initrd.img-2.6.32-5-amd64
}
+ echo ### END /etc/grub.d/10_linux_proxy ###
### END /etc/grub.d/10_linux_proxy ###
+ grub_file_is_not_garbage /etc/grub.d/20_linux_xen
+ test -f /etc/grub.d/20_linux_xen
+ return 0
+ test -x /etc/grub.d/20_linux_xen
+ echo
+ echo ### BEGIN /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_linux_xen ###
+ /etc/grub.d/20_linux_xen
+ echo ### END /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
+ grub_file_is_not_garbage /etc/grub.d/30_os-prober
+ test -f /etc/grub.d/30_os-prober
+ return 0
+ test -x /etc/grub.d/30_os-prober
+ echo
+ echo ### BEGIN /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_os-prober ###
+ /etc/grub.d/30_os-prober
Found Debian GNU/Linux (6.0.2) on /dev/sda11
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-amd64 (on /dev/sda11)" {
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos11)'
search --no-floppy --fs-uuid --set 179e8753-5b0f-4aa8-95e3-11952a71af4b
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=179e8753-5b0f-4aa8-95e3-11952a71af4b ro quiet
initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode) (on /dev/sda11)" {
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos11)'
search --no-floppy --fs-uuid --set 179e8753-5b0f-4aa8-95e3-11952a71af4b
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=179e8753-5b0f-4aa8-95e3-11952a71af4b ro single
initrd /boot/initrd.img-2.6.32-5-amd64
}
Found Mandriva Linux 2010.1 (2010.1) on /dev/sda9
menuentry "Mandriva (on /dev/sda9)" {
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos9)'
search --no-floppy --fs-uuid --set 34b3dff6-6da2-4195-a392-a23d33592bf2
linux /boot/vmlinuz BOOT_IMAGE=Mandriva root=UUID=34b3dff6-6da2-4195-a392-a23d33592bf2 resume=UUID=deed2d86-3d63-4b0c-a479-6ec19ce41d94 splash=silent vga=788
initrd (hd0,8)/boot/initrd.img
}
menuentry "linux (on /dev/sda9)" {
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos9)'
search --no-floppy --fs-uuid --set 34b3dff6-6da2-4195-a392-a23d33592bf2
linux /boot/vmlinuz BOOT_IMAGE=linux root=UUID=34b3dff6-6da2-4195-a392-a23d33592bf2 resume=UUID=deed2d86-3d63-4b0c-a479-6ec19ce41d94 splash=silent vga=788
initrd (hd0,8)/boot/initrd.img
}
menuentry "desktop 2.6.33.7-2 (on /dev/sda9)" {
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos9)'
search --no-floppy --fs-uuid --set 34b3dff6-6da2-4195-a392-a23d33592bf2
linux /boot/vmlinuz-2.6.33.7-desktop-2mnb BOOT_IMAGE=desktop_2.6.33.7-2 root=UUID=34b3dff6-6da2-4195-a392-a23d33592bf2 resume=UUID=deed2d86-3d63-4b0c-a479-6ec19ce41d94 splash=silent vga=788
initrd (hd0,8)/boot/initrd-2.6.33.7-desktop-2mnb.img
}
Found Debian GNU/Linux (6.0.3) on /dev/sdb1
menuentry "Debian, avec Linux 2.6.32-5-amd64 (on /dev/sdb1)" {
insmod part_msdos
insmod reiserfs
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 4c9996a8-a3eb-4905-aacf-8793ff33454f
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=8cf3befc-1050-43c1-a604-cfa66bf79f22 ro quiet
initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry "Debian, avec Linux 2.6.32-5-amd64 (mode de dépannage) (on /dev/sdb1)" {
insmod part_msdos
insmod reiserfs
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 4c9996a8-a3eb-4905-aacf-8793ff33454f
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=8cf3befc-1050-43c1-a604-cfa66bf79f22 ro single
initrd /boot/initrd.img-2.6.32-5-amd64
}
+ echo ### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
+ grub_file_is_not_garbage /etc/grub.d/40_custom
+ test -f /etc/grub.d/40_custom
+ return 0
+ test -x /etc/grub.d/40_custom
+ echo
+ echo ### BEGIN /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/40_custom ###
+ /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.
+ echo ### END /etc/grub.d/40_custom ###
### END /etc/grub.d/40_custom ###
+ grub_file_is_not_garbage /etc/grub.d/41_custom
+ test -f /etc/grub.d/41_custom
+ return 0
+ test -x /etc/grub.d/41_custom
+ echo
+ echo ### BEGIN /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/41_custom ###
+ /etc/grub.d/41_custom
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
+ echo ### END /etc/grub.d/41_custom ###
### END /etc/grub.d/41_custom ###
+ grub_file_is_not_garbage /etc/grub.d/README
+ test -f /etc/grub.d/README
+ return 0
+ test -x /etc/grub.d/README
+ grub_file_is_not_garbage /etc/grub.d/bin
+ test -f /etc/grub.d/bin
+ return 1
+ grub_file_is_not_garbage /etc/grub.d/copie
+ test -f /etc/grub.d/copie
+ return 1
+ grub_file_is_not_garbage /etc/grub.d/proxifiedScripts
+ test -f /etc/grub.d/proxifiedScripts
+ return 1
+ [ x != x ]
+ test x != x
+ echo done
done
Reply to: