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.
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
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
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
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.
- Subject changed from Typo? in /tmp/post_upgrade_command to Typo? in /tmp/post_upgrade_command prevents UP kernel upgrade
- Description updated (diff)
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.
- Category set to Upgrade
- Target version set to 2.1
- Affected Version set to 2.1
- Status changed from New to Feedback
- % Done changed from 0 to 100
- Status changed from Feedback to Resolved
Also available in: Atom
PDF