FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 03-25-2010, 08:54 AM
Guido Bozzetto
 
Default Bug#574553: PostInst fails (err. 2). "awk: fatal: ( o (desemparejados: /(md/"

Package: initramfs-tools
Version: 0.93.4
Severity: normal

~# LANG=C dpkg --configure initramfs-tools
update-initramfs: Generating /boot/initrd.img-2.6.32-3-amd64
awk: fatal: Unmatched ( or (: /(hd/

I've lilo and grub2 together for backup. For me a working solution is
to modify the line 192 from:
&& groot=$(awk '/^set root=/{print substr($2, 7, 3); exit}'
to:
&& groot=$(awk '/^set root=/{print substr($2, 7, length($2)-7); exit}'

I do not know if this is correct anyway so the correct part of the
string is interpreted without the final "'":
~# LANG=C dpkg --configure initramfs-tools
update-initramfs: Generating /boot/initrd.img-2.6.32-3-amd64
Warning: '/proc/partitions' does not match '/dev' directory structure.
...
7 warnings were issued.
~# dpkg -l initramfs-tools
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Nome Versione Descrizione
+++-==============-==============-============================================
ii initramfs-tool 0.93.4 tools for generating an initramfs

Thanks, Guido Bozzetto.




-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=(hd0,1)/vmlinuz root=UUID=773e7969-3634-4445-98cd-c3aebd7e2784 ro

-- /proc/filesystems
ext4
ext2
ext3

-- lsmod
Module Size Used by
sha256_generic 8644 4
ppdev 5030 0
lp 7462 0
autofs4 20629 5
nfsd 252838 13
exportfs 3122 1 nfsd
nfs 239263 0
lockd 57203 2 nfsd,nfs
fscache 29786 1 nfs
nfs_acl 2031 2 nfsd,nfs
auth_rpcgss 33444 2 nfsd,nfs
sunrpc 159873 13 nfsd,nfs,lockd,nfs_acl,auth_rpcgss
ipt_REDIRECT 1111 17
xt_owner 1063 4
ipt_REJECT 1953 3
ipt_LOG 4486 35
xt_limit 1782 25
nf_nat_ftp 1919 0
nf_conntrack_ftp 5473 1 nf_nat_ftp
xt_state 1303 123
xt_tcpudp 2287 431
iptable_mangle 2817 0
iptable_filter 2258 1
iptable_nat 4299 1
ip_tables 13675 3 iptable_mangle,iptable_filter,iptable_nat
nf_nat 13212 3 ipt_REDIRECT,nf_nat_ftp,iptable_nat
x_tables 12653 9 ipt_REDIRECT,xt_owner,ipt_REJECT,ipt_LOG,xt_limit, xt_state,xt_tcpudp,iptable_nat,ip_tables
nf_conntrack_ipv4 9753 126 iptable_nat,nf_nat
nf_conntrack 46295 6 nf_nat_ftp,nf_conntrack_ftp,xt_state,iptable_nat,n f_nat,nf_conntrack_ipv4
nf_defrag_ipv4 1139 1 nf_conntrack_ipv4
quota_v2 2637 4
quota_tree 6051 1 quota_v2
ext3 106278 1
jbd 36813 1 ext3
ext2 52953 2
cryptd 5286 0
aes_x86_64 7340 7
aes_generic 25714 1 aes_x86_64
cbc 2507 5
dm_crypt 10491 5
dm_snapshot 18425 0
dm_mirror 10843 0
dm_region_hash 6648 1 dm_mirror
dm_log 7381 2 dm_mirror,dm_region_hash
dm_mod 53306 14 dm_crypt,dm_snapshot,dm_mirror,dm_log
snd_pcsp 6579 0
snd_pcm 60263 1 snd_pcsp
snd_timer 15406 1 snd_pcm
i2c_piix4 8328 0
serio_raw 3752 0
parport_pc 18855 1
snd 45822 3 snd_pcsp,snd_pcm,snd_timer
parport 27666 3 ppdev,lp,parport_pc
psmouse 49505 0
soundcore 4566 1 snd
container 2389 0
i2c_core 15216 1 i2c_piix4
evdev 7336 0
snd_page_alloc 6169 1 snd_pcm
shpchp 26216 0
processor 30135 0
ac 2192 0
pci_hotplug 21171 1 shpchp
ext4 284811 14
mbcache 4970 3 ext3,ext2,ext4
jbd2 66759 1 ext4
crc16 1319 1 ext4
sd_mod 29465 21
crc_t10dif 1276 1 sd_mod
ide_pci_generic 2788 0
ata_generic 2983 0
libata 131655 1 ata_generic
mptspi 11185 18
mptscsih 15768 1 mptspi
mptbase 48046 2 mptspi,mptscsih
scsi_transport_spi 18566 1 mptspi
piix 4568 0
floppy 49087 0
intel_agp 25593 1
ide_core 76578 2 ide_pci_generic,piix
button 4634 0
scsi_mod 121509 5 sd_mod,libata,mptspi,mptscsih,scsi_transport_spi
e1000 85437 0
thermal 11610 0
fan 3346 0
thermal_sys 11878 3 processor,thermal,fan

-- /etc/kernel-img.conf
# /etc/kernel-img.conf

do_initrd = Yes

link_in_boot = Yes

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto

-- /etc/crypttab
# <target name> <source device> <key file> <options>

# Attivazione manuale
noc_crypt UUID=0fded678-6c4a-416d-af61-cc143f81d758 none noauto,luks
backup-home_crypt UUID=d0b1fa0a-8150-432a-85b4-358f7577f710 none noauto,luks
tmp_crypt /dev/sda7 /dev/random precheck=/bin/true,tmp=ext2
chroottmp_crypt /dev/sda9 /dev/random precheck=/bin/true,tmp=ext2
swap_crypt /dev/sda10 /dev/random swap


-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (560, 'testing'), (550, 'testing'), (540, 'testing-proposed-updates'), (260, 'stable'), (250, 'stable'), (240, 'proposed-updates'), (50, 'unstable')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages initramfs-tools depends on:
ii cpio 2.11-1 GNU cpio -- a program to manage ar
ii findutils 4.4.2-1 utilities for finding files--find,
ii klibc-utils 1.5.15-1 small utilities built with klibc f
ii module-init-tools 3.12~pre2-1 tools for managing Linux kernel mo
ii udev 151-3 /dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii busybox 1:1.14.2-2 Tiny utilities for small and embed

initramfs-tools suggests no packages.

-- no debconf information



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100325095406.6053.42909.reportbug@astro.nauta.it ">http://lists.debian.org/20100325095406.6053.42909.reportbug@astro.nauta.it
 
Old 03-25-2010, 12:35 PM
maximilian attems
 
Default Bug#574553: PostInst fails (err. 2). "awk: fatal: ( o (desemparejados: /(md/"

On Thu, Mar 25, 2010 at 10:54:06AM +0100, Guido Bozzetto wrote:
> Package: initramfs-tools
> Version: 0.93.4
> Severity: normal

sid initramfs-tools was trying to second guess your lilo / grub usage.
it stop doing this in latest git.

> ~# LANG=C dpkg --configure initramfs-tools
> update-initramfs: Generating /boot/initrd.img-2.6.32-3-amd64
> awk: fatal: Unmatched ( or (: /(hd/
>
> I've lilo and grub2 together for backup. For me a working solution is
> to modify the line 192 from:
> && groot=$(awk '/^set root=/{print substr($2, 7, 3); exit}'
> to:
> && groot=$(awk '/^set root=/{print substr($2, 7, length($2)-7); exit}'
>
> I do not know if this is correct anyway so the correct part of the
> string is interpreted without the final "'":
> ~# LANG=C dpkg --configure initramfs-tools
> update-initramfs: Generating /boot/initrd.img-2.6.32-3-amd64
> Warning: '/proc/partitions' does not match '/dev' directory structure.
> ...
> 7 warnings were issued.

deinstall lilo if it is not used.

> # /etc/kernel-img.conf
>
> do_initrd = Yes
>
> link_in_boot = Yes

or fix your config here to have grub run:

# Kernel image management overrides
# See kernel-img.conf(5) for details
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


if you 'd were using lilo, nuke grub and fix your config to read
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = yes
do_initrd = yes
link_in_boot = no

the important part is the do_bootfloppy variable and the oldstyle hooks.





--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100325133541.GR22870@baikonur.stro.at">http://lists.debian.org/20100325133541.GR22870@baikonur.stro.at
 

Thread Tools




All times are GMT. The time now is 11:22 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org