summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-01-28 17:09:09 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-01-28 17:09:17 -0500
commita3755fe7df668052777037203ab971b0c19be6de (patch)
tree2488c5d5cfdce7d5aeabd742e691380778993d04
parent20413b72bfd31282276c8ac2a116014f92914d4e (diff)
downloadpfsense-a3755fe7df668052777037203ab971b0c19be6de.zip
pfsense-a3755fe7df668052777037203ab971b0c19be6de.tar.gz
Exclude loader.conf from being update during kernel update
-rwxr-xr-xtmp/post_upgrade_command8
1 files changed, 4 insertions, 4 deletions
diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command
index ed49d0a..99285e4 100755
--- a/tmp/post_upgrade_command
+++ b/tmp/post_upgrade_command
@@ -5,24 +5,24 @@
KERNELTYPE=`cat /boot/kernel/pfsense_kernel.txt`
if [ $KERNELTYPE = "wrap" ]; then
if [ -f /kernels/kernel_wrap.gz ]; then
- tar xzpf /kernels/kernel_wrap.gz -C /boot/
+ tar xzpf /kernels/kernel_wrap.gz --exclude loader.conf -C /boot/
cp /etc/ttys_wrap /etc/ttys
fi
fi
if [ $KERNELTYPE = "Developers" ]; then
if [ -f /kernels/kernel_Dev.gz ]; then
- tar xzpf /kernels/kernel_Dev.gz -C /boot/
+ tar xzpf /kernels/kernel_Dev.gz --exclude loader.conf -C /boot/
cp /boot/kernel/kernel.gz
fi
fi
if [ $KERNELTYPE = "SMP" ]; then
if [ -f /kernels/kernel_SMP.gz ]; then
- tar xzpf /kernels/kernel_SMP.gz -C /boot/
+ tar xzpf /kernels/kernel_SMP.gz --exclude loader.conf -C /boot/
fi
fi
if [ $KERNELTYPE = "UP" ]; then
if [ -f /kernels/kernel_SMP.gz ]; then
- tar xzpf /kernels/kernel_uniprocessor.gz -C /boot/
+ tar xzpf /kernels/kernel_uniprocessor.gz --exclude loader.conf -C /boot/
fi
fi
OpenPOWER on IntegriCloud