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

Annotation of /rpms/e-smith-grub/sme7/e-smith-grub-1.0.0-updatekernel.patch

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


Revision 1.1 - (hide annotations) (download)
Tue Jun 12 15:30:27 2007 UTC (17 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-grub-1_0_0-7_el4_sme, e-smith-grub-1_0_0-6_el4_sme, e-smith-grub-1_0_0-5_el4_sme
Import on branch sme7 of package e-smith-grub-1.0.0-5.el4.sme.src.rpm

1 slords 1.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