295 |
--title=\"${title}\${debugtitle}\" --copy-default \ |
--title=\"${title}\${debugtitle}\" --copy-default \ |
296 |
--args=\"root=${rootdevice} ${kernargs} \${debugargs}\" \ |
--args=\"root=${rootdevice} ${kernargs} \${debugargs}\" \ |
297 |
--remove-kernel=\"TITLE=${title}\${debugtitle}\"" |
--remove-kernel=\"TITLE=${title}\${debugtitle}\"" |
|
rungrubby --debug ${ARGS} |
|
298 |
rungrubby ${ARGS} ${makedefault} |
rungrubby ${ARGS} ${makedefault} |
299 |
|
rungrubby --debug ${ARGS} |
300 |
else |
else |
301 |
[[ -n ${verbose} ]] && echo "${grubConfig} does not exist, not running grubby for grub 0.97" |
[[ -n ${verbose} ]] && echo "${grubConfig} does not exist, not running grubby for grub 0.97" |
302 |
fi |
fi |
310 |
${mbargs:+--mbargs=\"${mbargs}\"} \ |
${mbargs:+--mbargs=\"${mbargs}\"} \ |
311 |
--args=\"root=${rootdevice} ${kernargs} \${debugargs}\" \ |
--args=\"root=${rootdevice} ${kernargs} \${debugargs}\" \ |
312 |
--remove-kernel=\"TITLE=${title}\${debugtitle}\"" |
--remove-kernel=\"TITLE=${title}\${debugtitle}\"" |
|
rungrubby --debug ${ARGS} |
|
313 |
rungrubby ${ARGS} ${makedefault} |
rungrubby ${ARGS} ${makedefault} |
314 |
|
rungrubby --debug ${ARGS} |
315 |
else |
else |
316 |
[[ -n ${verbose} ]] && echo "${grub2Config} does not exist, not running grubby for grub 2" |
[[ -n ${verbose} ]] && echo "${grub2Config} does not exist, not running grubby for grub 2" |
317 |
fi |
fi |
326 |
${mbargs:+--mbargs=\"${mbargs}\"} \ |
${mbargs:+--mbargs=\"${mbargs}\"} \ |
327 |
--args=\"root=${rootdevice} ${kernargs} \${debugargs}\" \ |
--args=\"root=${rootdevice} ${kernargs} \${debugargs}\" \ |
328 |
--remove-kernel=\"TITLE=${title}\${debugtitle}\"" |
--remove-kernel=\"TITLE=${title}\${debugtitle}\"" |
|
rungrubby --debug ${ARGS} |
|
329 |
rungrubby ${ARGS} ${makedefault} |
rungrubby ${ARGS} ${makedefault} |
330 |
|
rungrubby --debug ${ARGS} |
331 |
else |
else |
332 |
[[ -n ${verbose} ]] && echo "${grub2EfiConfig} does not exist, not running grubby for grub 2 with UEFI" |
[[ -n ${verbose} ]] && echo "${grub2EfiConfig} does not exist, not running grubby for grub 2 with UEFI" |
333 |
fi |
fi |
342 |
${mbargs:+--mbargs=\"${mbargs}\"} \ |
${mbargs:+--mbargs=\"${mbargs}\"} \ |
343 |
--args=\"root=${rootdevice} ${kernargs} \${debugargs}\" \ |
--args=\"root=${rootdevice} ${kernargs} \${debugargs}\" \ |
344 |
--remove-kernel=\"TITLE=${version}\"" |
--remove-kernel=\"TITLE=${version}\"" |
|
rungrubby --debug ${ARGS} |
|
345 |
rungrubby ${ARGS} ${makedefault} |
rungrubby ${ARGS} ${makedefault} |
346 |
|
rungrubby --debug ${ARGS} |
347 |
|
|
348 |
if [[ -n ${runLilo} ]] |
if [[ -n ${runLilo} ]] |
349 |
then |
then |
370 |
${mbargs:+--mbargs=\"${mbargs}\"} \ |
${mbargs:+--mbargs=\"${mbargs}\"} \ |
371 |
--args=\"root=${rootdevice} ${kernargs} \${debugargs}\" \ |
--args=\"root=${rootdevice} ${kernargs} \${debugargs}\" \ |
372 |
--remove-kernel=\"TITLE=${title}\${debugtitle}\"" |
--remove-kernel=\"TITLE=${title}\${debugtitle}\"" |
|
rungrubby --debug ${ARGS} |
|
373 |
rungrubby ${ARGS} ${makedefault} |
rungrubby ${ARGS} ${makedefault} |
374 |
|
rungrubby --debug ${ARGS} |
375 |
else |
else |
376 |
[[ -n ${verbose} ]] && echo "${extlinuxConfig} does not exist, not running grubby for extlinux" |
[[ -n ${verbose} ]] && echo "${extlinuxConfig} does not exist, not running grubby for extlinux" |
377 |
fi |
fi |
540 |
${removeargs:+--remove-args=\"${removeargs}\"} \ |
${removeargs:+--remove-args=\"${removeargs}\"} \ |
541 |
${mbkernel:+--add-multiboot=\"${mbkernel}\"} \ |
${mbkernel:+--add-multiboot=\"${mbkernel}\"} \ |
542 |
--title=\"${title}\${debugtitle}\"" |
--title=\"${title}\${debugtitle}\"" |
|
rungrubby --debug ${ARGS} |
|
543 |
rungrubby ${ARGS} |
rungrubby ${ARGS} |
544 |
|
rungrubby --debug ${ARGS} |
545 |
else |
else |
546 |
[[ -n ${verbose} ]] && echo "${grubConfig} does not exist, not running grubby" |
[[ -n ${verbose} ]] && echo "${grubConfig} does not exist, not running grubby" |
547 |
fi |
fi |
553 |
${kernargs:+--args=\"${kernargs}\"} \ |
${kernargs:+--args=\"${kernargs}\"} \ |
554 |
${removeargs:+--remove-args=\"${removeargs}\"} \ |
${removeargs:+--remove-args=\"${removeargs}\"} \ |
555 |
--title=\"${title}\${debugtitle}\"" |
--title=\"${title}\${debugtitle}\"" |
|
rungrubby --debug ${ARGS} |
|
556 |
rungrubby ${ARGS} |
rungrubby ${ARGS} |
557 |
|
rungrubby --debug ${ARGS} |
558 |
else |
else |
559 |
[[ -n ${verbose} ]] && echo "${grub2Config} does not exist, not running grubby" |
[[ -n ${verbose} ]] && echo "${grub2Config} does not exist, not running grubby" |
560 |
fi |
fi |
566 |
${INITRD} ${kernargs:+--args=\"${kernargs}\"} \ |
${INITRD} ${kernargs:+--args=\"${kernargs}\"} \ |
567 |
${removeargs:+--remove-args=\"${removeargs}\"} \ |
${removeargs:+--remove-args=\"${removeargs}\"} \ |
568 |
--title=\"${title}\${debugtitle}\"" |
--title=\"${title}\${debugtitle}\"" |
|
rungrubby --debug ${ARGS} |
|
569 |
rungrubby ${ARGS} |
rungrubby ${ARGS} |
570 |
|
rungrubby --debug ${ARGS} |
571 |
else |
else |
572 |
[[ -n ${verbose} ]] && echo "${grub2EfiConfig} does not exist, not running grubby" |
[[ -n ${verbose} ]] && echo "${grub2EfiConfig} does not exist, not running grubby" |
573 |
fi |
fi |
579 |
${kernargs:+--args=\"${kernargs}\"} \ |
${kernargs:+--args=\"${kernargs}\"} \ |
580 |
${removeargs:+--remove-args=\"${removeargs}\"} \ |
${removeargs:+--remove-args=\"${removeargs}\"} \ |
581 |
--title=\"${title}\${debugtitle}\"" |
--title=\"${title}\${debugtitle}\"" |
|
rungrubby --debug ${ARGS} |
|
582 |
rungrubby ${ARGS} |
rungrubby ${ARGS} |
583 |
|
rungrubby --debug ${ARGS} |
584 |
|
|
585 |
if [[ -n ${runLilo} ]] |
if [[ -n ${runLilo} ]] |
586 |
then |
then |
637 |
${DEVTREE} ${DEVTREEDIR} ${INITRD} ${kernargs:+--args=\"${kernargs}\"} \ |
${DEVTREE} ${DEVTREEDIR} ${INITRD} ${kernargs:+--args=\"${kernargs}\"} \ |
638 |
${removeargs:+--remove-args=\"${removeargs}\"} \ |
${removeargs:+--remove-args=\"${removeargs}\"} \ |
639 |
--title=\"${title}\${debugtitle}\"" |
--title=\"${title}\${debugtitle}\"" |
|
rungrubby --debug ${ARGS} |
|
640 |
rungrubby ${ARGS} |
rungrubby ${ARGS} |
641 |
|
rungrubby --debug ${ARGS} |
642 |
else |
else |
643 |
[[ -n ${verbose} ]] && echo "${extlinuxConfig} does not exist, not running grubby" |
[[ -n ${verbose} ]] && echo "${extlinuxConfig} does not exist, not running grubby" |
644 |
fi |
fi |
1040 |
# PPC64LE-only to deal with Petitboot issues |
# PPC64LE-only to deal with Petitboot issues |
1041 |
if [[ ${ARCH} = ppc64le ]] |
if [[ ${ARCH} = ppc64le ]] |
1042 |
then |
then |
1043 |
sync && mountpoint -q /boot && fsfreeze -f /boot && fsfreeze -u /boot |
sync && mountpoint -q /boot && fsfreeze -f /boot && fsfreeze -u /boot |
1044 |
fi |
fi |
1045 |
|
|
1046 |
exit 0 |
exit 0 |