FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 03-04-2011, 11:55 AM
Ben Hutchings
 
Default update-initramfs: Remove support for 'do_bootloader' and specific boot loaders

elilo, lilo, and zipl all install post-update hooks for us, so we
don't need call them specifically. Unfortunately, flash-kernel does
not yet, so keep that for a little longer.

Add 'breaks' relations to the versions of these packages that do not
install post-update hooks.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
debian/control | 2 +-
update-initramfs | 37 +------------------------------------
2 files changed, 2 insertions(+), 37 deletions(-)

diff --git a/debian/control b/debian/control
index f4b9ebf..bc7371b 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,7 @@ Depends: klibc-utils (>= 1.5.9-1), cpio, module-init-tools, udev (>= 0.086-1), f
Suggests: bash-completion
Provides: linux-initramfs-tool
Conflicts: usplash (<< 0.5.50)
-Breaks: cryptsetup (<< 2:1.1.0-2.1)
+Breaks: cryptsetup (<< 2:1.1.0-2.1), elilo (<< 3.12-3.1~), lilo (<< 22.8-8.2~), s390-tools (<< 1.8.3-2~)
Description: tools for generating an initramfs
This package contains tools to create and boot an initramfs for packaged 2.6
Linux kernel. The initramfs is a gzipped cpio archive. At boot time, the
diff --git a/update-initramfs b/update-initramfs
index 96bcb1f..c00656b 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -3,7 +3,6 @@
STATEDIR=/var/lib/initramfs-tools
BOOTDIR=/boot
CONF=/etc/initramfs-tools/update-initramfs.conf
-KPKGCONF=/etc/kernel-img.conf
USETRIGGERS=true
mode=""
version=""
@@ -204,41 +203,7 @@ run_bootloader()
return 0
fi

- # FIXME: to be removed postsqueeze release
- # if both lilo and grub around, figure out if lilo needs to be run
- if ( command -v update-grub >/dev/null 2>&1
- || [ -e /boot/grub/menu.lst ] || [ -e /boot/grub/grub.cfg ] )
- && ( [ -e /etc/lilo.conf ] && command -v lilo >/dev/null 2>&1 ); then
- [ -r "${KPKGCONF}" ] &&
- do_b=$(awk '/^do_bootloader/{print $3}' "${KPKGCONF}")
- if [ "${do_b}" = "yes" ] || [ "${do_b}" = "Yes" ]
- || [ "${do_b}" = "YES" ]; then
- run_lilo
- return 0
- elif [ "${do_b}" = "no" ] || [ "${do_b}" = "No" ]
- || [ "${do_b}" = "NO" ]; then
- return 0
- fi
-
- # do_bootloader unconfigured
- echo
- echo "WARNING: grub and lilo installed."
- echo "Please deinstall unused bootloader."
- echo
- return 0
- fi
- if [ -r /etc/lilo.conf ] && command -v lilo >/dev/null 2>&1; then
- run_lilo
- return 0
- fi
- if [ -r /etc/elilo.conf ] && command -v elilo >/dev/null 2>&1; then
- elilo
- return 0
- fi
- if [ -r /etc/zipl.conf ]; then
- zipl
- return 0
- fi
+ # FIXME: to be removed once flash-kernel installs a hook
if flash-kernel --supported >/dev/null 2>&1; then
flash-kernel ${version}
return 0
--
1.7.4.1
 
Old 03-27-2011, 07:43 PM
maximilian attems
 
Default update-initramfs: Remove support for 'do_bootloader' and specific boot loaders

On Fri, 04 Mar 2011, Ben Hutchings wrote:

> elilo, lilo, and zipl all install post-update hooks for us, so we
> don't need call them specifically. Unfortunately, flash-kernel does
> not yet, so keep that for a little longer.
>
> Add 'breaks' relations to the versions of these packages that do not
> install post-update hooks.
>
> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
> ---
> debian/control | 2 +-
> update-initramfs | 37 +------------------------------------
> 2 files changed, 2 insertions(+), 37 deletions(-)
>

thank you, applied as is to ben/hook_pol.
Expecting it for a soon to come (next weeks..) initramfs-tools 0.99

amicalement

--
maks


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110327194337.GD22442@stro.at">http://lists.debian.org/20110327194337.GD22442@stro.at
 

Thread Tools




All times are GMT. The time now is 09:32 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org