I had been upgrading my laptop fedora into fedora core 17. I’m using preupgrade to do the work. I’ve been using preupgrade since fedora core 14. But in the process i encounter some error which you may neither say its minor nor major problem.
Well, here’s my first error:
1)grubby fatal error: unable to find a suitable template after preupgrade
After reading the manual only i realize that it was because of my /boot was not enough 300mb.
Solution only needs you to type below command to generate the grub again:
$ grub2-mkconfig -o /boot/grub2/grub.cfg
if you can still can not boot, maybe you try my grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-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 [ "${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
fifunction 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
}set timeout=5
### END /etc/grub.d/00_header ###### BEGIN /etc/grub.d/10_linux ###
menuentry ‘Fedora (3.3.6-3.fc16.x86_64)’ –class fedora –class gnu-linux –class gnu –class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root=’(hd0,gpt2)’
search –no-floppy –fs-uuid –set=root 3521a578-5829-4fb4-a485-8c097df77d07
echo ‘Loading Fedora (3.3.6-3.fc16.x86_64)’
linux /vmlinuz-3.3.6-3.fc16.x86_64 root=UUID=57459a16-97a0-46a4-8e71-cc3ec0ca4a3e ro KEYTABLE=dvorak rd.lvm=0 rd.dm=0 quiet SYSFONT=latarcyrheb-sun16 rhgb rd.md.uuid=60956781:734d95ba:424311e2:796702a7 rd.luks=0 LANG=en_US.UTF-8
echo ‘Loading initial ramdisk …’
initrd /initramfs-3.3.6-3.fc16.x86_64.img
}
menuentry ‘Fedora (3.3.5-2.fc16.x86_64)’ –class fedora –class gnu-linux –class gnu –class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root=’(hd0,gpt2)’
search –no-floppy –fs-uuid –set=root 3521a578-5829-4fb4-a485-8c097df77d07
echo ‘Loading Fedora (3.3.5-2.fc16.x86_64)’
linux /vmlinuz-3.3.5-2.fc16.x86_64 root=UUID=57459a16-97a0-46a4-8e71-cc3ec0ca4a3e ro KEYTABLE=dvorak rd.lvm=0 rd.dm=0 quiet SYSFONT=latarcyrheb-sun16 rhgb rd.md.uuid=60956781:734d95ba:424311e2:796702a7 rd.luks=0 LANG=en_US.UTF-8
echo ‘Loading initial ramdisk …’
initrd /initramfs-3.3.5-2.fc16.x86_64.img
}
### 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/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 $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###
2)shutdown hangs on “sh not found” after preupgrade
Error looks like this when you shutdown or reboot:
Succesfully changed into root pivot.
/shutdown: 8: /lib/dracut/hooks/shutdown/30md-shutdown.sh: dmsetup: not found
/shutdown: 9: /lib/dracut/hooks/shutdown/30md-shutdown.sh: mdadm: not found
/shutdown: 8: /lib/dracut/hooks/shutdown/30md-shutdown.sh: dmsetup: not found
/shutdown: 9: /lib/dracut/hooks/shutdown/30md-shutdown.sh: mdadm: not found
/shutdown: 13: /lib/dracut/hooks/shutdown/30md-shutdown.sh: cat: not found
/shutdown: 89: /shutdown: poweroff: not found
dracut Warning: Signal caught!
/usr/udev/console_init: 14: /lib/udev/console_init: kbd_mode: not found
/usr/udev/console_init: 22: /lib/udev/console_init: stty: not found
/usr/udev/console_init: 49: /lib/udev/console_init: setfont: not found
/usr/udev/console_init: 39: /lib/udev/console_init: loadkeys: not found
dropping to debug shell.
/shutdown: 33: /shutdown: sh: not found
[28228.459553] Kernel panic – not syncing: attempted to kill init!
[28228.459596] Pid: 1, comm: Sshutdown Tainted: G C 0 3.3.5-2.fc16.i686 #1
[28228.459639] Call trace:
[28228.459688] [
Solution after you type in below command:
$ dracut -f
(the “dracut -f” command will fix this)
Overall the upgrading it smooth.

