Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
EOL for bliss-initramfs
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
Maxie
n00b
n00b


Joined: 06 Apr 2017
Posts: 26

PostPosted: Thu Sep 05, 2019 7:58 am    Post subject: EOL for bliss-initramfs Reply with quote

I installed my system using this guide.
Ever since I use bliss-initramfs when updating the kernel.
I see that now it's masked and scheduled to be removed. I suppose there are some problems with it that I failed to notice and that I would best stop using it.
But then - I don't really know what did it do to generate the initramfs. I don't know if other tools that generate initramfs are fully equivalent, should I use them in some specific way to make them work for me etc.

Could anyone please give me some pointers on generating intiramfs for root on nvme/zfs?

Mod edit: Corrected URL BBCode. — JRG
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Thu Sep 05, 2019 12:47 pm    Post subject: Re: EOL for bliss-initramfs Reply with quote

Maxie wrote:
I installed my system using this guide.
Ever since I use bliss-initramfs when updating the kernel.
I see that now it's masked and scheduled to be removed. I suppose there are some problems with it that I failed to notice and that I would best stop using it.
But then - I don't really know what did it do to generate the initramfs. I don't know if other tools that generate initramfs are fully equivalent, should I use them in some specific way to make them work for me etc.

Could anyone please give me some pointers on generating intiramfs for root on nvme/zfs?

Why do you think you need an initramfs?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Sep 05, 2019 3:30 pm    Post subject: Re: EOL for bliss-initramfs Reply with quote

charles17 wrote:
Why do you think you need an initramfs?
The ZFS article on the Gentoo Wiki has this to say:
    To boot from a ZFS volume as the root filesystem requires a ZFS capable kernel and an initial ramdisk (initramfs) which has the ZFS userspace utilities.
@Maxie, there are instructions in that article on how to use genkernel to make a ZFS-capable initramfs.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Thu Sep 05, 2019 8:14 pm    Post subject: Reply with quote

dracut should work fine these days as well 8)
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Maxie
n00b
n00b


Joined: 06 Apr 2017
Posts: 26

PostPosted: Fri Sep 06, 2019 2:33 pm    Post subject: Reply with quote

Thanks. I suppose there's nothing NVMe specific in that intitramfs, right?
Back to top
View user's profile Send private message
xanderal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2019
Posts: 133
Location: Germany

PostPosted: Fri Sep 06, 2019 2:37 pm    Post subject: Reply with quote

Maxie wrote:
Thanks. I suppose there's nothing NVMe specific in that intitramfs, right?
Not to my knowledge. I don't use zfs but have a nvme. I generate my initramfs with
Code:
genkernel --luks --lvm --install --no-mountboot --firmware initramfs
Seems like you only need to add zfs support.
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 772
Location: over here

PostPosted: Fri Sep 06, 2019 8:05 pm    Post subject: Reply with quote

https://github.com/zfsonlinux/zfs/pull/9109
Back to top
View user's profile Send private message
Maxie
n00b
n00b


Joined: 06 Apr 2017
Posts: 26

PostPosted: Wed Jan 15, 2020 6:00 am    Post subject: Reply with quote

I'm just going through it and I encountered issues.
genkernel warned me that
"No hostid embedded into initramfs. You MUST set 'spl_hostid=<hostid>' parameter to provide hostid for ZFS!".
OK. So I did a quick search of what hostid is, used hostid binary to read my hostid "it's 00000000", put that it /etc/hostid and generated initramfs again.
Then rebooted.

I'm not sure exactly what I mounted but the system would reject my user password as well as the root on (which I don't recall ever changing).
So I went back to check it out only to see that my system wouldn't boot - because hostid changed (to "30303030" or something like that) and zpool would reject import.
I fixed that with the help of rescue CD. So...I have 2 problems:
* I can't log in. So far I think I can figure it out myself
* I don't know how to manage hostid and what to do to make it 00000000 as it is now.

I would be grateful for any help with that...
Back to top
View user's profile Send private message
Maxie
n00b
n00b


Joined: 06 Apr 2017
Posts: 26

PostPosted: Wed Jan 15, 2020 1:51 pm    Post subject: Reply with quote

I tried creating empty /etc/hostid and it just did what I needed - used 00000000.
Once I did it I could actually log in, so the second problem fixed itself and I'm finally with a fresh kernel without bliss-initramfs.

Thanks again to everyone who helped. :)
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