2008-01-17 17:04:24 |
Jonas Weinen |
description |
Binary package hint: initramfs-tools
This bug appears on a gutsy wubi installation, but I think it is a general problem in update-initramfs (version 0.85eubuntu20).
update-initramfs checks whether /boot is mounted read-only with this awk line (l. 263-264):
> (awk '/boot/{if (match($4, /ro/) && $2 == "/boot") print "ro"}' /proc/mounts
However, on my machine the corresponding line in /proc/mounts says:
> /dev/disk/by-uuid/6C44DC2444DBEF38 /boot fuseblk rw,nosuid,nodev,noatime,user_id=0,group_id=0,allow_other 0 0
I'm not an expert in awk, but I think it is matching the 'ro' from 'gROup'. The result is that update-initramfs refuses to work:
> sudo update-initramfs -vu
> WARNING: /boot is ro mounted.
> update-initramfs: Not updating /boot/initrd.img-2.6.22-14-generic
An ugly fix would be to match the pattern /^ro/ because all mounts in /proc/mounts seem to have the rw/ro state in the first position, but there is probably a more elegant way.
In ver 0.85eubuntu21 = current hardy package, it is still the same. |
Binary package hint: initramfs-tools
This bug appears on a gutsy wubi installation, but I think it is a general problem in update-initramfs (version 0.85eubuntu20).
EDIT: Debian already fixed this. See Debian bug #451151
update-initramfs checks whether /boot is mounted read-only with this awk line (l. 263-264):
> (awk '/boot/{if (match($4, /ro/) && $2 == "/boot") print "ro"}' /proc/mounts
However, on my machine the corresponding line in /proc/mounts says:
> /dev/disk/by-uuid/6C44DC2444DBEF38 /boot fuseblk rw,nosuid,nodev,noatime,user_id=0,group_id=0,allow_other 0 0
I'm not an expert in awk, but I think it is matching the 'ro' from 'gROup'. The result is that update-initramfs refuses to work:
> sudo update-initramfs -vu
> WARNING: /boot is ro mounted.
> update-initramfs: Not updating /boot/initrd.img-2.6.22-14-generic
An ugly fix would be to match the pattern /^ro/ because all mounts in /proc/mounts seem to have the rw/ro state in the first position, but there is probably a more elegant way.
In ver 0.85eubuntu21 = current hardy package, it is still the same. |
|