Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Resume from hibernation doesn't work #2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
petan
n00b
n00b


Joined: 18 Jan 2016
Posts: 55

PostPosted: Mon Jan 25, 2016 4:47 pm    Post subject: Resume from hibernation doesn't work #2 Reply with quote

I encrypted my drive and now resume from hibernation doesn't work again, it starts resuming and on 100% done kernel lock-up. No oops or anything, just everything freezes last line being that image was loaded.

The disk schema:

/dev/sda1 /boot
/dev/sda2 encrypted LVM

in LVM I have 1 vg which contains 2 LV's, one for FS and one for swap. The bootloader ask for password which is used to decrypt /dev/sda and initialize LVM, there is no random key for swap it's always same data.

Some suggestions? Is there any way to debug why it hangs up?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Jan 25, 2016 6:56 pm    Post subject: Re: Resume from hibernation doesn't work #2 Reply with quote

petan wrote:
in LVM I have 1 vg which contains 2 LV's, one for FS and one for swap. The bootloader ask for password which is used to decrypt /dev/sda and initialize LVM, there is no random key for swap it's always same data.

petan ... the bootloader will not be able to activate the lvm, your initramfs will need to do this, plus point to the vg-lv used for resume. To use my setup (better-initramfs) as an example, the following are passed as kernel parameters:

rootfstype=ext4 luks enc_root=/dev/sda2 lvm root=/dev/mapper/vg-root swsusp resume=/dev/mapper/vg-swap

The 'luks' causes the initramfs to prompt for the password for /dev/sda2, 'lvm' causes vgscan/vgchange to be run, and once these are made available 'swsusp' checks for a resume image on /dev/mapper/vg-swap.

HTH & best ... khay
Back to top
View user's profile Send private message
petan
n00b
n00b


Joined: 18 Jan 2016
Posts: 55

PostPosted: Mon Jan 25, 2016 7:52 pm    Post subject: Reply with quote

yes you are right I said bootloader but meant initramfs that part however worked all time.

I found a workaround for this issue, when pressing SysRq + e it somehow continues and boot up fine, despite I don't understand why I have to do that. It's super annoying especially because I have no such a key on my laptop.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Jan 25, 2016 9:09 pm    Post subject: Reply with quote

petan wrote:
yes you are right I said bootloader but meant initramfs that part however worked all time.

petan ... you mean worked subsequent to your having encrypted sda2? Whatever the case it still points to your initramfs failing. I don't have any experience with genkernel, or other similar things, but I could provide advice/instructions for using better-initramfs.

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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