You are not logged in.
Pages: 1
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
Seems mkinitcpio-busybox run into some problems.
Offline
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
$ /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
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.
Offline
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
$ /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
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 ranmkinitcpio -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
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
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
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.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
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
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
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
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
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
Pages: 1