Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Do you prefer dracut or genkernel?
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
crocket
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2017
Posts: 125

PostPosted: Sat Mar 02, 2019 8:37 am    Post subject: Do you prefer dracut or genkernel? Reply with quote

Both work, but genkernel's initial ramdisk seems to produce prettier boot messages.

What do you prefer?
Back to top
View user's profile Send private message
Koyan
n00b
n00b


Joined: 07 Nov 2014
Posts: 3

PostPosted: Sat Mar 02, 2019 8:57 am    Post subject: Reply with quote

Bliss-initramfs. Works the best for me with root on zfs.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42564
Location: 56N 3W

PostPosted: Sat Mar 02, 2019 9:40 am    Post subject: Reply with quote

crocket,

I like to know what's in my system, so when it breaks, I can put the pieces together again.

I dislike all the autoblackmagic equally.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
crocket
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2017
Posts: 125

PostPosted: Sat Mar 02, 2019 12:50 pm    Post subject: Reply with quote

Koyan wrote:
Bliss-initramfs. Works the best for me with root on zfs.


LOL. https://github.com/fearedbliss/bliss-initramfs says bliss-initramfs is unmaintained. Welcome to genkernel.

NeddySeagoon wrote:
I dislike all the autoblackmagic equally.


What do you use to generate initial ramdisk?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42564
Location: 56N 3W

PostPosted: Sat Mar 02, 2019 1:39 pm    Post subject: Reply with quote

crocket,

The method described here.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
crocket
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2017
Posts: 125

PostPosted: Sat Mar 02, 2019 2:15 pm    Post subject: Reply with quote

NeddySeagoon wrote:
crocket,

The method described here.


I thought I was driving gentoo like a car with a stick shift. https://forums.gentoo.org/viewtopic-t-1093724.html was truly a mind fuck.

It seems a stick shift is still a high-level abstraction for you. Are you taming a difficult horse?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42564
Location: 56N 3W

PostPosted: Sat Mar 02, 2019 2:25 pm    Post subject: Reply with quote

crocket,

Whenever you use the 'black box' solution to solve a problem, someone, sometime, had to understard the problem well enough to create the 'black box' for you to use.

I'm not saying that 'black box' solutions are inherently bad, just that they don't always work and when that happens you have no understanding of what went wrong.
By all means use black boxs to delay the learning opportunity but don't put it off forever. One day, you will wish you hadn't, then its too late.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 373
Location: Canada

PostPosted: Sat Mar 02, 2019 4:09 pm    Post subject: Reply with quote

I write my own, basically using the method refereed to by Neddy
I find it much easier than trying to understand either Dracut or genkernel.
Back to top
View user's profile Send private message
Koyan
n00b
n00b


Joined: 07 Nov 2014
Posts: 3

PostPosted: Sat Mar 02, 2019 5:28 pm    Post subject: Reply with quote

crocket wrote:
Koyan wrote:
Bliss-initramfs. Works the best for me with root on zfs.


LOL. https://github.com/fearedbliss/bliss-initramfs says bliss-initramfs is unmaintained. Welcome to genkernel.



Thanks for the info. Did you have to LOL though?
Back to top
View user's profile Send private message
Muso
l33t
l33t


Joined: 22 Oct 2002
Posts: 968
Location: The Holy city of Honolulu

PostPosted: Sat Mar 02, 2019 6:20 pm    Post subject: Reply with quote

NeddySeagoon wrote:
crocket,

I like to know what's in my system, so when it breaks, I can put the pieces together again.

I dislike all the autoblackmagic equally.


++

Same. Plus, I like having a kernel that doesn't include a bunch of modules that I will never use.
_________________
Time is a great teacher, but unfortunately it kills all its pupils.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5586
Location: Removed by Neddy

PostPosted: Sat Mar 02, 2019 7:25 pm    Post subject: Reply with quote

no initramFS so neither. my use cases do not need one so I don't.
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Syl20
Guru
Guru


Joined: 04 Aug 2005
Posts: 550
Location: France

PostPosted: Mon Mar 04, 2019 5:17 pm    Post subject: Reply with quote

On my laptop, using LVM+LUKS, I wrote my own initramfs generator script, using this and this. That took some time to make it work, but I learnt lots of things on how that works. So those spent hours were absolutely not a waste of time.
On all the other boxes I own, I don't use an initramfs. I don't need it, even with a separate /usr filesystem/partition.
Back to top
View user's profile Send private message
msst
Apprentice
Apprentice


Joined: 07 Jun 2011
Posts: 213

PostPosted: Wed Mar 06, 2019 9:58 pm    Post subject: Reply with quote

I use genkernels initramfs on a small server. Tried dracut, more complicated on the server, not working correctly on the desktop.
On that desktop I use better-initramfs. Both systems use full-disk encryption dmcrypt-luks and btrfs. This configuration is not easy generally and requires an initramfs.
Back to top
View user's profile Send private message
crocket
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2017
Posts: 125

PostPosted: Thu Mar 07, 2019 6:06 am    Post subject: Reply with quote

msst wrote:
I use genkernels initramfs on a small server. Tried dracut, more complicated on the server, not working correctly on the desktop.
On that desktop I use better-initramfs. Both systems use full-disk encryption dmcrypt-luks and btrfs. This configuration is not easy generally and requires an initramfs.


If you use full-disk encryption, can it be woken up remotely? You would have to type password whenever you wake it up.
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1461
Location: KUUSANKOSKI, Finland

PostPosted: Thu Mar 07, 2019 11:18 am    Post subject: Reply with quote

Currently I use initramfs on my desktop and server. On both setups /boot (and /boot/efi) are located on an USB memory stick. All the disks on my systems have no partition tables, but are all formatted/filled with btrfs.
Since I use multi-device btrfs it's pretty complicated to boot without iniramfs. Well.. Tehnically I could boot kernel with rootfsflags=device=/dev/sda,device=/dev/sdb,device=/dev/sdc,device=/dev/sdd,device=/dev/sde, but it's not recommended.
I have had ideas of creating my own initramfs, but hadn't really put too much thought to it... yet. So my current solution is to use genkernel.
One another way would be to supply custom linuxrc for genkernel. That would possibly be a pretty good "middle ground".
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
msst
Apprentice
Apprentice


Joined: 07 Jun 2011
Posts: 213

PostPosted: Tue Apr 02, 2019 8:08 pm    Post subject: Reply with quote

Quote:
If you use full-disk encryption, can it be woken up remotely? You would have to type password whenever you wake it up.


You probably mean suspend to disk, which I do not use anyway. One could probably get it to work by using an unencrypted swap, but that defeats the purpose. Suspend to ram works on the desktop without problems.
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 471
Location: Hawaii

PostPosted: Wed Apr 03, 2019 6:46 am    Post subject: Reply with quote

Manual after emerging new sources. It's really not so bad once you get used to it. and Gives you much more control over and insight into the workings of your system. Have never emerged Genkerel. I know vaguely what it is, but have no use of it.
_________________
Asus Prime x370 Pro
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 407

PostPosted: Wed Apr 03, 2019 8:42 am    Post subject: Reply with quote

Only use genkernel-next for the machine that has root in raid btrfs.
Does anyone know other initramfs builders that support root raid btrfs/plymouth?
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5801

PostPosted: Wed Apr 03, 2019 8:45 am    Post subject: Reply with quote

i didn't use an initrd for many years until i switched to zfs... afaik, even if you build the modules into the kernel, you still need an initrd to import your pool and mount datasets. that said, i'm currently using dracut because genkernel had bugs at the time. it was suggested to me that genkernel would switch to dracut for initrd generation, but last time i checked, that hadn't happened.
_________________
overlay | patches
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.
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