Article 52PMC [SOLVED] mkinitrd - missing tempfile

[SOLVED] mkinitrd - missing tempfile

by
czezz
from LinuxQuestions.org on (#52PMC)
Hi,
This is follow up of my other thread: slackware minimal on Slackware 14.2.
This time I want to extend it by initrd.

I added following packages:
Code:mkinitrd-1.4.8-x86_64-8.txz
tar-1.29-x86_64-1.txz
gzip-1.8-x86_64-1.txz
cpio-2.12-x86_64-1.txzWhen I execute mkinitrd I get error in line 209 regarding missing tempfile
Code:/sbin/mkinitrd: line 209: tempfile: command not foundBy looking at line 209 in /sbin/mkinitrd I can see it is trying to use non-existing variable $(tempfile --prefix ldd-) to build: PRFX=$(tempfile --prefix ldd-)
For test, I have added PRFX=tmpx and that eventually successfully built initrd.gz

Without PRFX it goes endlessly like in the following output.
My question here is why "tempfile" is not defined or rather what am I missing...
This is odd a bit.

Code:root@darkstar:/boot# mkinitrd -c -k 4.4.14 -m ext4
OK: /lib/modules/4.4.14/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/4.4.14/kernel/fs/mbcache.ko added.
OK: /lib/modules/4.4.14/kernel/fs/ext4/ext4.ko added.
/sbin/mkinitrd: line 209: tempfile: command not found
cat: initrd-tree: Is a directory
cat: lost+found: Is a directory
cp: cannot stat ''$'\001\356\376\377\377\001\377\377\377''U'$'\252''*': No such file or directory
cp: cannot stat ''$'\006''.setup'$'\340''C'$'\002\340''C'$'\002''*': No such file or directory
cp: cannot stat 'P`.reloc*': No such file or directory
cp: cannot stat ''$'\340''E*': No such file or directory
cp: cannot stat ''$'\340''E@'$'\020''B.text@'\''tF@'\''tF*': No such file or directory
cp: failed to get attributes of 'P`.bss'$'\300\322''O'$'\001''@mt'$'\200\310\377\377''"'$'\001''tB'$'\a\377\377''U'$'\252\353''fHdrS'$'\r\002\020\340''6'$'\001\200\020\020''W'$'\377\377\377\177\001\001\025\037\377\a\264\003\316\260''s'$'\001''@'$'\304\001\220\001\214\330\216\300\374\214\322''9'$'\302\211\342''t'$'\026\272\020''W'$'\366\006\021\002\200''t'$'\004\213\026''$'$'\002\201\302\002''s'$'\002''1'$'\322\203\342\374''u'$'\003\272\374\377\216\320''f'$'\017\267\342\373\036''h'$'\237\002\313''f'$'\201''>'$'\370''CU'$'\252''ZZu'$'\027\277''D'$'\271\023''Wf1'$'\300'')'$'\371\301\351\002\363''f'$'\253''f'$'\350\273': No such file or directorylatest?d=yIl2AUoC8zA latest?i=cq13GOwrOgU:-uaTN5bdOp0:F7zBnMy latest?i=cq13GOwrOgU:-uaTN5bdOp0:V_sGLiP latest?d=qj6IDK7rITs latest?i=cq13GOwrOgU:-uaTN5bdOp0:gIN9vFwcq13GOwrOgU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments