/[smeserver]/rpms/e-smith-grub/sme8/e-smith-grub-1.0.0-updatekernel.patch
ViewVC logotype

Contents of /rpms/e-smith-grub/sme8/e-smith-grub-1.0.0-updatekernel.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Tue Oct 7 18:21:50 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
New streams

1 diff -Nur -x '*.orig' -x '*.rej' e-smith-grub-1.0.0/root/etc/e-smith/templates/etc/sysconfig/kernel/template-begin mezzanine_patched_e-smith-grub-1.0.0/root/etc/e-smith/templates/etc/sysconfig/kernel/template-begin
2 --- e-smith-grub-1.0.0/root/etc/e-smith/templates/etc/sysconfig/kernel/template-begin 1969-12-31 17:00:00.000000000 -0700
3 +++ mezzanine_patched_e-smith-grub-1.0.0/root/etc/e-smith/templates/etc/sysconfig/kernel/template-begin 2007-01-04 13:46:55.000000000 -0700
4 @@ -0,0 +1,8 @@
5 +{
6 + if (open(KERNEL, "/etc/sysconfig/kernel"))
7 + {
8 + @lines = <KERNEL>;
9 + }
10 + close KERNEL;
11 + $OUT = "";
12 +}
13 diff -Nur -x '*.orig' -x '*.rej' e-smith-grub-1.0.0/root/etc/e-smith/templates/etc/sysconfig/kernel/template-end mezzanine_patched_e-smith-grub-1.0.0/root/etc/e-smith/templates/etc/sysconfig/kernel/template-end
14 --- e-smith-grub-1.0.0/root/etc/e-smith/templates/etc/sysconfig/kernel/template-end 1969-12-31 17:00:00.000000000 -0700
15 +++ mezzanine_patched_e-smith-grub-1.0.0/root/etc/e-smith/templates/etc/sysconfig/kernel/template-end 2007-01-04 13:46:55.000000000 -0700
16 @@ -0,0 +1,6 @@
17 +{
18 + foreach (@lines)
19 + {
20 + $OUT .= "$_\n";
21 + }
22 +}
23 diff -Nur -x '*.orig' -x '*.rej' e-smith-grub-1.0.0/root/etc/e-smith/templates/etc/sysconfig/kernel/UpdateDefault mezzanine_patched_e-smith-grub-1.0.0/root/etc/e-smith/templates/etc/sysconfig/kernel/UpdateDefault
24 --- e-smith-grub-1.0.0/root/etc/e-smith/templates/etc/sysconfig/kernel/UpdateDefault 1969-12-31 17:00:00.000000000 -0700
25 +++ mezzanine_patched_e-smith-grub-1.0.0/root/etc/e-smith/templates/etc/sysconfig/kernel/UpdateDefault 2007-01-04 13:46:55.000000000 -0700
26 @@ -0,0 +1,19 @@
27 +{
28 + return "" unless (defined $EVENT and $EVENT eq "local");
29 +
30 + open (VERSION, "/proc/version") or die "Couldn't read /proc/version";
31 + my $version = <VERSION>;
32 + chomp $version;
33 + $version =~ s/^Linux version ([^\s]+) .*/$1/;
34 + close VERSION;
35 +
36 + open (KERNEL, "rpm -qf --qf '%{NAME}' /boot/vmlinuz-$version|");
37 + my $default = <KERNEL>;
38 + chomp $default;
39 + close KERNEL;
40 +
41 + return "" unless $default;
42 +
43 + @lines = map { s/DEFAULTKERNEL=.*/DEFAULTKERNEL=$default/; $_ } @lines;
44 + $OUT = "";
45 +}
46 diff -Nur -x '*.orig' -x '*.rej' e-smith-grub-1.0.0/root/etc/e-smith/templates.metadata/etc/sysconfig/kernel mezzanine_patched_e-smith-grub-1.0.0/root/etc/e-smith/templates.metadata/etc/sysconfig/kernel
47 --- e-smith-grub-1.0.0/root/etc/e-smith/templates.metadata/etc/sysconfig/kernel 1969-12-31 17:00:00.000000000 -0700
48 +++ mezzanine_patched_e-smith-grub-1.0.0/root/etc/e-smith/templates.metadata/etc/sysconfig/kernel 2007-01-04 13:46:15.000000000 -0700
49 @@ -0,0 +1 @@
50 +FILTER=sub { $_[0] =~ /^\s*$/ ? '' : $_[0] }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed