You are not logged in.

#1 2013-09-19 19:09:32

sinfree
Member
Registered: 2013-09-09
Posts: 10

archlinux with gentoo kernel

For 3 years, I used to work with archlinux distribution booting with a gentoo sources generated kernel.
With the transition to systemd, I am wondering if it can cause troubles to have this type of mixture.

Can you tell me if other users do such melting?

Offline

#2 2013-09-19 19:16:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: archlinux with gentoo kernel

What's so special about the gentoo kernel?
You can use your own custom kernel, so why not? https://wiki.archlinux.org/index.php/Kernels

Offline

#3 2013-09-19 20:05:09

sinfree
Member
Registered: 2013-09-09
Posts: 10

Re: archlinux with gentoo kernel

I used gentoo before archlinux and I thought as gentoo builds its packages from source, it can be a better choice for kernel compiling.
I use archlinux mainly for qemu-kvm and X11, delegating other proposes to other virtualized distributions.
Recently, I found that gentoo-source package propose a personalized menuconfig with gentoo specific options, for instance for systemd compatibility. It is an option activating different options in the kernel that are mandatory for systemd.
At the beginning of this experiment, I was leaded by an april's fool joke, saying a group was developing a distribution gathering the best of 5 distributions. mad
As a christian, I thought this message was intended for me, and I started a prototype with these distributions. Gentoo is reputed for building from sources, which leaded to my choice. smile

Offline

#4 2013-09-19 20:20:03

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: archlinux with gentoo kernel

No, I don't use the Gentoo kernel.

Yes, I think it would cause trouble.

But I'm still seriously confused. Gentoo kernels are built from source, and so are the kernels that are in the AUR and any kernel that you make a PKGBUILD for yourself. You can even rebuild the official kernel incredibly easily with different compile time options.

What's the difference?

Offline

#5 2013-09-19 21:02:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,691

Re: archlinux with gentoo kernel

It works fine.  But -- If you build things from the AUR  that are kernel dependent using buildpkg, you need to ensure that the Arch kernel headers are installed and are at the same level as is your Gentoo kernel.

Heck, I've even used an LFS kernel with Arch.

Last edited by ewaller (2013-09-19 21:02:26)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2013-09-20 03:37:05

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: archlinux with gentoo kernel

sinfree wrote:

booting with a gentoo sources generated kernel

You mean a binary kernel generated by Gentoo? That's a bizarre thing to do, given how fragile software is.

You should take whatever Gentoo kernel patches you want, and compile a kernel from within Arch.

Offline

#7 2013-09-20 14:03:38

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,542

Re: archlinux with gentoo kernel

The kernels all come from the same place.  Borrowing .kconfig from a gentoo install with a built AUR/PKGBUILD will probably do the same thing.  You run into a problem when your kernel is not consistent with the rest of the dependencies.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#8 2013-09-20 15:12:05

sinfree
Member
Registered: 2013-09-09
Posts: 10

Re: archlinux with gentoo kernel

I found in gentoo kernel menuconfig specific menus for gentoo systemd config.
I think that changes the .kconfig with gentoo dependant feature.
I think because of that .kconfig are not interchangeable.

Offline

#9 2013-09-20 16:20:53

sitquietly
Member
From: On the Wolf River
Registered: 2010-07-12
Posts: 220

Re: archlinux with gentoo kernel

sinfree wrote:

For 3 years, I used to work with archlinux distribution booting with a gentoo sources generated kernel.
With the transition to systemd, I am wondering if it can cause troubles to have this type of mixture.

Can you tell me if other users do such melting?

I only run the Gentoo kernel on my Arch-based systemd system, don't even bother to install an Archlinux binary kernel.  It has worked great for the past year. 

There is nothing gentoo-specific in the gentoo-sources package.  The stable Gentoo kernel sources (3.10.7) includes bfq as an option.  BTW, the Gentoo sources are close to vanilla linux.  It just seems to be well-maintained and tested patch set for getting a good kernel. 

Of course I build it from source and put all necessary hardware drivers and filesystems in the kernel big_smile   
i.e.
make menuconfig # enable all necessary hardware and filesystems for my system, modules for non-critical stuff
make
make modules_install
cp arch/x86_64/boot/bzImage /boot/vmlinuz-3.10.7-gentoo

With this initrd free kernel my boot time is 2.0 sec kernel + 8.0 sec userspace.

#add entry to grub.cfg such as

menuentry "Archlinux Custom Kernel - vmlinuz-3.10.7-gentoo" {
  insmod part_msdos
  insmod xfs
  set root=(hostdisk//dev/sda,msdos3)
  search --no-floppy --fs-uuid --set dcd07035-8a6e-43a4-a6ed-ba63ffe2ce2e
  linux /boot/vmlinuz-3.10.7-gentoo rootfstype=xfs root=/dev/sda3
  set gfxpayload=text
}

Offline

#10 2013-09-20 16:27:15

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,542

Re: archlinux with gentoo kernel

If you wanted the newest kernel, you could just use the kernel from the abs and make the tweaks, then makepkg.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

Board footer

Powered by FluxBB