From f236b5ae22f616078bd9f7066fa32f21aa1fbd09 Mon Sep 17 00:00:00 2001
From: Tim Gardner <tim.gardner@canonical.com>
Date: Mon, 14 May 2012 09:19:52 -0600
Subject: [PATCH] UBUNTU: Prevent upgrading a non-PAE CPU
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
debian/control-scripts/preinst | 6 ++++++
1 file changed, 6 insertions(+)
@@ -90,6 +90,12 @@ die "Pre inst Internal error. Aborting." unless $version;
exit 0 if $ARGV[0] =~ /abort-upgrade/;
exit 1 unless $ARGV[0] =~ /(install|upgrade)/;
+system ("grep -q ' pae ' /proc/cpuinfo");
+if ($?) {
+ print "This kernel does not support a non-PAE CPU.\n";
+ exit 1;
+}
+
# remove multiple leading slashes; make sure there is at least one.
$realimageloc =~ s|^/*|/|o;
$realimageloc =~ s|/+|/|o;
--
1.7.9.5