Displaying 20 results from an estimated 10000 matches similar to: "Problems with large cpio images"
2006 Apr 17
0
[PATCH] klibc: rebuild cpio image when content changes
Generate dependencies almost like done by fixdep in the kernel.
This teaches make to rebuild cpio image when content has changed.
Also restructured usr/Kbuild a little so we better utilise parallel
makes (dash, gzip, utils and kinit are now build in parallel).
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
patch is on top of hpa's linux tree, so path differ if applied to the
klibc
2006 Feb 21
1
[PATCH] initramfs: multiple CPIO unpacking fix
The following patch unlinks (deletes) files, symlinks, FIFOs, devices
etc before writing them when extracting CPIOs. It doesn't delete
directories. This stops weird behaviour like:
1) writing through symlinks created in earlier CPIOs. eg foo->bar in
the first CPIO. Having foo as a non link in a subsequent CPIO,
results in bar being written and foo remaining as a symlink.
2)
2006 Mar 21
2
[PATCH] initramfs: CPIO unpacking fix
Unlink files, symlinks, FIFOs, devices etc. (except directories) before
writing them when extracting CPIOs. This stops weird behaviour like:
1) writing through symlinks created in earlier CPIOs. eg foo->bar in
the first CPIO. Having foo as a non-link in a subsequent CPIO,
results in bar being written and foo remaining as a symlink.
2) if the first version of file foo is larger
2002 Aug 18
1
initramfs scripts + cpio archive stuff
--32u276st3Jlj2kUU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi all (two) klibc hackers! 8)
Here's the stuff I've been using to build an initramfs image and run it
on one of my machines. Unfortunately, the "init" script contains hard
coded information about where to find the root, etc, but it should give
people a working base to start from.
It
2003 Nov 21
1
cpio archiving unpacking problem
Hello,
There seems to be problem in the cpio unpack in the kernel in
initramfs. I have an empty "/sys" directory in my cpio archive, but it
never shows up in my extracted initramfs.
I've confirmed that extracting the archive again with cpio results in a
correct tree, but it doesn't appear on boot when extracted by the
kernel.
Any ideas? I poked a bit, but I haven't
2006 Jan 14
1
Add cpio implementation to klibc
I was wondering if it would be possible to add a cpio (extraction)
implementation to klibc. Maybe this can be done in a way that the code
could bet shared between klibc and init/initramfs.c in the kernel.
Background of what I'm trying to do: I want to load an initramfs
from flash on a number of different devices. The devices are quite
similar but the partition in flash where the initramfs
2003 Mar 18
1
Reason for gen_init_cpio instead of just cpio?
I've googled to try and find discussion of this topic but didn't see any results
particularly interesting... Is there any particular reason the kernel has
gen_init_cpio instead of just using cpio itself? I'm working on some changes
that would involve just cpio-ing the entire usr/root subtree as the initramfs
image (instead of gen_init_cpio having to know ahead of time what files to
2005 Jan 27
2
content of initramfs CPIO archive
Hi,
I am compiling a tiny linux kernel 2.6.10 to be used together with linuxbios.
The boot phase will go as follows:
linuxbios->tiny linux kernel->initramfs
The initramfs shall use dhcp to get it's address and then tftp a full featured
kernel. This kernel must be started through kexec.
I use a tweaked networkdriver in the kernel and cannot use a normal PXE boot.
Which files should I
2006 Apr 09
1
[PATCH] kbuild: rebuild initramfs if included files changes
This fix has been implemented in preparation for the upcoming klibc
merge in -mm. But as it fixes a real (but rare I hope) bug in vanilla
kernel it will be added to my pending 2.6.17 kbuild queue.
I've done quite some changes to the gen_initramfs script and
being shell programming newbie review by more experienced shell
hackers would be appreciated.
I did a git mv
2006 Jan 13
1
FreeBSD Errata Advisory FreeBSD-SA-06:03.cpio
Hi there,
I'm following the security advisory to patch the cpio vulnerability (update to 6_0_0 RELENG p2, make obj, make depend), yet when it comes to make, it shows some error message as follows:
/usr/src/gnu/usr.bin/cpio/../../../contrib/cpio/copyin.c:536: error: redefinition of 'safer_name_suffix'
/usr/src/gnu/usr.bin/cpio/../../../contrib/cpio/copyin.c:488: error: previous
2006 Apr 08
0
[WIP] rebuild initramfs when content changes
hpa notified me in private mail that we have an issue that when building
initramfs - if the content changes (say kinit) then the initramfs will
not be rebuild.
The solution I have come up with is to let make check all the files
included in the initramfs and rebuild it if any files are newer than the
initramfs and also rebuild if arguments changes (root_uid).
In same process the usr/Kbuild file
2006 Apr 09
0
[PATCH] kbuild: fix usr/Kbuild to use new usr/gen_initramfs.sh
Fix usr/Kbuild so it utilise the new gen_initramfs.sh script
which will rebuild initramfs when the content has changed.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
usr/Kbuild | 74 +++++++++++++++++++----------------------------------------------
1 file changed, 22 insertions(+), 52 deletions(-)
This patch shall not be applied until my kbuild.git tree is merged
upstream. Or it
2006 Jan 11
0
FreeBSD Security Advisory FreeBSD-SA-06:03.cpio
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
=============================================================================
FreeBSD-SA-06:03.cpio Security Advisory
The FreeBSD Project
Topic: Multiple vulnerabilities cpio
Category: contrib
Module: contrib_cpio
Announced:
2006 Apr 17
0
[PATCH] klibc: default initramfs content stored in usr/initramfs.default
Harcoding default content of initramfs in the gen_initramfs_list.sh
script seems ackward. Move it to a file named:
usr/initramfs.default
This also fixes a small bug when no arguments was passed to
CONFIG_INITRAMFS_SOURCE (-d was passed twice to the script)
Idea and bug report from: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
2006 Jun 26
0
[klibc 08/43] klibc: default initramfs content stored in usr/initramfs.default
Harcoding default content of initramfs in the gen_initramfs_list.sh
script seems ackward. Move it to a file named:
usr/initramfs.default
This also fixes a small bug when no arguments was passed to
CONFIG_INITRAMFS_SOURCE (-d was passed twice to the script)
Idea and bug report from: "H. Peter Anvin" <hpa at zytor.com>
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
2008 Jun 17
1
Bug#486557: cpio segfault
hello,
On Mon, 16 Jun 2008, Joey Hess wrote:
> klibc cpio segfaults extracting various cpio files. It seems to work for
> small files, but fail for larger ones, including the d-i root floppy
> image.
>
> For example:
>
> joey at kodama:/tmp/empty>wget http://people.debian.org/~joeyh/d-i/images/20080401-09:01/floppy/root.img
> joey at kodama:/tmp/empty>zcat
2006 Jan 11
1
FreeBSD Security Advisory FreeBSD-SA-06:03.cpio
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
=============================================================================
FreeBSD-SA-06:03.cpio Security Advisory
The FreeBSD Project
Topic: Multiple vulnerabilities cpio
Category: contrib
Module: contrib_cpio
Announced:
2004 Dec 03
2
INITRAMFS: allow no trailer
According to "initramfs buffer format -- third draft"
http://lwn.net/2002/0117/a/initramfs-buffer-format.php3
"the cpio "TRAILER!!!" entry (cpio end-of-archive) is optional, but is
not ignored"
The kernel handling does not follow this spec. If you add null padding
after an uncompressed cpio without TRAILER!!! the kernel complains "no
cpio magic". In a
2011 Jun 28
0
[PATCH] cpio: cleanup O_BINARY usage.
No point of using it on a unixish OS.
Signed-off-by: maximilian attems <max at stro.at>
---
usr/utils/cpio.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/usr/utils/cpio.c b/usr/utils/cpio.c
index 6891883..15134b9 100644
--- a/usr/utils/cpio.c
+++ b/usr/utils/cpio.c
@@ -31,10 +31,6 @@
#include <fnmatch.h>
#endif
-#ifndef O_BINARY
-# define
2011 Jun 28
0
[PATCH 2/2] cpio: directly include fnmatch
Useless ifdeffery seen on previous cleanup.
Signed-off-by: maximilian attems <max at stro.at>
---
usr/utils/cpio.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/usr/utils/cpio.c b/usr/utils/cpio.c
index 15134b9..cb61679 100644
--- a/usr/utils/cpio.c
+++ b/usr/utils/cpio.c
@@ -27,9 +27,7 @@
#include <time.h>
#include <unistd.h>
#include