Hello community,
here is the log from the commit of package perl-Bootloader
checked in at Fri Nov 30 13:30:03 CET 2007.
--------
--- perl-Bootloader/perl-Bootloader.changes 2007-09-26 21:04:19.000000000 +0200
+++ /mounts/work_src_done/STABLE/perl-Bootloader/perl-Bootloader.changes 2007-11-30 10:21:32.000000000 +0100
@@ -1,0 +2,46 @@
+Fri Nov 30 10:19:02 CET 2007 - aosthof(a)suse.de
+
+- Prevent changing root device in kernel append line (#344447)
+- Version bump to 0.4.38
+
+-------------------------------------------------------------------
+Thu Nov 15 13:31:06 CET 2007 - aosthof(a)suse.de
+
+- Fixed quoting of single arguments (#276464)
+- Version bump to 0.4.37
+
+-------------------------------------------------------------------
+Wed Nov 14 14:57:09 CET 2007 - aosthof(a)suse.de
+
+- Reverted last patch (non existing initrd) because it's already
+ implemented and I've overseen it during patch session.
+- Version bump to 0.4.36
+
+-------------------------------------------------------------------
+Fri Oct 19 12:58:18 CEST 2007 - aosthof(a)suse.de
+
+- Moved former change to function RemoveSections(), this is the
+ right place
+
+-------------------------------------------------------------------
+Fri Oct 19 11:43:54 CEST 2007 - aosthof(a)suse.de
+
+- detect wether there is an entry with a non existing initrd and
+ remove the corresponding section (#276923)
+- Version bump to 0.4.35
+
+-------------------------------------------------------------------
+Fri Oct 19 11:01:24 CEST 2007 - aosthof(a)suse.de
+
+- Added new parameter "force-default" to both bootloader_entry and
+ update-bootloader. This parameter (if used) forces the new boot
+ entry to be the default one (#327308)
+- Version bump to 0.4.34
+
+-------------------------------------------------------------------
+Fri Oct 19 10:56:46 CEST 2007 - aosthof(a)suse.de
+
+- Fixed perl warning in Core.pm (#302174)
+- Version bump to 0.4.33
+
+-------------------------------------------------------------------
Old:
----
perl-Bootloader-0.4.32.tar.bz2
New:
----
perl-Bootloader-0.4.38.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Bootloader.spec ++++++
--- /var/tmp/diff_new_pack.O16693/_old 2007-11-30 13:29:51.000000000 +0100
+++ /var/tmp/diff_new_pack.O16693/_new 2007-11-30 13:29:51.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package perl-Bootloader (Version 0.4.32)
+# spec file for package perl-Bootloader (Version 0.4.38)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,7 +11,7 @@
# norootforbuild
Name: perl-Bootloader
-Version: 0.4.32
+Version: 0.4.38
Release: 1
Requires: perl >= %{perl_version}
Requires: perl-gettext
@@ -64,7 +64,33 @@
/var/adm/perl-modules/perl-Bootloader
/sbin/update-bootloader
/usr/lib/bootloader
+
%changelog
+* Fri Nov 30 2007 - aosthof(a)suse.de
+- Prevent changing root device in kernel append line (#344447)
+- Version bump to 0.4.38
+* Thu Nov 15 2007 - aosthof(a)suse.de
+- Fixed quoting of single arguments (#276464)
+- Version bump to 0.4.37
+* Wed Nov 14 2007 - aosthof(a)suse.de
+- Reverted last patch (non existing initrd) because it's already
+ implemented and I've overseen it during patch session.
+- Version bump to 0.4.36
+* Fri Oct 19 2007 - aosthof(a)suse.de
+- Moved former change to function RemoveSections(), this is the
+ right place
+* Fri Oct 19 2007 - aosthof(a)suse.de
+- detect wether there is an entry with a non existing initrd and
+ remove the corresponding section (#276923)
+- Version bump to 0.4.35
+* Fri Oct 19 2007 - aosthof(a)suse.de
+- Added new parameter "force-default" to both bootloader_entry and
+ update-bootloader. This parameter (if used) forces the new boot
+ entry to be the default one (#327308)
+- Version bump to 0.4.34
+* Fri Oct 19 2007 - aosthof(a)suse.de
+- Fixed perl warning in Core.pm (#302174)
+- Version bump to 0.4.33
* Wed Sep 26 2007 - od(a)suse.de
- Added flag avoid_reading_device_map to Library::ReadSettings()
and to all ParseLines() (#328448)
++++++ bootloader_entry ++++++
--- perl-Bootloader/bootloader_entry 2007-09-21 19:20:54.000000000 +0200
+++ /mounts/work_src_done/STABLE/perl-Bootloader/bootloader_entry 2007-10-19 11:03:36.000000000 +0200
@@ -20,7 +20,7 @@
function usage()
{
echo "Unknown or missing parameter."
- echo "Usage: $0 [add|remove] <kernel-flavor> <kernel-release> <image-name> <initrd-name>"
+ echo "Usage: $0 [add|remove] <kernel-flavor> <kernel-release> <image-name> <initrd-name> [force-default]"
echo
echo "The old interface with 4 parameters is still supported, but deprecated."
echo "This interface will be dropped in the near future."
@@ -43,13 +43,16 @@
image=${3} # contains the full image name, e.g. "vmlinuz-2.6.18-4-default"
initrd=${4} # contains the full initrd name, e.g. "initrd-2.6.18-4-default"
- # new interface with 5 parameters
+ # new interface with 5 or 6 parameters, depends whether option
+ # "force-default" is used or not
else
action=${1} # contains the action to be executed, e.g. "add" or "remove"
flavor=${2} # contains the kernel-flavor, e.g. "default" or "xen"
release=${3} # contains the kernel-release, e.g. "2.6.18-4-default"
image=${4} # contains the full image name, e.g. "vmlinuz-2.6.18-4-default"
initrd=${5} # contains the full initrd name, e.g. "initrd-2.6.18-4-default"
+ forcedefault=${6} # contains action which forces corresponding boot entry beeing the
+ # default boot entry, enabled by given parameter "force-default"
fi
}
@@ -106,31 +109,65 @@
set -- ${1#xen}
opt_xen_kernel=--xen-kernel=/boot/xen${1:+-$1}.gz
+ if [ "$forcedefault" == "force-default" ]; then
# Add the new bootloader entry (xen kernel)
+ # and force it beeing the default entry
update_bootloader --image /boot/$image \
--initrd /boot/$initrd \
--default \
+ --force-default \
--add \
--force $opt_xen_kernel \
--name "$release"
+ else
+ # Add the new bootloader entry (xen kernel)
+ update_bootloader --image /boot/$image \
+ --initrd /boot/$initrd \
+ --default \
+ --add \
+ --force $opt_xen_kernel \
+ --name "$release"
+ fi
# Run the bootloader (e.g., lilo).
update_bootloader --refresh
;;
(debug)
+ if [ "$forcedefault" == "force-default" ]; then
+ # Add the new bootloader entry (debug kernel)
+ # and force it beeing the default entry
+ update_bootloader --image /boot/$image \
+ --initrd /boot/$initrd \
+ --force-default \
+ --add \
+ --force \
+ --name "$release"
+ else
# Add the new bootloader entry (debug kernel)
update_bootloader --image /boot/$image \
--initrd /boot/$initrd \
--add \
--force \
--name "$release"
+ fi
# Run the bootloader (e.g., lilo).
update_bootloader --refresh
;;
(*)
+ if [ "$forcedefault" == "force-default" ]; then
+ # Add the new bootloader entry
+ # and force it beeing the default entry
+ update_bootloader --image /boot/$image \
+ --initrd /boot/$initrd \
+ --default \
+ --force-default \
+ --add \
+ --force \
+ --name "$release"
+ else
# Add the new bootloader entry
update_bootloader --image /boot/$image \
--initrd /boot/$initrd \
@@ -138,6 +175,7 @@
--add \
--force \
--name "$release"
+ fi
# Run the bootloader (e.g., lilo).
update_bootloader --refresh
@@ -252,7 +290,7 @@
delayed_exec_file="/boot/perl-BL_delayed_exec"
# Checks if correct amount of arguments is given
-if [ "$#" -ne "4" -a "$#" -ne "5" ] ; then
+if [ "$#" -lt "4" -o "$#" -gt "6" ] ; then
usage
fi
++++++ perl-Bootloader-0.4.32.tar.bz2 -> perl-Bootloader-0.4.38.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/perl-Bootloader-0.4.32/lib/Bootloader/Core.pm new/perl-Bootloader-0.4.38/lib/Bootloader/Core.pm
--- old/perl-Bootloader-0.4.32/lib/Bootloader/Core.pm 2007-09-24 18:25:59.000000000 +0200
+++ new/perl-Bootloader-0.4.38/lib/Bootloader/Core.pm 2007-11-15 13:33:04.000000000 +0100
@@ -444,7 +444,8 @@
if ($when eq "always"
|| ($when eq "blanks" && index ($text, " ") >= 0)
- || ($when eq "blanks" && $text eq ""))
+ || ($when eq "blanks" && $text eq "")
+ || index ($text, "=") >= 0)
{
$text = "\"$text\"";
}
@@ -1886,9 +1887,9 @@
return "" unless $filename;
my $ret = "";
- $self->l_milestone ("Core::RealFileName: resolve_symlinks:" . $self->{"resolve_symlinks"});
if ($self->{"resolve_symlinks"})
{
+ $self->l_milestone ("Core::RealFileName: resolve_symlinks:" . $self->{"resolve_symlinks"});
$ret = $self->CanonicalPath($self->ResolveCrossDeviceSymlinks ($filename));
}
else
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/perl-Bootloader-0.4.32/lib/Bootloader/Tools.pm new/perl-Bootloader-0.4.38/lib/Bootloader/Tools.pm
--- old/perl-Bootloader-0.4.32/lib/Bootloader/Tools.pm 2007-09-21 15:35:45.000000000 +0200
+++ new/perl-Bootloader-0.4.38/lib/Bootloader/Tools.pm 2007-11-30 10:21:32.000000000 +0100
@@ -1211,19 +1211,16 @@
return unless exists $option{"type"};
my $default = delete $option{"default"} || 0;
+ my %new = ();
+ my %def = ();
- my $mp = $lib_ref->GetMountPoints ();
my @sections = @{$lib_ref->GetSections ()};
# Adapt YaST-like comment lines in old sections
@sections = AdaptCommentLine (\@sections, $option{"original_name"});
- my %new = (
- "root" => $mp->{"/"} || "/dev/null",
- );
# FIXME: sf@: what is this code good for?
# FIXME: removed resetting root parameter if it's already set
- my %def = ();
foreach my $s (@sections) {
if (defined ($s->{"initial"}) && $s->{"initial"}) {
%def = %{$s};
@@ -1595,9 +1592,8 @@
!$match;
} @sections;
- # FIXME: detect wether we have an entry with non existing initrd (bug
- # #276923) and remove this section. Only needed for update SLE10 GA -->
- # SP1
+ # FIXME: detect wether we have an entry with non existing initrd (#276923)
+ # and remove this section.
if ($loader eq "grub") {
@sections = grep {
my $match = 0;
++++++ update-bootloader ++++++
--- perl-Bootloader/update-bootloader 2007-09-20 17:41:48.000000000 +0200
+++ /mounts/work_src_done/STABLE/perl-Bootloader/update-bootloader 2007-10-19 11:03:36.000000000 +0200
@@ -8,8 +8,8 @@
use strict;
my %oper;
-my ($opt_default, $opt_force, $opt_help, $opt_man, $opt_previous, $opt_xen)
- = (0,0,0,0,0,0);
+my ($opt_default, $opt_force, $opt_force_default, $opt_help, $opt_man, $opt_previous, $opt_xen)
+ = (0,0,0,0,0,0,0);
my ($opt_image, $opt_initrd, $opt_name, $opt_xen_name, $opt_failsafe, $opt_xen_kernel)
= ('','','','','',undef);
my $add_product = 0;
@@ -26,7 +26,8 @@
operation is one of --add, --remove or --refresh.
valid options are --help, --man, --image <file>, --initrd <file>,
---xen-kernel <file>, --xen, --default, --previous, --name <string>, --force.
+--xen-kernel <file>, --xen, --default, --previous, --name <string>, --force,
+--force-default.
=head1 OPERATIONS
@@ -91,6 +92,11 @@
dont complain, just do the right thing
+=item B<--force-default>
+
+force the new section to be added to be the default section. Only
+allowed together with --add operation
+
=back
=head1 DESCRIPTION
@@ -166,6 +172,7 @@
'refresh' ,
'remove|r' ,
'default|d' => \$opt_default,
+ 'force-default' => \$opt_force_default,
'help|h' => \$opt_help,
'force' => \$opt_force,
'image=s' => \$opt_image,
@@ -185,6 +192,9 @@
pod2usage("Option 'default' is only allowed for operation 'add'")
if ($opt_default and not defined $oper{add});
+pod2usage("Option 'force-default' is only allowed for operation 'add'")
+ if ($opt_force_default and not defined $oper{add});
+
if ($opt_image and $opt_image !~ m;^/;) {
$opt_image = getcwd . '/' . $opt_image
}
@@ -340,6 +350,12 @@
push @params, default => $opt_default;
}
+ # Else, if option $opt_force_default is set, let this new kernel be
+ # the default one.
+ elsif ($opt_force_default) {
+ push @params, default => $opt_default;
+ }
+
# Else, find out the flavor of the default kernel. If it is the same
# flavor as the one of the new kernel, let the new kernel be the
# default one.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org