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

Re: initrd fa le bizze



Il 05/06/2013 14:40, onetmt ha scritto:
> Il 05/06/2013 13:54, Walter Valenti ha scritto:
>>
>>
>>> Ciao a tutti,
>>>
>>> dopo qualche mese (8/9) ho riavviato un serverino per manutenzione
>>> all'ups, dopodicchè non ne ha più voluto sapere di ripartire. Dopo un
>>> corretto avvio di grub, tutto quello che ottengo è:
>>>
>>> ----------------------------------------------------------------------
>>>
>>> Loading, please wait...
>>> Decompressor program not found: gunzip
>>> chld_handler(): Decompressor child exited anormally with code 1.
>>> /scripts/local-premount/resume: line 63: /bin/resume: not found
>>> mount: mounting /dev/disk/by-uuid/13d6a2c3-773b-4fd2-991b-18ec00215c19
>>> on /root failed: No such file or directory
>>> mount: mounting /dev on /root/dev failed: No such file or directory
>>> Target filesystem doesn't have requested /sbin/init.
>>> No init found. Try passing init= bootarg.
>>>
>>>
>>> Busybox v1.10.2 (Debian 1:1.10.2-2) built-in shell (ash)
>>> Enter 'help' for a list of built-in commands.
>>>
>>> /bin/sh: can't access tty: job control turned off
>>> (initramfs) _
>>>
>>
>>
>> Sempre partendo da una live, verifica i permessi di "/sbin/init".
> 
> Sono corretti, ma questo è l'init su sda1; invece, "guardando" dentro
> l'initrd del server con:
> 
> zless /boot/initrd.img-3.2.0-4-686-pae | cpio -i
> 
> ho scoperto che la directory /bin contiene solo 4 files (busybox, sh,
> loadkeys, kmod) mentre l'initrd del portatile ne contiene molti di più,
> e tra questi c'e' gunzip !
> 
> Chissà per quale motivo, quando lancio update-initrd vengono eliminati
> tutti quei file; in ogni caso, update-initrd mi dà questo warning:
> 
> cp: opzione non valida -- "n"
> 
> Che sia questa? Suggerimenti?
> 

Ugh, forse è lui; cp --help mi dà - sul portatile:

-n	no-clobber

mentre sul server non ha nessuna opzione -n; sicuramente la versione
aggiornata di initramfs-tools usa l'opzione no-clobber, mentre sul
server ho una vecchia versione di cp.

La questione è ora: quale pacchetto aggiornare per avere una "cp" recente?


-- 
Hofstadter's Law:
"It always takes longer than you expect, even when you take into account
Hofstadter's Law."


Reply to: