Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Aggiornamento lvm2 e niente boot!
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
publiosulpicio
Apprentice
Apprentice


Joined: 31 Aug 2008
Posts: 150

PostPosted: Wed Dec 09, 2009 10:19 am    Post subject: Aggiornamento lvm2 e niente boot! Reply with quote

Salve a tutti. Ho la partizione di root cifrata con dm-crypt. Uso lvm, e ho cifrato l'intero physical volume (la partizione di boot non è cifrata). Ho initramfs built-in nel kernel, ecco il mio file init
Code:

#!/bin/busybox sh

# mount proc and sys
mount -t proc none /proc
mount -t sysfs none /sys

# unlock the hard disk
cryptsetup -T 5 luksOpen /dev/sda2 luks

# make lvm volumes available
lvm vgscan
lvm vgchange -a y

# mount the root filesystem
mount -o ro /dev/lvm/root /root

# clean up
umount /proc
umount /sys

# boot the real thing
exec switch_root /root /sbin/init

#busybox --install -s; exec sh


Ieri ho aggiornato lvm e il sistema non parte più! Dopo aver chiesto la passphrase si blocca nel momento di montare la partizione di root. Ho pensato che il problema fosse dell'initramfs, che ha l'eseguibile di lvm di una versione diversa da quella del sistema. Ho allora ricompilato il kernel con il nuovo lvm nell'initramfs, ma ho un kernel panic (attempting to kill init). L'unica soluzione che ho trovato è stata (tramite chroot) di mascherare lvm (e necessariamente udev) e far tornare tutto come prima. Qualcuno ha un problema simile? Idee? Grazie in anticipo!

Ricky
Back to top
View user's profile Send private message
publiosulpicio
Apprentice
Apprentice


Joined: 31 Aug 2008
Posts: 150

PostPosted: Thu Dec 10, 2009 12:50 am    Post subject: Reply with quote

Ho intanto scoperto che nelle nuove versioni di lvm l'eseguibile da mettere in /usr/src/initramfs/sbin/ è lvm.static, non lvm. Anche facendo questo e ricompilando il kernel però il sistema non parte. Qualcuno ha qualche idea? In realtà non sono neanche sicuro di dover modificare il file /usr/src/initramfs/sbin/lvm se ho aggiornato lvm2 nel sistema.. ogni aiuto è ben accetto!

Ricky
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum