Begin with next version
[rrq/maintain_lilo.git] / debian / patches / 17_liloconfig-for-linux3.patch
1 Package:     lilo
2 Subject:     liloconfig for linux 3.x
3 Author:      Joachim Wiedorn <ad_debian at joonet.de>
4 Forwarded:   yes
5 Last-Update: 2012-04-15
6
7 Add support for linux 3.x in script liloconfig.
8 ---
9
10 diff -urN s16/scripts/liloconfig s17/scripts/liloconfig
11 --- s16/scripts/liloconfig      2011-04-09 17:08:01.000000000 +0200
12 +++ s17/scripts/liloconfig      2012-04-15 10:18:15.936797140 +0200
13 @@ -2,7 +2,7 @@
14  
15  #       liloconfig -  creating a new lilo.conf file
16  #       
17 -#       Copyright 2011 Joachim Wiedorn <ad_debian@joonet.de>
18 +#       Copyright 2011-2012 Joachim Wiedorn <ad_debian@joonet.de>
19  #       
20  #       This program is free software; you can redistribute it and/or modify
21  #       it under the terms of the GNU General Public License as published by
22 @@ -52,7 +52,7 @@
23  our $idpath = "/dev/disk/by-id";
24  our $uuidpath = "/dev/disk/by-uuid";
25  our $lblpath = "/dev/disk/by-label";
26 -our $template = "/etc/lilo.conf_example";
27 +our $template = "/usr/share/doc/lilo/examples/lilo.example.conf.gz";
28  
29  our $rootpart;    # found root part
30  our $root_dev;    # /dev/hdX9, /dev/sdX9, /dev/md/*
31 @@ -456,7 +456,7 @@
32         my $nr2;
33  
34         # search for kernel image files
35 -       my @vmlinuz = readpipe("/bin/ls -t -1 /boot/vmlinuz-2* 2>/dev/null");
36 +       my @vmlinuz = readpipe("/bin/ls -t -1 /boot/vmlinuz-* 2>/dev/null");
37  
38         # append to new lilo.conf
39         open(MYFH_NEW, ">> $liloconfnew") or die "Cannot open file: $!";