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

Bug#495425: marked as done (initramfs-tools: update-initramfs fails due to /proc/mount parsing bug)



Your message dated Sun, 17 Aug 2008 19:09:32 +0200
with message-id <20080817170932.GC16440@baikonur.stro.at>
and subject line Re: Bug#495425: initramfs-tools: update-initramfs fails due to /proc/mount parsing bug
has caused the Debian Bug report #495425,
regarding initramfs-tools: update-initramfs fails due to /proc/mount parsing bug
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
495425: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495425
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: initramfs-tools
Version: 0.85i
Severity: important


update-initramfs from Etch'n'Half fails for me due to a bug in line 247:

UdGate1:~# awk '/boot/{if (match($4, /ro/) && $2 == "/boot") print "ro"}' /proc/mounts
ro                                                                                    
UdGate1:~# cat /proc/mounts                                                           
(...)
/dev/md1 /boot ext3 rw,errors=continue,data=ordered 0 0                               
(...)

Apparently, the substring "ro" in "errors=continue" is interpreted to mean "read-only", thus 
update-initramfs refuses to work.

I tired to change the regexp to use "\b" to enforce "ro" to be a single word, but unfortunately 
that didn't work either, as I've no awk experience, I'm not sure how to feed awk the correct 
expression.

In the meantime I've just commented out this safety check.

Greetings,

  Gunter

-- Package-specific info:
-- /proc/cmdline
root=/dev/mapper/udgate-root ro 

-- /proc/filesystems
	ext3

-- lsmod
Module                  Size  Used by
tcp_diag                2176  0 
inet_diag              11528  1 tcp_diag
ac                      4800  0 
battery                 8832  0 
ipt_REJECT              4224  2 
xt_tcpudp               3456  5 
iptable_filter          3840  1 
ip_tables              13584  1 iptable_filter
x_tables               16132  3 ipt_REJECT,xt_tcpudp,ip_tables
ipv6                  242756  30 
loop                   16964  0 
evdev                  11520  0 
parport_pc             26340  0 
parport                34220  1 parport_pc
floppy                 53540  0 
serio_raw               6916  0 
rtc                    14240  0 
pcspkr                  3520  0 
psmouse                36304  0 
k8temp                  5632  0 
i2c_amd8111             5824  0 
i2c_amd756              6788  0 
amd_rng                 3332  0 
i2c_core               22932  2 i2c_amd8111,i2c_amd756
rng_core                5252  1 amd_rng
button                  8592  0 
shpchp                 30228  0 
pci_hotplug            27492  1 shpchp
ext3                  120968  6 
jbd                    43412  1 ext3
mbcache                 8644  1 ext3
dm_mirror              25476  0 
dm_snapshot            17828  0 
dm_mod                 56168  15 dm_mirror,dm_snapshot
raid1                  22208  3 
md_mod                 74588  4 raid1
ide_generic             1664  0 [permanent]
sd_mod                 26584  11 
ide_cd_mod             33376  0 
cdrom                  32352  1 ide_cd_mod
e1000                 108288  0 
tg3                    90116  0 
sata_sil               11336  7 
ohci_hcd               21764  0 
usbcore               130160  2 ohci_hcd
amd74xx                 8520  0 [permanent]
ide_core              100184  3 ide_generic,ide_cd_mod,amd74xx
ata_generic             8388  0 
libata                143120  2 sata_sil,ata_generic
scsi_mod              139116  2 sd_mod,libata
dock                   10768  1 libata
thermal                19484  0 
processor              39948  1 thermal
fan                     6020  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: 4.0
  APT prefers stable
  APT policy: (500, 'stable'), (175, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.25.udg.20070718.1
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-4      Tiny utilities for small and embed
ii  cpio                      2.6-18.1+etch1 GNU cpio -- a program to manage ar
ii  klibc-utils               1.4.34-2       small statically-linked utilities 
ii  module-init-tools         3.3-pre4-2     tools for managing Linux kernel mo
ii  udev                      0.105-4        /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 0.91e

On Sun, Aug 17, 2008 at 11:37:38AM +0200, Gunter Ohrner wrote:
> Package: initramfs-tools
> Version: 0.85i
> Severity: important
> 
> 
> update-initramfs from Etch'n'Half fails for me due to a bug in line 247:
> 
> UdGate1:~# awk '/boot/{if (match($4, /ro/) && $2 == "/boot") print "ro"}' /proc/mounts
> ro                                                                                    
> UdGate1:~# cat /proc/mounts                                                           
> (...)
> /dev/md1 /boot ext3 rw,errors=continue,data=ordered 0 0                               
> (...)
> 
> Apparently, the substring "ro" in "errors=continue" is interpreted to mean "read-only", thus 
> update-initramfs refuses to work.
> 
> I tired to change the regexp to use "\b" to enforce "ro" to be a single word, but unfortunately 
> that didn't work either, as I've no awk experience, I'm not sure how to feed awk the correct 
> expression.
> 
> In the meantime I've just commented out this safety check.

fixed in newer initramfs-tools thus closing.

-- 
maks


--- End Message ---

Reply to: