--- Begin Message ---
Package: initramfs-tools
Version: 0.83
Severity: normal
Tags: patch
update-initramfs checks /proc/mounts for a read-only /boot but the check
does not take into account the possibility of some other ro mount (NFS,
for example) having the string "boot" in its name.
Here's a small patch that attempts to fix the problem:
--------------------- S N I P -------------------------
--- update-initramfs.orig 2006-10-18 13:42:26.000000000 +0300
+++ update-initramfs 2006-10-18 13:42:42.000000000 +0300
@@ -194,7 +194,7 @@
ro_boot_check()
{
[ -r /proc/mounts ] || return 0
- boot_opts=$(awk '/boot/{if (match($4, /ro/)) print "ro"}' /proc/mounts)
+ boot_opts=$(awk '/boot/{if (match($4, /ro/) && $2 == "/boot") print "ro"}' /proc/mounts)
if [ -n "${boot_opts}" ]; then
echo "WARNING: /boot is ro mounted."
echo "update-initramfs: Not updating ${initramfs}"
--------------------- S N I P -------------------------
-- Package-specific info:
-- /proc/cmdline
root=/dev/sda1 ro
-- /proc/filesystems
cramfs
ext3
jfs
-- lsmod
Module Size Used by
ipmi_msghandler 25088 0
w83627hf 22416 0
w83781d 29156 0
hwmon_vid 2336 2 w83627hf,w83781d
i2c_isa 4512 2 w83627hf,w83781d
i2c_dev 7968 0
crc32c 1856 0
libcrc32c 2528 1 crc32c
iscsi_trgt 53340 4
nfsd 199524 17
exportfs 5024 1 nfsd
nfs 188140 21
lockd 53672 3 nfsd,nfs
nfs_acl 3264 2 nfsd,nfs
sunrpc 132612 13 nfsd,nfs,lockd,nfs_acl
jfs 157180 3
ipv6 217760 30
button 6320 0
ac 4612 0
battery 9252 0
loop 14472 0
mousedev 10368 0
tsdev 7200 0
evdev 8736 0
i2c_i801 7884 0
i2c_core 19312 5 w83627hf,w83781d,i2c_isa,i2c_dev,i2c_i801
pcspkr 2948 0
psmouse 34248 0
floppy 55628 0
rtc 11252 0
shpchp 39200 0
pci_hotplug 24180 1 shpchp
serio_raw 6436 0
ext3 116008 1
jbd 46932 1 ext3
mbcache 7652 1 ext3
dm_mirror 17236 0
dm_snapshot 15324 0
dm_mod 47892 7 dm_mirror,dm_snapshot
piix 8932 0 [permanent]
sd_mod 16208 4
generic 4164 0 [permanent]
ide_core 111440 2 piix,generic
ehci_hcd 26856 0
uhci_hcd 26640 0
usbcore 110560 3 ehci_hcd,uhci_hcd
e100 31044 0
mii 5056 1 e100
megaraid_mbox 24784 3
scsi_mod 122220 2 sd_mod,megaraid_mbox
megaraid_mm 9948 3 megaraid_mbox
thermal 12968 0
processor 21696 1 thermal
fan 4452 0
-- kernel-img.conf
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook = update-grub
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages initramfs-tools depends on:
ii busybox 1:1.1.3-3 Tiny utilities for small and embed
ii cpio 2.6-17 GNU cpio -- a program to manage ar
ii klibc-utils 1.4.27-1 small statically-linked utilities
ii module-init-tools 3.2.2-3 tools for managing Linux kernel mo
ii udev 0.100-2 /dev/ and hotplug management daemo
initramfs-tools recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.85
We believe that the bug you reported is fixed in the latest version of
initramfs-tools, which is due to be installed in the Debian FTP archive:
initramfs-tools_0.85.dsc
to pool/main/i/initramfs-tools/initramfs-tools_0.85.dsc
initramfs-tools_0.85.tar.gz
to pool/main/i/initramfs-tools/initramfs-tools_0.85.tar.gz
initramfs-tools_0.85_all.deb
to pool/main/i/initramfs-tools/initramfs-tools_0.85_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 393906@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
maximilian attems <maks@sternwelten.at> (supplier of updated initramfs-tools package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Mon, 30 Oct 2006 10:12:58 +0100
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.85
Distribution: unstable
Urgency: high
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <maks@sternwelten.at>
Description:
initramfs-tools - tools for generating an initramfs
Closes: 393890 393906 394559 395907
Changes:
initramfs-tools (0.85) unstable; urgency=high
.
Release "Nichts ist getan, wenn noch etwas zu tun übrig ist."
.
* update-initramfs: Fix ro /boot check to not trigger on other mounts
having a /boot string. (closes: 393906) Thanks for the patch
Olli Helenius <olli@starnet.fi>
.
* init-top/framebuffer: Fix duplicate fbno0 device creation. Merge the
0.69ubuntu10 solution. Thanks Benjamin Leipold <rabbit171@web.de>
for the report. (closes: 393890)
.
* update-initramfs: Fix mbr_check() for installed lilo and used grub. Thanks
for the patch by Michel Casabona <michel.casabona@free.fr>. Also be
stricter about do_bootloader match, use negative info and add check for
grub on mbr before throwing error. (closes: 394559) urgency high.
.
* hook-functions: Add sata_sil24 to scsi modules. (closes: 395907)
Thanks Vadim S. Solomi" <vadic@vadic.nnov.ru> for the patch.
.
* update-initramfs: Fix lilo detection in mbr_check() for rootraid.
Based on a patch by Michael Prokop <mika@grml.org>. Suppress lilo warning
messages on test run.
Files:
b3ee42c6f0edd6bf8efc031d7122e7d4 623 utils optional initramfs-tools_0.85.dsc
5d2453349ac6fb4c20ceebc6560b20ff 54416 utils optional initramfs-tools_0.85.tar.gz
ec9b711f011c15cde0c4c3ee586a072e 61164 utils optional initramfs-tools_0.85_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFR2Wu6n7So0GVSSARAkGXAJ4yZkbVX+WCUflDrkWQryHTvEMWfQCfUTkR
LvFmcDKbu6nO10aRDlgIwAI=
=EwLl
-----END PGP SIGNATURE-----
--- End Message ---