Grub2 no Slackware Current


Para alguns isso pode ser classificado como heresia, mas ontem ao rodar um slackpkg install-new, reparei na existência dos pacotes grub e os-prober nos repos do Slack Current, então…

Instalação.

# slackpkg update
# slackpkg install grub os-prober

Configuração.

# grub-mkconfig -o /boot/grub/grub.cfg
# grub-install /dev/sdX

grub-slackware

* onde X é a identificação de seu dispositivo.

Ao reiniciar o Grub tomará o lugar do LILO como Bootloader padrão, é meio feinho mas funciona e bem!

IMG096

Se houver necessidade, modifique o arquivo /etc/default/grub e a seguir execute novamente o comando grub-mkconfig.

# nano /etc/default/grub
# grub-mkconfig -o /boot/grub/grub.cfg
# grub-install /dev/sdX

Meu monstruoso arquivo /boot/grub/grub.cfg ficou assim:

#
# 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
  load_env
fi
set default="0"

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=dejavusansmono
else
insmod part_msdos
insmod ext2
set root='hd2,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd2,msdos5'  f97fe142-9600-4d21-804f-0b1ea8fceb08
else
  search --no-floppy --fs-uuid --set=root f97fe142-9600-4d21-804f-0b1ea8fceb08
fi
    font="/usr/share/grub/dejavusansmono.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=pt_BR
  insmod gettext
fi
terminal_output gfxterm
set timeout=10
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Slackware-14.1 GNU/Linux' --class slackware-14.1 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f97fe142-9600-4d21-804f-0b1ea8fceb08' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd2,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd2,msdos5'  f97fe142-9600-4d21-804f-0b1ea8fceb08
	else
	  search --no-floppy --fs-uuid --set=root f97fe142-9600-4d21-804f-0b1ea8fceb08
	fi
	echo	'Loading Linux 3.10.17-smp ...'
	linux	/boot/vmlinuz-huge-smp-3.10.17-smp root=UUID=f97fe142-9600-4d21-804f-0b1ea8fceb08 ro  
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.gz
}
submenu 'Advanced options for Slackware-14.1 GNU/Linux' $menuentry_id_option 'gnulinux-advanced-f97fe142-9600-4d21-804f-0b1ea8fceb08' {
	menuentry 'Slackware-14.1 GNU/Linux, with Linux 3.10.17-smp' --class slackware-14.1 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.17-smp-advanced-f97fe142-9600-4d21-804f-0b1ea8fceb08' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd2,msdos5'  f97fe142-9600-4d21-804f-0b1ea8fceb08
		else
		  search --no-floppy --fs-uuid --set=root f97fe142-9600-4d21-804f-0b1ea8fceb08
		fi
		echo	'Loading Linux 3.10.17-smp ...'
		linux	/boot/vmlinuz-huge-smp-3.10.17-smp root=UUID=f97fe142-9600-4d21-804f-0b1ea8fceb08 ro  
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.gz
	}
	menuentry 'Slackware-14.1 GNU/Linux, with Linux 3.10.17-smp (recovery mode)' --class slackware-14.1 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.17-smp-recovery-f97fe142-9600-4d21-804f-0b1ea8fceb08' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd2,msdos5'  f97fe142-9600-4d21-804f-0b1ea8fceb08
		else
		  search --no-floppy --fs-uuid --set=root f97fe142-9600-4d21-804f-0b1ea8fceb08
		fi
		echo	'Loading Linux 3.10.17-smp ...'
		linux	/boot/vmlinuz-huge-smp-3.10.17-smp root=UUID=f97fe142-9600-4d21-804f-0b1ea8fceb08 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.gz
	}
	menuentry 'Slackware-14.1 GNU/Linux, with Linux 3.10.17' --class slackware-14.1 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.17-advanced-f97fe142-9600-4d21-804f-0b1ea8fceb08' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd2,msdos5'  f97fe142-9600-4d21-804f-0b1ea8fceb08
		else
		  search --no-floppy --fs-uuid --set=root f97fe142-9600-4d21-804f-0b1ea8fceb08
		fi
		echo	'Loading Linux 3.10.17 ...'
		linux	/boot/vmlinuz-huge-3.10.17 root=UUID=f97fe142-9600-4d21-804f-0b1ea8fceb08 ro  
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.gz
	}
	menuentry 'Slackware-14.1 GNU/Linux, with Linux 3.10.17 (recovery mode)' --class slackware-14.1 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.17-recovery-f97fe142-9600-4d21-804f-0b1ea8fceb08' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd2,msdos5'  f97fe142-9600-4d21-804f-0b1ea8fceb08
		else
		  search --no-floppy --fs-uuid --set=root f97fe142-9600-4d21-804f-0b1ea8fceb08
		fi
		echo	'Loading Linux 3.10.17 ...'
		linux	/boot/vmlinuz-huge-3.10.17 root=UUID=f97fe142-9600-4d21-804f-0b1ea8fceb08 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.gz
	}
	menuentry 'Slackware-14.1 GNU/Linux, with Linux 3.10.17-smp' --class slackware-14.1 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.17-smp-advanced-f97fe142-9600-4d21-804f-0b1ea8fceb08' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd2,msdos5'  f97fe142-9600-4d21-804f-0b1ea8fceb08
		else
		  search --no-floppy --fs-uuid --set=root f97fe142-9600-4d21-804f-0b1ea8fceb08
		fi
		echo	'Loading Linux 3.10.17-smp ...'
		linux	/boot/vmlinuz-generic-smp-3.10.17-smp root=UUID=f97fe142-9600-4d21-804f-0b1ea8fceb08 ro  
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.gz
	}
	menuentry 'Slackware-14.1 GNU/Linux, with Linux 3.10.17-smp (recovery mode)' --class slackware-14.1 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.17-smp-recovery-f97fe142-9600-4d21-804f-0b1ea8fceb08' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd2,msdos5'  f97fe142-9600-4d21-804f-0b1ea8fceb08
		else
		  search --no-floppy --fs-uuid --set=root f97fe142-9600-4d21-804f-0b1ea8fceb08
		fi
		echo	'Loading Linux 3.10.17-smp ...'
		linux	/boot/vmlinuz-generic-smp-3.10.17-smp root=UUID=f97fe142-9600-4d21-804f-0b1ea8fceb08 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.gz
	}
	menuentry 'Slackware-14.1 GNU/Linux, with Linux 3.10.17' --class slackware-14.1 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.17-advanced-f97fe142-9600-4d21-804f-0b1ea8fceb08' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd2,msdos5'  f97fe142-9600-4d21-804f-0b1ea8fceb08
		else
		  search --no-floppy --fs-uuid --set=root f97fe142-9600-4d21-804f-0b1ea8fceb08
		fi
		echo	'Loading Linux 3.10.17 ...'
		linux	/boot/vmlinuz-generic-3.10.17 root=UUID=f97fe142-9600-4d21-804f-0b1ea8fceb08 ro  
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.gz
	}
	menuentry 'Slackware-14.1 GNU/Linux, with Linux 3.10.17 (recovery mode)' --class slackware-14.1 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.17-recovery-f97fe142-9600-4d21-804f-0b1ea8fceb08' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd2,msdos5'  f97fe142-9600-4d21-804f-0b1ea8fceb08
		else
		  search --no-floppy --fs-uuid --set=root f97fe142-9600-4d21-804f-0b1ea8fceb08
		fi
		echo	'Loading Linux 3.10.17 ...'
		linux	/boot/vmlinuz-generic-3.10.17 root=UUID=f97fe142-9600-4d21-804f-0b1ea8fceb08 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.gz
	}
}

### 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 ###
menuentry 'Microsoft Windows XP Professional (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-06B8A2D7B8A2C491' {
	insmod part_msdos
	insmod ntfs
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'  06B8A2D7B8A2C491
	else
	  search --no-floppy --fs-uuid --set=root 06B8A2D7B8A2C491
	fi
	drivemap -s (hd0) ${root}
	chainloader +1
}
menuentry 'Debian GNU/Linux (7.2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-8932275e-bd8d-446c-b8ba-553774eaa08a' {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 --hint='hd1,msdos3'  8932275e-bd8d-446c-b8ba-553774eaa08a
	else
	  search --no-floppy --fs-uuid --set=root 8932275e-bd8d-446c-b8ba-553774eaa08a
	fi
	linux /boot/vmlinuz-3.10-0.bpo.3-686-pae root=UUID=8932275e-bd8d-446c-b8ba-553774eaa08a ro
	initrd /boot/initrd.img-3.10-0.bpo.3-686-pae
}
submenu 'Advanced options for Debian GNU/Linux (7.2)' $menuentry_id_option 'osprober-gnulinux-advanced-8932275e-bd8d-446c-b8ba-553774eaa08a' {
	menuentry 'Debian GNU/Linux, with Linux 3.10-0.bpo.3-686-pae (on /dev/sdb3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.10-0.bpo.3-686-pae--8932275e-bd8d-446c-b8ba-553774eaa08a' {
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 --hint='hd1,msdos3'  8932275e-bd8d-446c-b8ba-553774eaa08a
		else
		  search --no-floppy --fs-uuid --set=root 8932275e-bd8d-446c-b8ba-553774eaa08a
		fi
		linux /boot/vmlinuz-3.10-0.bpo.3-686-pae root=UUID=8932275e-bd8d-446c-b8ba-553774eaa08a ro
		initrd /boot/initrd.img-3.10-0.bpo.3-686-pae
	}
}

menuentry 'Slackware Linux (Slackware 14.1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-f97fe142-9600-4d21-804f-0b1ea8fceb08' {
	insmod part_msdos
	insmod ext2
	set root='hd2,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd2,msdos5'  f97fe142-9600-4d21-804f-0b1ea8fceb08
	else
	  search --no-floppy --fs-uuid --set=root f97fe142-9600-4d21-804f-0b1ea8fceb08
	fi
	linux /boot/vmlinuz root=/dev/sdb3 ro vga=790
}
submenu 'Advanced options for Slackware Linux (Slackware 14.1)' $menuentry_id_option 'osprober-gnulinux-advanced-f97fe142-9600-4d21-804f-0b1ea8fceb08' {
	menuentry 'Debian on (/dev/sdb3) (on /dev/sdc5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--f97fe142-9600-4d21-804f-0b1ea8fceb08' {
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd2,msdos5'  f97fe142-9600-4d21-804f-0b1ea8fceb08
		else
		  search --no-floppy --fs-uuid --set=root f97fe142-9600-4d21-804f-0b1ea8fceb08
		fi
		linux /boot/vmlinuz root=/dev/sdb3 ro vga=790
	}
	menuentry 'Siduction on (/dev/sdc6) (on /dev/sdc5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--f97fe142-9600-4d21-804f-0b1ea8fceb08' {
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd2,msdos5'  f97fe142-9600-4d21-804f-0b1ea8fceb08
		else
		  search --no-floppy --fs-uuid --set=root f97fe142-9600-4d21-804f-0b1ea8fceb08
		fi
		linux /boot/vmlinuz root=/dev/sdc6 ro vga=790
	}
}

menuentry 'Ubuntu 13.10 (13.10)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-769e7947-fc6b-44b6-ac7e-5e1435b77e3f' {
	insmod part_msdos
	insmod ext2
	set root='hd2,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos6 --hint-efi=hd2,msdos6 --hint-baremetal=ahci2,msdos6 --hint='hd2,msdos6'  769e7947-fc6b-44b6-ac7e-5e1435b77e3f
	else
	  search --no-floppy --fs-uuid --set=root 769e7947-fc6b-44b6-ac7e-5e1435b77e3f
	fi
	linux /boot/vmlinuz-3.11.0-12-generic root=UUID=769e7947-fc6b-44b6-ac7e-5e1435b77e3f ro locale=pt_BR quiet gfxpayload=1024x768x16 splash $vt_handoff
	initrd /boot/initrd.img-3.11.0-12-generic
}
submenu 'Advanced options for Ubuntu 13.10 (13.10)' $menuentry_id_option 'osprober-gnulinux-advanced-769e7947-fc6b-44b6-ac7e-5e1435b77e3f' {
	menuentry 'Ubuntu (on /dev/sdc6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.11.0-12-generic--769e7947-fc6b-44b6-ac7e-5e1435b77e3f' {
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos6 --hint-efi=hd2,msdos6 --hint-baremetal=ahci2,msdos6 --hint='hd2,msdos6'  769e7947-fc6b-44b6-ac7e-5e1435b77e3f
		else
		  search --no-floppy --fs-uuid --set=root 769e7947-fc6b-44b6-ac7e-5e1435b77e3f
		fi
		linux /boot/vmlinuz-3.11.0-12-generic root=UUID=769e7947-fc6b-44b6-ac7e-5e1435b77e3f ro locale=pt_BR quiet gfxpayload=1024x768x16 splash $vt_handoff
		initrd /boot/initrd.img-3.11.0-12-generic
	}
	menuentry 'Ubuntu, com Linux 3.11.0-12-generic (on /dev/sdc6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.11.0-12-generic--769e7947-fc6b-44b6-ac7e-5e1435b77e3f' {
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos6 --hint-efi=hd2,msdos6 --hint-baremetal=ahci2,msdos6 --hint='hd2,msdos6'  769e7947-fc6b-44b6-ac7e-5e1435b77e3f
		else
		  search --no-floppy --fs-uuid --set=root 769e7947-fc6b-44b6-ac7e-5e1435b77e3f
		fi
		linux /boot/vmlinuz-3.11.0-12-generic root=UUID=769e7947-fc6b-44b6-ac7e-5e1435b77e3f ro locale=pt_BR quiet gfxpayload=1024x768x16 splash $vt_handoff
		initrd /boot/initrd.img-3.11.0-12-generic
	}
	menuentry 'Ubuntu, com Linux 3.8.0-31-generic (on /dev/sdc6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.8.0-31-generic--769e7947-fc6b-44b6-ac7e-5e1435b77e3f' {
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos6 --hint-efi=hd2,msdos6 --hint-baremetal=ahci2,msdos6 --hint='hd2,msdos6'  769e7947-fc6b-44b6-ac7e-5e1435b77e3f
		else
		  search --no-floppy --fs-uuid --set=root 769e7947-fc6b-44b6-ac7e-5e1435b77e3f
		fi
		linux /boot/vmlinuz-3.8.0-31-generic root=UUID=769e7947-fc6b-44b6-ac7e-5e1435b77e3f ro locale=pt_BR quiet gfxpayload=1024x768x16 splash $vt_handoff
		initrd /boot/initrd.img-3.8.0-31-generic
	}
}

menuentry 'Debian GNU/Linux (6.0.7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-4a42b8e1-94bc-4938-9fbe-cf3e5e726472' {
	insmod part_msdos
	insmod ext2
	set root='hd2,msdos7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos7 --hint-efi=hd2,msdos7 --hint-baremetal=ahci2,msdos7 --hint='hd2,msdos7'  4a42b8e1-94bc-4938-9fbe-cf3e5e726472
	else
	  search --no-floppy --fs-uuid --set=root 4a42b8e1-94bc-4938-9fbe-cf3e5e726472
	fi
	linux /boot/vmlinuz-3.2.0-0.bpo.4-686-pae root=UUID=4a42b8e1-94bc-4938-9fbe-cf3e5e726472 ro quiet
	initrd /boot/initrd.img-3.2.0-0.bpo.4-686-pae
}
submenu 'Advanced options for Debian GNU/Linux (6.0.7)' $menuentry_id_option 'osprober-gnulinux-advanced-4a42b8e1-94bc-4938-9fbe-cf3e5e726472' {
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-0.bpo.4-686-pae (on /dev/sdc7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-0.bpo.4-686-pae--4a42b8e1-94bc-4938-9fbe-cf3e5e726472' {
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos7 --hint-efi=hd2,msdos7 --hint-baremetal=ahci2,msdos7 --hint='hd2,msdos7'  4a42b8e1-94bc-4938-9fbe-cf3e5e726472
		else
		  search --no-floppy --fs-uuid --set=root 4a42b8e1-94bc-4938-9fbe-cf3e5e726472
		fi
		linux /boot/vmlinuz-3.2.0-0.bpo.4-686-pae root=UUID=4a42b8e1-94bc-4938-9fbe-cf3e5e726472 ro quiet
		initrd /boot/initrd.img-3.2.0-0.bpo.4-686-pae
	}
}

menuentry 'Arch' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-159da4da-5afe-4ca3-bf06-66ed8bf9c5b9' {
	insmod part_msdos
	insmod ext2
	set root='hd2,msdos8'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos8 --hint-efi=hd2,msdos8 --hint-baremetal=ahci2,msdos8 --hint='hd2,msdos8'  159da4da-5afe-4ca3-bf06-66ed8bf9c5b9
	else
	  search --no-floppy --fs-uuid --set=root 159da4da-5afe-4ca3-bf06-66ed8bf9c5b9
	fi
	linux /boot/vmlinuz-linux root=UUID=159da4da-5afe-4ca3-bf06-66ed8bf9c5b9 rw
	initrd /boot/initramfs-linux.img
}
submenu 'Advanced options for Arch' $menuentry_id_option 'osprober-gnulinux-advanced-159da4da-5afe-4ca3-bf06-66ed8bf9c5b9' {
	menuentry 'Arch Linux, com o Linux core repo kernel (on /dev/sdc8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--159da4da-5afe-4ca3-bf06-66ed8bf9c5b9' {
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos8'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos8 --hint-efi=hd2,msdos8 --hint-baremetal=ahci2,msdos8 --hint='hd2,msdos8'  159da4da-5afe-4ca3-bf06-66ed8bf9c5b9
		else
		  search --no-floppy --fs-uuid --set=root 159da4da-5afe-4ca3-bf06-66ed8bf9c5b9
		fi
		linux /boot/vmlinuz-linux root=UUID=159da4da-5afe-4ca3-bf06-66ed8bf9c5b9 rw
		initrd /boot/initramfs-linux.img
	}
	menuentry 'Arch Linux, with Linux core repo kernel (Fallback initramfs) (on /dev/sdc8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--159da4da-5afe-4ca3-bf06-66ed8bf9c5b9' {
		insmod part_msdos
		insmod ext2
		set root='hd2,msdos8'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos8 --hint-efi=hd2,msdos8 --hint-baremetal=ahci2,msdos8 --hint='hd2,msdos8'  159da4da-5afe-4ca3-bf06-66ed8bf9c5b9
		else
		  search --no-floppy --fs-uuid --set=root 159da4da-5afe-4ca3-bf06-66ed8bf9c5b9
		fi
		linux /boot/vmlinuz-linux root=UUID=159da4da-5afe-4ca3-bf06-66ed8bf9c5b9 rw
		initrd /boot/initramfs-linux-fallback.img
	}
}

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

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

Slackware 14.

Por usar o Slack Current não garanto que os pacotes abaixo funcionem no Slackware14, em todo caso seguem os links para aqueles que quiserem testá-los.

i686:

# wget -nv http://mirrors.slackware.com/slackware/slackware-current/slackware/a/grub-2.00-i486-2.txz
# wget -nv http://mirrors.slackware.com/slackware/slackware-current/slackware/a/os-prober-1.63-i486-1.txz
# installpkg *.txz

amd64:

# wget -nv http://mirrors.slackware.com/slackware/slackware64-current/slackware64/a/grub-2.00-x86_64-2.txz
# wget -nv http://mirrors.slackware.com/slackware/slackware64-current/slackware64/a/os-prober-1.63-x86_64-1.txz
# installpkg *.txz

intÉ!

Anúncios
Grub2 no Slackware Current

6 comentários sobre “Grub2 no Slackware Current

  1. edps, o assunto em questão não tem nada com o post, mas quero saber se você tem ideia de como posso solucionar isso para, definitivamente, usar o Slackware como OS principal. O que acontece é que o cooler do notebook roda no máximo quando estou no Slack, o que não ocorre com o concorrente. Não só o barulho me preocupa, mas o fato de o vento sair quente demais. Será alguma configuração no rc.modules?

    Curtir

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s