Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41945 - genkernel 3.0.1_beta12: MAKEDEV command not found; initrd not build
Summary: genkernel 3.0.1_beta12: MAKEDEV command not found; initrd not build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-17 12:43 UTC by G. Angely
Modified: 2004-08-04 02:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description G. Angely 2004-02-17 12:43:04 UTC
When started from an 'su' shell, genkernel can not format initrd.
The error is reported as:
------------
/usr/bin/genkernel: line 49: MAKEDEV: command not found 
/usr/bin/genkernel: line 50: MAKEDEV: command not found 
...
gen_die(): could not format initrd-loop
------------
When started from an login root shell, initrd is correctly formatted.



Reproducible: Always
Steps to Reproduce:
1. (from an user kernel) sudo bash
2. genkernel all
3.

Actual Results:  
initrd-x.y.z file not written in /boot

Expected Results:  
initrd-x.y.z file in /boot
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-02-19 10:11:48 UTC
OK, can you please upgrade to the latest baselayout in Portage and tell us if you still get this?
Comment 2 Brad House 2004-02-21 13:49:16 UTC
most likely you need to do   'su -'  NOT  'su' to get to a root
shell.  Otherwise /sbin and /usr/sbin will NOT be in your path.

-Brad
Comment 3 Niklas Herder 2004-08-04 02:45:16 UTC
This also makes genkernel not work with sudo, which is my preferred method of sysadmining.
Wouldn't a trivial fix be to use /sbin/MAKEDEV instead of just MAKEDEV?
Or is there more to this?

I thought it was good practice to use absolute paths anyway, when doing something requiring root privileges.