View | Details | Raw Unified | Return to bug 148461
Collapse All | Expand All

(-)rpm/post.sh (-2 / +4 lines)
Lines 68-81 Link Here
68
		if [ -n "$1" ] && (( ($1*100 + $2) * 100 + $3 >= 20616)); then
68
		if [ -n "$1" ] && (( ($1*100 + $2) * 100 + $3 >= 20616)); then
69
		    update_bootloader --image /boot/$image.previous \
69
		    update_bootloader --image /boot/$image.previous \
70
				      --initrd /boot/initrd.previous \
70
				      --initrd /boot/initrd.previous \
71
				      --previous --add --force
71
				      --previous --add --force \
72
				      $([[ "$1" =~ -xen ]] && echo --xen)
72
		fi
73
		fi
73
	    fi
74
	    fi
74
	    ;;
75
	    ;;
75
    esac
76
    esac
76
    update_bootloader --image /boot/$image \
77
    update_bootloader --image /boot/$image \
77
		      --initrd /boot/initrd \
78
		      --initrd /boot/initrd \
78
		      --add --force
79
		      --add --force \
80
		      $([[ @FLAVOR@ =~ -xen ]] && echo --xen)
79
81
80
    # Somewhen in the future: use the real image and initrd filenames instead
82
    # Somewhen in the future: use the real image and initrd filenames instead
81
    # of the symlinks, and add/remove by the real filenames.
83
    # of the symlinks, and add/remove by the real filenames.
(-)rpm/postun.sh (-3 lines)
Lines 44-52 Link Here
44
	    relink $this_initrd /boot/initrd
44
	    relink $this_initrd /boot/initrd
45
45
46
	    # Notify the boot loader that a new kernel image is active.
46
	    # Notify the boot loader that a new kernel image is active.
47
	    update_bootloader --image /boot/$image \
48
			      --initrd /boot/initrd \
49
			      --add --force
50
	    refresh_bootloader=1
47
	    refresh_bootloader=1
51
	    break
48
	    break
52
	fi
49
	fi

Return to bug 148461