[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#896908: marked as done (busybox cpio: fails to extract absolute symlinks)



Your message dated Fri, 26 Jul 2019 23:16:13 +0900
with message-id <20190726141613.GA6311@chimagu>
and subject line Re: busybox cpio: fails to extract absolute symlinks
has caused the Debian Bug report #896908,
regarding busybox cpio: fails to extract absolute symlinks
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
896908: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896908
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: busybox-static
Version: 1:1.27.2-2
Severity: normal

I tried building debirf on a current Sid system (chroot, rather). The
generated initramfs failed to properly boot. I noticed that the
second-stage rootfs in it, is OK but when extracted misses /sbin/init
and a number of other symlinks from /sbin and thus the system fails to
boot due to a missing init.

cpio on Stretch and on Sid as well as busybox cpio on Stretch
(1:1.22.0-19+b3) extract the absolute symlinks OK, but busybox cpio on
Sid does not extract absolute symlinks.

A test for the problem:

#!/bin/sh
#cpio="cpio"
cpio="/bin/busybox cpio"

mkdir -p test_dir
cd test_dir

rm -rf src_dir
mkdir src_dir
cd src_dir
ln -s /bin/true absolute_link
touch a_file
ln -s a_file relative_link
# Create with the regular cpio:
ls absolute_link a_file relative_link | cpio -H newc -o >../test.cpio
cd ..

rm -rf dst_dir
mkdir dst_dir
cd dst_dir
# Extract with the tested cpio:
$cpio -H newc -i <../test.cpio
count=`ls | wc -l`
if [ "$count" = 2 ]; then
	echo "absolute links were not extracted"
fi



-- System Information:
Debian Release: 9.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf

Kernel: Linux 4.9.0-6-amd64 (SMP w/4 CPU cores)
Locale: LANG=he_IL.UTF-8, LC_CTYPE=he_IL.UTF-8 (charmap=UTF-8), LANGUAGE=he_IL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Version: 1:1.30.1-1

Hi,

This has been fixed in 1:1.30.1-1.
I close this bug.

Best regards,
  Nobuhiro
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEXmKe5SMhlzV7hM9DMiR/u0CtH6YFAl07Cy0ACgkQMiR/u0Ct
H6aEUA//XIMJrjyi89UX69PHxsFjRO9Y0q5WFtUhOQui8WSeaMRwx03N1UqaKKPo
eMK6sH46mYGu+4ugoW5VPwCV/2nUqg+wZNva1B3YIJUL5ZVl9JhSyyGSdd6lDoXg
W2sJdkc6CT+lXrpvnZoSQ9zY7/3bLzzQtiJn9GYYPENtDKWuQnu+gdmM9VetL/uH
AFngpFkhyhkeTBM3Ukt1brzHPd0DbyY01ROmvo+3WCWLis+sxJbbdMnpzigtlPD4
Ktk6yXwaAdIZ+NMt4qWwEIMc/YCLOUZEmUc2J860ooB9fg92NBcGshFXDqcZffQQ
Giu45wlUvDcSmeDASgNRK3r9hQFXcsvf7oaeR8k/AVYA3anOc4vwSek9QbyRylsx
t2pnGsAbyqFKoBFNru0fOnz145PwMobDQBr7xZwghrQARtGmIH+/X/2W4jtPnfb8
Ao9pamR75qga7QinqVh/QFar+WKRdE3dVUPFaBGvgtam2/OtEG27bPYfxQ6gVj3Q
L8+J3G0SrMgyxeI2AmW6RqkFC02ecfvzyHCoGGOV8pFHC2Vh8H+BJZ2ij3B2P0nQ
P0wgYfwLAxxS6rQ++EG9hKwaampPacHeUflyUjuiH9JNKHwxYG5QLebxDschLrVV
BhLQW4F2XYcSXsqSZh/wIv6mByTDgjDbC9eDaPTcrWX+MeTPbkQ=
=nZ/P
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: