LinuxForum.Fans
Тема

TAR -> Directory renamed before its status could be extracted

Автор: Spider 5 сообщений 2726 просмотров
09.03.2015 10:40 #416961

Пытаюсь собрать прошивку для железки. Всегда всё было хорошо, но вот беда. На этот раз образ ядра не распаковывается.
Makefile делает примерно следующее:

Показать
text
xzcat /home/user/src/openwrt-615/dl/linux-3.14.25.tar.xz | /bin/tar -C /home/user/src/openwrt-615/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2 -xf -
/bin/tar: linux-3.14.25/arch/powerpc/boot/dts/include: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/powerpc/boot/dts: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/powerpc/boot: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/powerpc: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/mips/boot/dts/include: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/mips/boot/dts: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/mips/boot: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/mips: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/microblaze/boot/dts: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/microblaze/boot: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/microblaze: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/metag/boot/dts/include: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/metag/boot/dts: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/metag/boot: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/metag: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/arm/boot/dts/include: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/arm/boot/dts: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/arm/boot: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch/arm: Directory renamed before its status could be extracted
/bin/tar: linux-3.14.25/arch: Directory renamed before its status could be extracted
/bin/tar: Exiting with failure status due to previous errors

Что это? Как так то? Проверил папки по данным путям, ничего особенного не заметил.

09.03.2015 11:31 #416967

Если контрольная сумма есть, я бы проверил, вероятно, архив битый или сделан в винде, с виндовыми концами строк...

09.03.2015 11:35 #416969

http://lists.gnu.org/archive/html/bug-tar/2004-04/msg00021.html

в сухом остатке два варианта:

1.


[quote]Anyone has a quick and easy fix, please ?

The --absolute-names option should work around any problem here.
However, this also disables some important security checking, so don't
use it unless you trust the source of the tar image.
[/quote]

2.


[quote]> The only "strange" thing in the setup I am doing this
> is that I am extracting from an iso9660 image file mounted using the loop
> option to a umsdos FAT32 filesystem. Who knows, maybe tar does not like
> UMSDOS, but IMHO it should be transparent to it what kind of filesystem
> it's reading/writing from/to.

Possibly umsdos is not reporting st_dev and st_ino correctly to tar,
when tar issues the 'stat' system call on an umsdos directory. That
would explain the problem. (It would also suggest that you have
a serious problem with umsdos, but that's a different matter.)

You can test this theory (and the other theories mentioned above) by
running strace on tar, and looking at what the stat calls are
returnning.[/quote]
09.03.2015 18:51 #417023

не совсем понятно что про umsdos они имели ввиду. Типа "от туда" паковалось? Или туду? Не туда это точно, у меня ext4.

10.03.2015 07:54 #417056
"Spider" написал:
не совсем понятно что про umsdos они имели ввиду.

http://lists.gnu.org/archive/html/bug-tar/2004-04/msg00020.html

"Spider" написал:
у меня ext4.

значит остаётся первый вариант: тарбол то-ли битый, как yars говорит, то-ли лезет куда-то туда, куда лезть нельзя.

Если вы УВЕРЕНЫ, что так и надо, то помогут права рута и опция --absolute-names.

Войдите или зарегистрируйтесь, чтобы ответить.