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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]