LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 01-27-2014, 10:56 AM   #1
dandydonh1
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Rep: Reputation: Disabled
error creating mkinitramfs


Following the 7.4 book, I have a running system. However, I am unable to create an initrd.img file as the script errors out with the following error:

-bash-4.2# mkinitramfs 3.10.10

cp: target '/tmp/initrd-work.fTcNLwk475/lib/modules/3.10.10' is not a directory
depmod: ERROR: could not open directory /tmp/initrd-work.fTcNLwk475/lib/modules/3.10.10: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
done.


Please note that this error is from the running lfs system itself. Has anybody run into any issues with the mkinitramfs. I do not have any issues compiling and have some major servers running on my build, it is just creating an init image is causing fits.


Thanks
 
Old 01-27-2014, 02:20 PM   #2
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by dandydonh1

Has anybody run into any issues with the mkinitramfs.
I haven't.

I suspect a typo in your script. Or, maybe cpio is not installed.
 
Old 01-27-2014, 02:34 PM   #3
dandydonh1
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. cpio is installed:

-bash-4.2# cpio --version
cpio (GNU cpio) 2.11
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Phil Nelson, David MacKenzie, John Oleynick,
and Sergey Poznyakoff.



The script is from the lfs book: http://http://www.linuxfromscratch.o...initramfs.html
 
Old 01-27-2014, 03:52 PM   #4
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
My current mkinitramfs script is from the BLFS 7.4 book, but I compared it to the script you are using from the current SVN version. The differences are very minor and don't involve the section that copies files from /lib/modules. Anyway, I also ran your SVN mkinitramfs script in my BLFS system, and it created an initial ram filesystem file even more quietly than my version from the 7.4 book does (the new mkinitramfs version doesn't attempt to copy udev.conf if it doesn't exist, for example).
Code:
root [ /home/boo ]# ./mkinitramfs_test 3.10.10-1
Creating initrd.img-3.10.10-1... done.
root [ /home/boo ]#
So, I guess I still suspect a typo in the script you created. Did you hand type it or copy & paste? I recommend copy & paste for such a big script. If you did copy & paste, it's still possible to botch that or cut off the ends of long lines. Anyway, it happens all the time...to all of us.

P.S.: Even the link in your last post is busted (at this moment) because of a typo.
Quote:
Originally Posted by dandydonh1

The script is from the lfs book: http://http//www.linuxfromscratch.org/blfs/view/svn/postlfs/initramfs.html

Last edited by stoat; 01-28-2014 at 08:00 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
getting mkinitramfs-0.9.11 installed. slackware 13 shadyboy Slackware 4 04-21-2012 01:55 AM
MKINITRAMFS and Minimal Linux OS Scratch luispt Linux - Distributions 1 05-08-2008 07:00 PM
Compiling Linux kernel trouble at mkinitramfs dtmbmw325i Linux - Kernel 20 02-07-2008 07:23 AM
Differece: mkinitrd and mkinitramfs? kushalkoolwal Debian 2 05-14-2007 03:14 PM
io error after creating snarasim Red Hat 1 10-14-2005 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration