[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#451151: initramfs-tools: update-initramfs mistakes errors=remount-ro mount option as read-only



On Tue, 13 Nov 2007, Jan Niehusmann wrote:

> update-initramfs does not update initrd.img if /proc/mounts contains
> errors=remount-ro. Instead, I get the following message:
> 
> WARNING: /boot is ro mounted.
> update-initramfs: Not updating /boot/initrd.img-2.6.24-rc2-x61s
> 
> Reason for this behaviour is the awk expression in line 524 of
> update-initramfs, which just checks for the presence of the string "ro".
> Instead, it should check for 'ro' at the beginning of the string, or
> following a , separator:
> 
> boot_opts=$(awk '/boot/{if (match($4, /^ro/) || match($4, /,ro/) && $2 == "/boot") print "ro"}' /proc/mounts)

thanks comfirmed, tested and applied proposed fix to 0.91b.
as this a potentential upgrade failure, i'll see to get
that fixed too in etch.

amicalement

-- 
maks





Reply to: