Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bash: genkernel: command not found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Hugawaka
n00b
n00b


Joined: 15 Oct 2018
Posts: 2

PostPosted: Mon Oct 15, 2018 1:03 am    Post subject: Bash: genkernel: command not found Reply with quote

I'm trying to install on amd64 and I run into the error:
Code:
bash: genkernel: command not found

I have followed the handbook closely and haven't deviated from the defaults much except for that I'm using a hardened profile with selinux.
I have emerged genkernel
I'm in chroot
I've done emerge --sync and reinstalled and genkernel still doesn't work
I haven't ran into any other errors while installing

Here are some code things that might help:
Code:
(chroot) new-host-8 / # which genkernel
which: no genkernel in (/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin)


Code:
(chroot) new-host-8 / # emerge --ask sys-kernel/genkernel

 * IMPORTANT: 2 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-arch/cpio-2.12-r1  USE="nls"
[ebuild  N     ] sys-kernel/linux-firmware-20181001  USE="-savedconfig"
[ebuild   R    ] sys-apps/util-linux-2.32-r4  USE="static-libs*"
[ebuild  N     ] sys-kernel/genkernel-3.5.3.3  USE="firmware (selinux) -cryptsetup (-ibm)"

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by sys-kernel/genkernel-3.5.3.3::gentoo
# required by sys-kernel/genkernel (argument)
>=sys-apps/util-linux-2.32-r4 static-libs

Would you like to add these changes to your config files? [Yes/No] Y

Autounmask changes successfully written.

 * IMPORTANT: 3 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
(chroot) new-host-8 / # genkernel --menuconfig all
bash: genkernel: command not found
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7544
Location: Goose Creek SC

PostPosted: Mon Oct 15, 2018 3:37 am    Post subject: Reply with quote

good discussion: https://forums.gentoo.org/viewtopic-t-1087600.html
generally when portage complains instead of merging packages, you need to fix the complaints and then repeat the emerge.
BTW, I think I know that genkernel and hardened don't work together and that hardened and current kernels also have incompatibilities.

Edit for typo
_________________
Defund the FCC.


Last edited by DONAHUE on Mon Oct 15, 2018 12:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13033

PostPosted: Mon Oct 15, 2018 3:43 am    Post subject: Re: Bash: genkernel: command not found Reply with quote

Hugawaka wrote:
Code:
bash: genkernel: command not found
I have emerged genkernel
Are you sure about that? Your output says that it is not installed yet.
Hugawaka wrote:
Code:
(chroot) new-host-8 / # emerge --ask sys-kernel/genkernel
[ebuild  N     ] sys-kernel/genkernel-3.5.3.3  USE="firmware (selinux) -cryptsetup (-ibm)"
N = New install. If you had installed genkernel, that line would be R.
Hugawaka wrote:
Code:
The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by sys-kernel/genkernel-3.5.3.3::gentoo
# required by sys-kernel/genkernel (argument)
>=sys-apps/util-linux-2.32-r4 static-libs
This indicates that Portage is not willing to merge the package without a configuration change.
Back to top
View user's profile Send private message
wuzzerd
Guru
Guru


Joined: 05 Jan 2005
Posts: 447
Location: New Mexico

PostPosted: Mon Oct 15, 2018 3:24 pm    Post subject: Re: Bash: genkernel: command not found Reply with quote

Hugawaka wrote:


The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by sys-kernel/genkernel-3.5.3.3::gentoo
# required by sys-kernel/genkernel (argument)
>=sys-apps/util-linux-2.32-r4 static-libs

Would you like to add these changes to your config files? [Yes/No] Y

Autounmask changes successfully written.

* IMPORTANT: 3 config files in '/etc/portage' need updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
(chroot) new-host-8 / # genkernel --menuconfig all
bash: genkernel: command not found[/code]


Run etc-update to update your configuration files, then try emerging genkernel.
Back to top
View user's profile Send private message
Hugawaka
n00b
n00b


Joined: 15 Oct 2018
Posts: 2

PostPosted: Tue Oct 16, 2018 3:00 am    Post subject: Reply with quote

Ok thanks, it works now after I did etc-update for the outdated files mentioned by emerge. I saw something on the wiki about how certain errors can be ignored when installing, but I guess I should just read more.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3613
Location: Hamburg

PostPosted: Tue Oct 16, 2018 12:16 pm    Post subject: Reply with quote

DONAHUE wrote:
BTW, I think I know that genkernel and hardened don't work together and that hardened and current kernels also have incompatibilities
IMO the answer is 'no' and 'not at all'.
At least in the past genkernel worked fine at a hardened system.
Furthermore nearly all (vanilla) kernel in the last 4 years worked fine at a hardened Gentoo. I do follow the latest stable vanilla kernel from Greg Kroah-Hartmann since the GrSecurity people decided to stop providing a kernel patch for free - there were no problems so far.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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