Don't like ads? PRO users don't see any ads ;-)

Fedora 17 Upgrade Into

By: Hyperspace290 on May 29th, 2012  |  syntax: Bash  |  size: 3.37 KB  |  hits: 64  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # This is what I used to do the upgrade and what I'm in right now typing this.
  2. menuentry 'Fedora Linux, with Linux 3.3.5-2.fc16.x86_64' --class fedora --class gnu-linux --class gnu --class os {
  3.         load_video
  4.         set gfxpayload=keep
  5.         insmod gzio
  6.         insmod part_msdos
  7.         insmod ext2
  8.         set root='(/dev/sdg,msdos3)'
  9.         search --no-floppy --fs-uuid --set=root 88a80606-d874-4587-917a-8e4f68994ab3
  10.         echo    'Loading Linux 3.3.5-2.fc16.x86_64 ...'
  11.         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
  12.         echo    'Loading initial ramdisk ...'
  13.         initrd  /initramfs-3.3.5-2.fc16.x86_64.img
  14. }
  15.  
  16. # 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
  17. menuentry 'Fedora Linux, with Linux upgrade' --class fedora --class gnu-linux --class gnu --class os {
  18.         load_video
  19.         insmod gzio
  20.         insmod part_msdos
  21.         insmod ext2
  22.         set root='(/dev/sdg,msdos3)'
  23.         search --no-floppy --fs-uuid --set=root 88a80606-d874-4587-917a-8e4f68994ab3
  24.         echo    'Loading Linux upgrade ...'
  25.         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
  26.         echo    'Loading initial ramdisk ...'
  27.         initrd  /initramfs-upgrade.img
  28. }
  29.  
  30. # This is through grub.d/40_custom that I added.
  31. menuentry 'Fedora Linux, with Linux upgrade' --class fedora --class gnu-linux --class gnu --class os {
  32.         load_video
  33.         insmod gzio
  34.         insmod part_msdos
  35.         insmod ext2
  36.         set root='(/dev/sdg,msdos3)'
  37.         search --no-floppy --fs-uuid --set=root 88a80606-d874-4587-917a-8e4f68994ab3
  38.         echo    'Loading Linux upgrade ...'
  39.         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
  40. s-416c0cf4-4bde-41e0-8372-d4cfcb5e9d09 rhgb SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
  41.         echo    'Loading initial ramdisk ...'
  42.         initrd  /upgrade/initrd.img
  43. }
  44.  
  45.  
  46. user@localhost ~: df
  47. Filesystem                                            1K-blocks     Used Available Use% Mounted on
  48. rootfs                                                 51096428 37475572  11060960  78% /
  49. devtmpfs                                                1980584        4   1980580   1% /dev
  50. tmpfs                                                   2024720      216   2024504   1% /dev/shm
  51. /dev/mapper/luks-416c0cf4-4bde-41e0-8372-d4cfcb5e9d09  51096428 37475572  11060960  78% /
  52. tmpfs                                                   2024720    52480   1972240   3% /run
  53. tmpfs                                                   2024720        0   2024720   0% /sys/fs/cgroup
  54. tmpfs                                                   2024720        0   2024720   0% /media
  55. /dev/md0                                              321978840 11360172 294501420   4% /mnt/raid
  56. /dev/sdc3                                                508745   263242    219903  55% /boot