# This is what I used to do the upgrade and what I'm in right now typing this.
menuentry 'Fedora Linux, with Linux 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_msdos
insmod ext2
set root='(/dev/sdg,msdos3)'
search --no-floppy --fs-uuid --set=root 88a80606-d874-4587-917a-8e4f68994ab3
echo 'Loading Linux 3.3.5-2.fc16.x86_64 ...'
linux /vmlinuz-3.3.5-2.fc16.x86_64 root=/dev/mapper/luks-416c0cf4-4bde-41e0-8372-d4cfcb5e9d09 ro rd.md=0 rd.lvm=0 rd.dm=0 KEYTABLE=us quiet rd.luks.uuid=luks-416c0cf4-4bde-41e0-8372-d4cfcb5e9d09 rhgb SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.3.5-2.fc16.x86_64.img
}
# This is a hack I did to force grub2-mkconfig to generate an entry for me. I just created two soft symlinks to the actual kernal and initrd under /boot/upgrade
menuentry 'Fedora Linux, with Linux upgrade' --class fedora --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(/dev/sdg,msdos3)'
search --no-floppy --fs-uuid --set=root 88a80606-d874-4587-917a-8e4f68994ab3
echo 'Loading Linux upgrade ...'
linux /vmlinuz-upgrade root=/dev/mapper/luks-416c0cf4-4bde-41e0-8372-d4cfcb5e9d09 ro rd.md=0 rd.lvm=0 rd.dm=0 KEYTABLE=us quiet rd.luks.uuid=luks-416c0cf4-4bde-41e0-8372-d4cfcb5e9d09 rhgb SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
echo 'Loading initial ramdisk ...'
initrd /initramfs-upgrade.img
}
# This is through grub.d/40_custom that I added.
menuentry 'Fedora Linux, with Linux upgrade' --class fedora --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(/dev/sdg,msdos3)'
search --no-floppy --fs-uuid --set=root 88a80606-d874-4587-917a-8e4f68994ab3
echo 'Loading Linux upgrade ...'
linux /upgrade/vmlinuz root=/dev/mapper/luks-416c0cf4-4bde-41e0-8372-d4cfcb5e9d09 ro rd.md=0 rd.lvm=0 rd.dm=0 KEYTABLE=us quiet rd.luks.uuid=luk
s-416c0cf4-4bde-41e0-8372-d4cfcb5e9d09 rhgb SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
echo 'Loading initial ramdisk ...'
initrd /upgrade/initrd.img
}
user@localhost ~: df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 51096428 37475572 11060960 78% /
devtmpfs 1980584 4 1980580 1% /dev
tmpfs 2024720 216 2024504 1% /dev/shm
/dev/mapper/luks-416c0cf4-4bde-41e0-8372-d4cfcb5e9d09 51096428 37475572 11060960 78% /
tmpfs 2024720 52480 1972240 3% /run
tmpfs 2024720 0 2024720 0% /sys/fs/cgroup
tmpfs 2024720 0 2024720 0% /media
/dev/md0 321978840 11360172 294501420 4% /mnt/raid
/dev/sdc3 508745 263242 219903 55% /boot