А чего у меня 3.10.* виснет при загрузке (EFI, initramfs)? Никто не сталкивался?
От: dimgel Россия https://github.com/dimgel
Дата: 01.09.13 12:45
Оценка:
Всем привет.

Гружу ядро, выбирая вручную егойный EFI-файл в биосе. В initramfs у меня cryptsetup. В 3.9.* было всё пучком, 3.10.* виснет (видимо ещё до начала загрузки initramfs, т.к. проставленные в начало init команды echo не выводились), кулера процессорные гудят, но на кнопку "выкл" реагирует. Никто не нарывался ни на что подобное? ХЗ куда копать. cryptsetup перекомпилял после `eselect kernel set <3.10.*>`, разумеется.

# cat /usr/src/initramfs/initramfs
# /usr/share/v86d/initramfs
dir /dev 0755 0 0
nod /dev/console 0600 0 0 c 5 1
#nod /dev/tty1 0600 0 0 c 4 1
#nod /dev/zero 0600 0 0 c 1 5
#nod /dev/mem 0600 0 0 c 1 1
dir /root 0700 0 0
dir /sbin 0755 0 0
file /sbin/v86d /sbin/v86d 0755 0 0

# my
dir /bin 0755 0 0                                                                                                                                                                                                  
dir /etc 0755 0 0                                                                                                                                                                                                  
dir /lib 0755 0 0                                                                                                                                                                                                  
dir /mnt 0755 0 0                                                                                                                                                                                                  
dir /mnt/newroot 0755 0 0                                                                                                                                                                                          
dir /proc 0755 0 0                                                                                                                                                                                                 
dir /sys 0755 0 0                                                                                                                                                                                                  
                                                                                                                                                                                                                   
file /bin/busybox /bin/busybox 0755 0 0                                                                                                                                                                            
file /sbin/cryptsetup /sbin/cryptsetup 0755 0 0                                                                                                                                                                    
                                                                                                                                                                                                                   
file /init /usr/src/initramfs/init 0755 0 0


# cat /usr/src/initramfs/init
#!/bin/busybox sh

mount -t devtmpfs none /dev
mount -t proc none /proc
mount -t sysfs none /sys

cryptsetup luksOpen --allow-discards /dev/sdb2 rootx

mount -o ro -t ext4 /dev/mapper/rootx /mnt/newroot

# Without `mount --move`, loading hangs after switch_root,
# perhaps because /dev/mapper is lost after /dev is unmounted.
#umount /dev
#umount /proc
#umount /sys
mount --move /dev /mnt/newroot/dev
mount --move /proc /mnt/newroot/proc
mount --move /sys /mnt/newroot/sys

# It woes at `unknown -s`, but without first command second does not run.
#busybox -s
#busybox sh

exec switch_root /mnt/newroot /sbin/init


# grep EFI /usr/src/linux-3.10.10-gentoo/.config
CONFIG_EFI_PARTITION=y
CONFIG_EFI=y
CONFIG_EFI_STUB=y
# CONFIG_FB_EFI is not set
# EFI (Extensible Firmware Interface) Support
CONFIG_EFI_VARS=y
# CONFIG_EFIVAR_FS is not set
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.