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

Reopen 469312, still unfixed, also in Etch (initramfs-tools: awk reports syntax error in update-initramfs)



reopen 469312 !
found 469312 0.92a
found 469312 0.85h
notfixed 469312 0.91d
severity 469312 grave
tag 469312 +etch
thanks

Sorry, but this bug is neither fixed in Sid nor in Etch (where it is
also present). In Etch the bug breaks dist-upgrades from Sarge to Etch
at least if previously a devfs kernel, lilo and md was used. Just had
such a case yesterday on one of our DHCP servers.

And since such systems usually continue to use the /dev/md/* naming
scheme because udev seems to recognise a former devfs system, this
still breaks systems and can render them unbootable (therefore
severity grave) if the admin doesn't notice the mentioned syntax
errors.

The line which obviously is causing the syntax error is the following
which is used when update-initramfs parses lilo.conf:

  boot="/dev/$(awk "/^${MD}/{print substr(\$5, 1, 3)}" \

It's line 207 in Sid and line 166 in Etch.

Slashes contained in $MD need be escaped properly to fix this problem.

There's one more line which potentially has a similar bug:

  && dev=$(awk "/${groot}/{ print \$NF}" /boot/grub/device.map)

It's line 195 in Sid and line 154 in Etch.

Since is primarily an escaping bug which should be easy and not
critical to fix, I would be happy, if this could be fixed in Etch with
perhaps 4.0r4, too.

		Kind regards, Axel Beckert
-- 
Axel Beckert <beckert@phys.ethz.ch>       support: +41 44 633 2668
IT Support Group, HPR E 86.1              voice:   +41 44 633 4189
Departement Physik, ETH Zurich            fax:     +41 44 633 1239
CH-8093 Zurich, Switzerland		  http://nic.phys.ethz.ch/


Reply to: