You are not logged in.

#1 2013-06-11 08:30:09

tomsun.0.7
Member
Registered: 2013-06-11
Posts: 7

Trouble about Linux 3.9.5 Kernel

Linux 3.9.5 is in repo base these days and I try to upgrade it, but I got this result:

>>> Updating module dependencies. Please wait ...
>>> Generating initial ramdisk, using mkinitcpio.  Please wait...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
mktemp: unrecognized option '--tmpdir'
BusyBox v1.20.2 (2012-09-21 20:36:41 EDT) multi-call binary.
Usage: mktemp [-dt] [-p DIR] [TEMPLATE]
==> ERROR: Failed to create temporary working directory in /tmp

==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
mktemp: unrecognized option '--tmpdir'
BusyBox v1.20.2 (2012-09-21 20:36:41 EDT) multi-call binary.
Usage: mktemp [-dt] [-p DIR] [TEMPLATE]
==> ERROR: Failed to create temporary working directory in /tmp

And then I reboot my PC and of course it doesn't work any more.
So, I boot from a archlinux CD, and chroot to my system on harddisk, and ran

mkinitcpio -p linux

manually to generate initramfs. But the result was the same.
Then, I try to run

mktemp --tmpdir

to find what the problem is, but this line worked well.
Finally, I downgraded to 3.9.4. It returned the same result as upgrading but I can boot my system due to the existence of old initramfs.
So, who could tell me what the problem is and what should I do to solve it?

Last edited by tomsun.0.7 (2013-06-11 09:02:26)

Offline

#2 2013-06-11 08:49:05

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

Re: Trouble about Linux 3.9.5 Kernel

Seems mkinitcpio-busybox run into some problems.

Offline

#3 2013-06-11 08:54:20

tomsun.0.7
Member
Registered: 2013-06-11
Posts: 7

Re: Trouble about Linux 3.9.5 Kernel

karol wrote:

Seems mkinitcpio-busybox run into some problems.

What confused me a lot is that, it didn't occur to my classmates...and I don't think I did some crucial changes to my system.

Offline

#4 2013-06-11 08:56:50

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

Re: Trouble about Linux 3.9.5 Kernel

$ /usr/lib/initcpio/busybox mktemp --tmpdir
mktemp: unrecognized option '--tmpdir'
BusyBox v1.20.2 (2012-09-21 20:36:55 EDT) multi-call binary.

Usage: mktemp [-dt] [-p DIR] [TEMPLATE]

I can't find any mention to '--tmpdir' in mkinitcpio and building images works fine on my computer.

What's the output of

type -p mkinitcpio

?

Offline

#5 2013-06-11 08:57:38

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,050
Website

Re: Trouble about Linux 3.9.5 Kernel

Please read the Forum Etiquette on How to Post
and edit your first post to remove the extraneous [Help] in the title and include code tags.


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Online

#6 2013-06-11 09:03:25

tomsun.0.7
Member
Registered: 2013-06-11
Posts: 7

Re: Trouble about Linux 3.9.5 Kernel

jasonwryan wrote:

Please read the Forum Etiquette on How to Post
and edit your first post to remove the extraneous [Help] in the title and include code tags.

Sorry and I've changed it.

Offline

#7 2013-06-11 09:04:14

tomsun.0.7
Member
Registered: 2013-06-11
Posts: 7

Re: Trouble about Linux 3.9.5 Kernel

karol wrote:
$ /usr/lib/initcpio/busybox mktemp --tmpdir
mktemp: unrecognized option '--tmpdir'
BusyBox v1.20.2 (2012-09-21 20:36:55 EDT) multi-call binary.

Usage: mktemp [-dt] [-p DIR] [TEMPLATE]

I can't find any mention to '--tmpdir' in mkinitcpio and building images works fine on my computer.

What's the output of

type -p mkinitcpio

?

It's

/usr/bin/mkinitcpio

Offline

#8 2013-06-11 11:13:14

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Trouble about Linux 3.9.5 Kernel

tomsun,

And then I reboot my PC and of course it doesn't work any more.
So, I boot from a archlinux CD, and chroot to my system on harddisk, and ran

mkinitcpio -p linux

manually to generate initramfs. But the result was the same.

I had the same problem. Mlinitcpio didn't help.

At the end I booted with a rescue CD, mounted ARCH, went to

cd /var/cache/pacman/pkg
makepkg linux-3.9.5-1-x86_64.pkg.tar.xz

after that I could boot again, but I am none the wiser.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#9 2013-06-11 11:32:12

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

Re: Trouble about Linux 3.9.5 Kernel

Both my computers are 32-bit - no problems.

What is 'makepkg linux-3.9.5-1-x86_64.pkg.tar.xz' supposed to do?

Last edited by karol (2013-06-11 11:32:35)

Offline

#10 2013-06-11 11:40:45

tomsun.0.7
Member
Registered: 2013-06-11
Posts: 7

Re: Trouble about Linux 3.9.5 Kernel

karol wrote:

Both my computers are 32-bit - no problems.

What is 'makepkg linux-3.9.5-1-x86_64.pkg.tar.xz' supposed to do?

My system is 64-bit...
I think maybe 'makepkg linux-3.9.5-1-x86_64.pkg.tar.xz' is to compile mannually...

Last edited by tomsun.0.7 (2013-06-11 12:21:30)

Offline

#11 2013-06-11 11:48:32

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,011
Website

Re: Trouble about Linux 3.9.5 Kernel

It may be intended for that - but it is either a typo, or just wrong.  It will just give an error.  `pacman -U linux-3.9....` would be the command intended.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#12 2013-06-11 11:49:33

tomsun.0.7
Member
Registered: 2013-06-11
Posts: 7

Re: Trouble about Linux 3.9.5 Kernel

I get some new information from Chinese BBS:click here if you understand Chinese
I ran this line:

busybox mktemp --tmpdir

and I got the result:

mktemp: unrecognized option '--tmpdir'
BusyBox v1.20.2 (2012-09-21 20:36:41 EDT) multi-call binary.

Usage: mktemp [-dt] [-p DIR] [TEMPLATE]

It's the same result as before, I think it is just the source of this problem.
But I don't understand why...and how to solve it?

Offline

#13 2013-06-11 11:53:00

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

Re: Trouble about Linux 3.9.5 Kernel

tomsun.0.7 wrote:
busybox mktemp --tmpdir

and I got the result:

mktemp: unrecognized option '--tmpdir'
BusyBox v1.20.2 (2012-09-21 20:36:41 EDT) multi-call binary.

Usage: mktemp [-dt] [-p DIR] [TEMPLATE]

I already posted this https://bbs.archlinux.org/viewtopic.php … 6#p1286516 :-)

Offline

#14 2013-06-11 11:58:03

tomsun.0.7
Member
Registered: 2013-06-11
Posts: 7

Re: Trouble about Linux 3.9.5 Kernel

karol wrote:
tomsun.0.7 wrote:
busybox mktemp --tmpdir

and I got the result:

mktemp: unrecognized option '--tmpdir'
BusyBox v1.20.2 (2012-09-21 20:36:41 EDT) multi-call binary.

Usage: mktemp [-dt] [-p DIR] [TEMPLATE]

I already posted this https://bbs.archlinux.org/viewtopic.php … 6#p1286516 :-)

Oh, sorry...I am too concerned about the result of

type -p mkinitcpio

Last edited by tomsun.0.7 (2013-06-11 12:00:11)

Offline

#15 2013-06-11 14:21:08

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Trouble about Linux 3.9.5 Kernel

Trilby wrote:

It may be intended for that - but it is either a typo, or just wrong.  It will just give an error.  `pacman -U linux-3.9....` would be the command intended.

You are right, of course. But I tried so many things that it all mixed up in my head.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#16 2013-06-11 15:05:55

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,095
Website

Re: Trouble about Linux 3.9.5 Kernel

mkinitcpio should not be calling mktemp from busybox -- your system is fubar if /usr/bin/mktemp is calling busybox. Reinstalling coreutils might be a good thing to do here (or maybe you'll just run into more trouble given the bizzare state you've gotten yourself into).

Offline

Board footer

Powered by FluxBB