Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [baz@jackodesktop ~]$ su
- Password:
- [root@jackodesktop baz]# sh -ex /usr/sbin/grub2-mkconfig
- + transform='s&^&&;s,grub,grub2,'
- + prefix=/usr
- + exec_prefix=/usr
- + sbindir=/usr/sbin
- + libdir=/usr/lib
- + sysconfdir=/etc
- + package_version=1.98
- + datarootdir=/usr/share
- + datadir=/usr/share
- ++ sed 's&^&&;s,grub,grub2,'
- ++ echo grub
- + pkgdatadir=/usr/share/grub2
- ++ sed 's&^&&;s,grub,grub2,'
- ++ echo /boot/grub
- + grub_prefix=/boot/grub2
- + grub_cfg=
- + grub_mkconfig_dir=/etc/grub.d
- ++ echo grub-mkdevicemap
- ++ sed 's&^&&;s,grub,grub2,'
- + grub_mkdevicemap=/usr/sbin/grub2-mkdevicemap
- ++ sed 's&^&&;s,grub,grub2,'
- ++ echo grub-probe
- + grub_probe=/usr/sbin/grub2-probe
- + . /usr/lib/grub/grub-mkconfig_lib
- ++ transform='s&^&&;s,grub,grub2,'
- ++ prefix=/usr
- ++ exec_prefix=/usr
- ++ datarootdir=/usr/share
- ++ datadir=/usr/share
- ++ bindir=/usr/bin
- ++ sbindir=/usr/sbin
- +++ echo grub
- +++ sed 's&^&&;s,grub,grub2,'
- ++ pkgdatadir=/usr/share/grub2
- ++ test x/usr/sbin/grub2-probe = x
- ++ test x = x
- +++ echo grub-mkrelpath
- +++ sed 's&^&&;s,grub,grub2,'
- ++ grub_mkrelpath=/usr/bin/grub2-mkrelpath
- + '[' x0 = x ']'
- + '[' 0 '!=' 0 ']'
- + set /usr/sbin/grub2-mkdevicemap dummy
- + test -f /usr/sbin/grub2-mkdevicemap
- + :
- + set /usr/sbin/grub2-probe dummy
- + test -f /usr/sbin/grub2-probe
- + :
- + mkdir -p /boot/grub2
- + test -e /boot/grub2/device.map
- + :
- ++ /usr/sbin/grub2-probe --target=device /
- + GRUB_DEVICE=/dev/sda21
- ++ /usr/sbin/grub2-probe --device /dev/sda21 --target=fs_uuid
- + GRUB_DEVICE_UUID=6f367e9a-3377-41cb-afad-fbebc142fa54
- ++ /usr/sbin/grub2-probe --target=device /boot
- + GRUB_DEVICE_BOOT=/dev/sda21
- ++ /usr/sbin/grub2-probe --device /dev/sda21 --target=fs_uuid
- + GRUB_DEVICE_BOOT_UUID=6f367e9a-3377-41cb-afad-fbebc142fa54
- ++ /usr/sbin/grub2-probe --target=fs /
- + GRUB_FS=ext2
- + test -f /etc/default/grub
- + . /etc/default/grub
- ++ GRUB_THEME=/boot/themes/proto/theme.txt
- + '[' x '!=' x ']'
- + case x${GRUB_TERMINAL_OUTPUT} in
- + test -e /boot/grub2/gfxterm.mod
- ++ head -n 1 /boot/grub2/video.lst
- + GRUB_VIDEO_BACKEND=vbe
- + '[' -n vbe ']'
- + GRUB_TERMINAL_OUTPUT=gfxterm
- + case ${GRUB_TERMINAL_OUTPUT} in
- + '[' -n '' ']'
- + for dir in '${pkgdatadir}' /boot/grub /usr/share/grub
- + for basename in unicode unifont ascii
- + path=/usr/share/grub2/unicode.pf2
- + is_path_readable_by_grub /usr/share/grub2/unicode.pf2
- + path=/usr/share/grub2/unicode.pf2
- + test -e /usr/share/grub2/unicode.pf2
- + return 1
- + continue
- + for basename in unicode unifont ascii
- + path=/usr/share/grub2/unifont.pf2
- + is_path_readable_by_grub /usr/share/grub2/unifont.pf2
- + path=/usr/share/grub2/unifont.pf2
- + test -e /usr/share/grub2/unifont.pf2
- + return 1
- + continue
- + for basename in unicode unifont ascii
- + path=/usr/share/grub2/ascii.pf2
- + is_path_readable_by_grub /usr/share/grub2/ascii.pf2
- + path=/usr/share/grub2/ascii.pf2
- + test -e /usr/share/grub2/ascii.pf2
- + return 1
- + continue
- + for dir in '${pkgdatadir}' /boot/grub /usr/share/grub
- + for basename in unicode unifont ascii
- + path=/boot/grub/unicode.pf2
- + is_path_readable_by_grub /boot/grub/unicode.pf2
- + path=/boot/grub/unicode.pf2
- + test -e /boot/grub/unicode.pf2
- + return 1
- + continue
- + for basename in unicode unifont ascii
- + path=/boot/grub/unifont.pf2
- + is_path_readable_by_grub /boot/grub/unifont.pf2
- + path=/boot/grub/unifont.pf2
- + test -e /boot/grub/unifont.pf2
- + return 1
- + continue
- + for basename in unicode unifont ascii
- + path=/boot/grub/ascii.pf2
- + is_path_readable_by_grub /boot/grub/ascii.pf2
- + path=/boot/grub/ascii.pf2
- + test -e /boot/grub/ascii.pf2
- + return 1
- + continue
- + for dir in '${pkgdatadir}' /boot/grub /usr/share/grub
- + for basename in unicode unifont ascii
- + 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
- + return 1
- + continue
- + for basename in unicode unifont ascii
- + path=/usr/share/grub/unifont.pf2
- + is_path_readable_by_grub /usr/share/grub/unifont.pf2
- + path=/usr/share/grub/unifont.pf2
- + test -e /usr/share/grub/unifont.pf2
- + return 1
- + continue
- + for basename in unicode unifont ascii
- + path=/usr/share/grub/ascii.pf2
- + is_path_readable_by_grub /usr/share/grub/ascii.pf2
- + path=/usr/share/grub/ascii.pf2
- + test -e /usr/share/grub/ascii.pf2
- + return 1
- + continue
- + '[' -z '' ']'
- + unset GRUB_TERMINAL_OUTPUT
- + export GRUB_DEVICE GRUB_DEVICE_UUID GRUB_DEVICE_BOOT GRUB_DEVICE_BOOT_UUID GRUB_FS GRUB_FONT_PATH GRUB_PRELOAD_MODULES GRUB_VIDEO_BACKEND
- + export GRUB_DEFAULT GRUB_HIDDEN_TIMEOUT GRUB_HIDDEN_TIMEOUT_QUIET GRUB_TIMEOUT GRUB_DISTRIBUTOR GRUB_CMDLINE_LINUX GRUB_CMDLINE_LINUX_DEFAULT GRUB_TERMINAL_INPUT GRUB_TERMINAL_OUTPUT GRUB_SERIAL_COMMAND GRUB_DISABLE_LINUX_UUID GRUB_DISABLE_LINUX_RECOVERY GRUB_GFXMODE GRUB_THEME GRUB_GFXPAYLOAD_LINUX GRUB_DISABLE_OS_PROBER GRUB_INIT_TUNE GRUB_SAVEDEFAULT
- + test x '!=' x
- + echo 'Generating grub.cfg ...'
- Generating grub.cfg ...
- + cat
- #
- # DO NOT EDIT THIS FILE
- #
- # It is automatically generated by /usr/sbin/grub2-mkconfig using templates
- # from /etc/grub.d and settings from /etc/default/grub
- #
- + for i in '${grub_mkconfig_dir}/*'
- + case "$i" in
- + grub_file_is_not_garbage /etc/grub.d/00_header
- + test -f /etc/grub.d/00_header
- + case "$1" in
- + 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
- + transform='s&^&&;s,grub,grub2,'
- + prefix=/usr
- + exec_prefix=/usr
- + libdir=/usr/lib
- ++ echo /boot/grub
- ++ sed 's&^&&;s,grub,grub2,'
- + grub_prefix=/boot/grub2
- ++ echo /boot/grub/locale
- ++ sed 's&^&&;s,grub,grub2,'
- + locale_dir=/boot/grub2/locale
- ++ echo en_GB.UTF-8
- ++ cut -d _ -f 1
- + grub_lang=en
- + . /usr/lib/grub/grub-mkconfig_lib
- ++ transform='s&^&&;s,grub,grub2,'
- ++ prefix=/usr
- ++ exec_prefix=/usr
- ++ datarootdir=/usr/share
- ++ datadir=/usr/share
- ++ bindir=/usr/bin
- ++ sbindir=/usr/sbin
- +++ sed 's&^&&;s,grub,grub2,'
- +++ echo grub
- ++ pkgdatadir=/usr/share/grub2
- ++ test x = x
- +++ sed 's&^&&;s,grub,grub2,'
- +++ echo grub-probe
- ++ grub_probe=/usr/sbin/grub2-probe
- ++ test x = x
- +++ echo grub-mkrelpath
- +++ sed 's&^&&;s,grub,grub2,'
- ++ grub_mkrelpath=/usr/bin/grub2-mkrelpath
- + '[' x = x ']'
- + GRUB_DEFAULT=0
- + '[' x0 = xsaved ']'
- + '[' x = x ']'
- + GRUB_TIMEOUT=5
- + '[' x = x ']'
- + GRUB_GFXMODE=640x480
- + cat
- 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
- }
- + case ${GRUB_TERMINAL_INPUT}:${GRUB_TERMINAL_OUTPUT} in
- + case x${GRUB_TERMINAL_INPUT} in
- + case x${GRUB_TERMINAL_OUTPUT} in
- + '[' xen_GB.UTF-8 '!=' xC ']'
- ++ /usr/sbin/grub2-probe --target=device /boot/grub2/locale
- + prepare_grub_to_access_device /dev/sda21
- + device=/dev/sda21
- ++ /usr/sbin/grub2-probe --device /dev/sda21 --target=abstraction
- + abstraction=
- ++ /usr/sbin/grub2-probe --device /dev/sda21 --target=fs
- + fs=ext2
- + for module in '${fs}'
- + echo 'insmod ext2'
- insmod ext2
- ++ /usr/sbin/grub2-probe --device /dev/sda21 --target=drive
- + echo 'set root='\''(hd0,21)'\'''
- set root='(hd0,21)'
- ++ /usr/sbin/grub2-probe --device /dev/sda21 --target=fs_uuid
- + fs_uuid=6f367e9a-3377-41cb-afad-fbebc142fa54
- + echo 'search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54'
- search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
- + cat
- ++ make_system_path_relative_to_its_root /boot/grub2/locale
- +++ /usr/bin/grub2-mkrelpath /boot/grub2/locale
- ++ path=/boot/grub2/locale
- ++ case "`uname 2>/dev/null`" in
- +++ uname
- ++ echo /boot/grub2/locale
- set locale_dir=($root)/boot/grub2/locale
- set lang=en
- insmod gettext
- + '[' x '!=' x ']'
- + cat
- set timeout=5
- + '[' x '!=' x ']'
- + echo '### END /etc/grub.d/00_header ###'
- ### END /etc/grub.d/00_header ###
- + for i in '${grub_mkconfig_dir}/*'
- + case "$i" in
- + for i in '${grub_mkconfig_dir}/*'
- + case "$i" in
- + grub_file_is_not_garbage /etc/grub.d/10_linux
- + test -f /etc/grub.d/10_linux
- + case "$1" in
- + 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.33.7-desktop-69mib
- Found initrd image: /boot/initrd-2.6.33.7-desktop-69mib.img
- menuentry "GNU/Linux, with Linux 2.6.33.7-desktop-69mib" --class gnu-linux --class gnu --class os {
- set gfxpayload=keep
- insmod ext2
- set root='(hd0,21)'
- search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
- echo Loading Linux 2.6.33.7-desktop-69mib ...
- linux /boot/vmlinuz-2.6.33.7-desktop-69mib root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro
- echo Loading initial ramdisk ...
- initrd /boot/initrd-2.6.33.7-desktop-69mib.img
- }
- menuentry "GNU/Linux, with Linux 2.6.33.7-desktop-69mib (recovery mode)" --class gnu-linux --class gnu --class os {
- set gfxpayload=keep
- insmod ext2
- set root='(hd0,21)'
- search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
- echo Loading Linux 2.6.33.7-desktop-69mib ...
- linux /boot/vmlinuz-2.6.33.7-desktop-69mib root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro single
- echo Loading initial ramdisk ...
- initrd /boot/initrd-2.6.33.7-desktop-69mib.img
- }
- Found linux image: /boot/vmlinuz-2.6.33.7-desktop-2mnb
- Found initrd image: /boot/initrd-2.6.33.7-desktop-2mnb.img
- menuentry "GNU/Linux, with Linux 2.6.33.7-desktop-2mnb" --class gnu-linux --class gnu --class os {
- set gfxpayload=keep
- insmod ext2
- set root='(hd0,21)'
- search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
- echo Loading Linux 2.6.33.7-desktop-2mnb ...
- linux /boot/vmlinuz-2.6.33.7-desktop-2mnb root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro
- echo Loading initial ramdisk ...
- initrd /boot/initrd-2.6.33.7-desktop-2mnb.img
- }
- menuentry "GNU/Linux, with Linux 2.6.33.7-desktop-2mnb (recovery mode)" --class gnu-linux --class gnu --class os {
- set gfxpayload=keep
- insmod ext2
- set root='(hd0,21)'
- search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
- echo Loading Linux 2.6.33.7-desktop-2mnb ...
- linux /boot/vmlinuz-2.6.33.7-desktop-2mnb root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro single
- echo Loading initial ramdisk ...
- initrd /boot/initrd-2.6.33.7-desktop-2mnb.img
- }
- Found linux image: /boot/vmlinuz-2.6.33.7-desktop-1mnb
- Found initrd image: /boot/initrd-2.6.33.7-desktop-1mnb.img
- menuentry "GNU/Linux, with Linux 2.6.33.7-desktop-1mnb" --class gnu-linux --class gnu --class os {
- set gfxpayload=keep
- insmod ext2
- set root='(hd0,21)'
- search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
- echo Loading Linux 2.6.33.7-desktop-1mnb ...
- linux /boot/vmlinuz-2.6.33.7-desktop-1mnb root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro
- echo Loading initial ramdisk ...
- initrd /boot/initrd-2.6.33.7-desktop-1mnb.img
- }
- menuentry "GNU/Linux, with Linux 2.6.33.7-desktop-1mnb (recovery mode)" --class gnu-linux --class gnu --class os {
- set gfxpayload=keep
- insmod ext2
- set root='(hd0,21)'
- search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
- echo Loading Linux 2.6.33.7-desktop-1mnb ...
- linux /boot/vmlinuz-2.6.33.7-desktop-1mnb root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro single
- echo Loading initial ramdisk ...
- initrd /boot/initrd-2.6.33.7-desktop-1mnb.img
- }
- Found linux image: /boot/vmlinuz-desktop
- Found initrd image: /boot/initrd-desktop.img
- menuentry "GNU/Linux, with Linux desktop" --class gnu-linux --class gnu --class os {
- insmod ext2
- set root='(hd0,21)'
- search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
- echo Loading Linux desktop ...
- linux /boot/vmlinuz-desktop root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro
- echo Loading initial ramdisk ...
- initrd /boot/initrd-desktop.img
- }
- menuentry "GNU/Linux, with Linux desktop (recovery mode)" --class gnu-linux --class gnu --class os {
- insmod ext2
- set root='(hd0,21)'
- search --no-floppy --fs-uuid --set 6f367e9a-3377-41cb-afad-fbebc142fa54
- echo Loading Linux desktop ...
- linux /boot/vmlinuz-desktop root=UUID=6f367e9a-3377-41cb-afad-fbebc142fa54 ro single
- echo Loading initial ramdisk ...
- initrd /boot/initrd-desktop.img
- }
- + echo '### END /etc/grub.d/10_linux ###'
- ### END /etc/grub.d/10_linux ###
- + for i in '${grub_mkconfig_dir}/*'
- + case "$i" in
- + grub_file_is_not_garbage /etc/grub.d/30_os-prober
- + test -f /etc/grub.d/30_os-prober
- + case "$1" in
- + 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
- + echo '### END /etc/grub.d/30_os-prober ###'
- ### END /etc/grub.d/30_os-prober ###
- + for i in '${grub_mkconfig_dir}/*'
- + case "$i" in
- + grub_file_is_not_garbage /etc/grub.d/40_custom
- + test -f /etc/grub.d/40_custom
- + case "$1" in
- + 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 ###
- + for i in '${grub_mkconfig_dir}/*'
- + case "$i" in
- + grub_file_is_not_garbage /etc/grub.d/90_persistent
- + test -f /etc/grub.d/90_persistent
- + case "$1" in
- + return 0
- + test -x /etc/grub.d/90_persistent
- + echo
- + echo '### BEGIN /etc/grub.d/90_persistent ###'
- ### BEGIN /etc/grub.d/90_persistent ###
- + /etc/grub.d/90_persistent
- + echo '### END /etc/grub.d/90_persistent ###'
- ### END /etc/grub.d/90_persistent ###
- + for i in '${grub_mkconfig_dir}/*'
- + case "$i" in
- + grub_file_is_not_garbage /etc/grub.d/README
- + test -f /etc/grub.d/README
- + case "$1" in
- + return 0
- + test -x /etc/grub.d/README
- + test x '!=' x
- + echo done
- done
- [root@jackodesktop baz]#
Add Comment
Please, Sign In to add comment