280 |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
281 |
then |
then |
282 |
# remove old image entry from grub |
# remove old image entry from grub |
283 |
new-kernel-pkg -v --remove ${KPVER}-${KBRANCH}-${KPBUILD} |
new-kernel-pkg -v --rminitrd --remove ${KPVER}-${KBRANCH}-${KPBUILD} |
284 |
fi |
fi |
285 |
} |
} |
286 |
|
|
301 |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
302 |
then |
then |
303 |
new-kernel-pkg -v --mkinitrd --make-default --install ${KPVER}-${KBRANCH}-${KPBUILD} |
new-kernel-pkg -v --mkinitrd --make-default --install ${KPVER}-${KBRANCH}-${KPBUILD} |
|
# remove the current one |
|
|
new-kernel-pkg -v --rminitrd --remove $(uname -r) |
|
304 |
fi |
fi |
305 |
|
|
306 |
# symlink actual kernel to /boot/vmlinuz etc... |
# symlink actual kernel to /boot/vmlinuz etc... |