Project

General

Profile

Actions

Bug #1427

closed

Typo? in /tmp/post_upgrade_command prevents UP kernel upgrade

Added by Yehuda Katz over 13 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Upgrade
Target version:
Start date:
04/08/2011
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1
Affected Architecture:

Description

From the mailing list:


if [ $KERNELTYPE = "SMP" ]; then
       if [ -f /kernels/kernel_SMP.gz ]; then
               tar xzpf /kernels/kernel_SMP.gz --exclude loader.conf -C /boot/
       fi
fi
if [ $KERNELTYPE = "UP" ]; then
-       if [ -f /kernels/kernel_SMP.gz ]; then-
+       if [ -f /kernels/kernel_uniprocessor.gz ]; then+
               tar xzpf /kernels/kernel_uniprocessor.gz --exclude loader.conf -C /boot/
       fi
fi

Actions #1

Updated by Yehuda Katz over 13 years ago

The formatting of that ticket came out really bad.

if [ $KERNELTYPE = "UP" ]; then

if [ -f /kernels/kernel_SMP.gz ]; then

tar xzpf /kernels/kernel_uniprocessor.gz --exclude loader.conf -C /boot/

fi

fi

Actions #2

Updated by Yehuda Katz over 13 years ago

Let's try one more time...

if [ $KERNELTYPE = "UP" ]; then

if [ -f /kernels/kernel_SMP.gz ]; then
if [ -f /kernels/kernel_uniprocessor.gz ]; then

tar xzpf /kernels/kernel_uniprocessor.gz --exclude loader.conf -C /boot/

fi

fi

Actions #3

Updated by Jim Pingle over 13 years ago

Use the pre button for code.

The issue here is somewhat moot: The UP kernel is eventually going to be phased out. The SMP kernel option has been in the UP kernel for the past several months and nobody has noticed. This code is just making that change for people for when the UP kernel goes away.

Actions #4

Updated by Jim Pingle over 12 years ago

  • Subject changed from Typo? in /tmp/post_upgrade_command to Typo? in /tmp/post_upgrade_command prevents UP kernel upgrade
  • Description updated (diff)
Actions #5

Updated by Seth Mos over 12 years ago

but if the system does have a UP kernel, it won't be replaced on upgrade. Newer snapshots do not have a UP kernel files so fails to copy the new SMP into place where the UP was.

Actions #6

Updated by Seth Mos over 12 years ago

  • Category set to Upgrade
  • Target version set to 2.1
  • Affected Version set to 2.1
Actions #7

Updated by Jim Pingle over 12 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #8

Updated by Jim Pingle over 12 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF