Displaying 7 results from an estimated 7 matches for "cpio_file".
2006 Apr 08
0
[WIP] rebuild initramfs when content changes
...en direcotry to fs
# if a regular file is specified assume it is in gen_initramfs format
input_file() {
source="$1"
if [ -f "$1" ]; then
is_cpio="$(echo "$1" | sed 's/^.\*\.cpio/cpio/')"
if [ $2 -eq 1 -a ${is_cpio} == "cpio" ]; then
cpio_file=$1
[ ! -z ${list_file} ] && echo "$1"
return 0
fi
if [ -z ${file_list} ]; then
header "$1"
print_mtime "$1" >> ${cpio_list}
cat "$1" >> ${cpio_list}
else
grep ^file "$1" | cut -d ' ' -f 3...
2006 Apr 09
1
[PATCH] kbuild: rebuild initramfs if included files changes
...ecotry to fs
+# if a regular file is specified assume it is in gen_initramfs format
+input_file() {
+ source="$1"
+ if [ -f "$1" ]; then
+ is_cpio="$(echo "$1" | sed 's/^.*\.cpio/cpio/')"
+ if [ $2 -eq 0 -a ${is_cpio} == "cpio" ]; then
+ cpio_file=$1
+ [ ! -z ${list_file} ] && echo "$1"
+ return 0
+ fi
+ if [ -z ${file_list} ]; then
+ header "$1"
+ print_mtime "$1" >> ${output}
+ cat "$1" >> ${output}
+ else
+ grep ^file "$1" | cut -d ' ' -f...
2006 Apr 17
0
[PATCH] klibc: default initramfs content stored in usr/initramfs.default
...file() {
- if [ "$1" == "-d" ]; then
- ${dep_list}default_initramfs
- elif [ -f "$1" ]; then
+ if [ -f "$1" ]; then
is_cpio="$(echo "$1" | sed 's/^.*\.cpio/cpio/')"
if [ $2 -eq 0 -a ${is_cpio} == "cpio" ]; then
cpio_file=$1
@@ -257,8 +238,6 @@ while [ $# -gt 0 ]; do
;;
*)
case "$arg" in
- "-d") process_file "$arg" "$#"
- ;;
"-"*) unknown_option
;;
*) process_file "$arg" "$#"
diff --git a/usr/Kbuild b/usr/Kbuild
i...
2006 Apr 15
1
[PATCH] klibc: fix gen_initramfs_init.sh when using -d
...then
- ${dep_list}header "$1"
+ if [ "$1" == "-d" ]; then
+ ${dep_list}default_initramfs
+ elif [ -f "$1" ]; then
is_cpio="$(echo "$1" | sed 's/^.*\.cpio/cpio/')"
if [ $2 -eq 0 -a ${is_cpio} == "cpio" ]; then
cpio_file=$1
@@ -210,6 +207,15 @@ input_file() {
fi
}
+# input file/dir - process it
+process_file() {
+ if [ -z ${print_header} ]; then
+ ${dep_list}header "$1"
+ fi
+ print_header=y
+ input_file "$1" "$2"
+}
+
prog=$0
root_uid=0
root_gid=0
@@ -245,21 +251,17 @@ while...
2006 Jun 26
0
[klibc 08/43] klibc: default initramfs content stored in usr/initramfs.default
...specified assume it is in gen_initramfs format
input_file() {
- source="$1"
if [ -f "$1" ]; then
- ${dep_list}header "$1"
is_cpio="$(echo "$1" | sed 's/^.*\.cpio/cpio/')"
if [ $2 -eq 0 -a ${is_cpio} == "cpio" ]; then
cpio_file=$1
@@ -214,6 +192,15 @@ input_file() {
fi
}
+# input file/dir - process it
+process_file() {
+ if [ -z ${print_header} ]; then
+ ${dep_list}header "$1"
+ fi
+ print_header=y
+ input_file "$1" "$2"
+}
+
prog=$0
root_uid=0
root_gid=0
@@ -249,27 +236,29 @@ while...
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...SREG (statbuf.st_mode)) {
- /* Is it a cpio file? */
- char buf[6];
- ssize_t r = read (fd, buf, 6);
- if (r >= 6 && memcmp (buf, "070701", 6) == 0)
- /* Yes, a cpio file. This is a skeleton appliance, case (1). */
- cpio:
- writer->wr_cpio_file (inputs[i]);
- else if (r >= 2 && memcmp (buf, "\x1f\x8b", 2) == 0)
- /* A gzip-compressed file. This must be cpio; case (1). */
- goto cpio;
- else
- /* No, must be hostfiles, case (2). */
- add_hostfiles (inputs[i], writer);
- }
-...
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In
particular, the patchset has been reorganized so as not to break
git-bisect.
Additionally, this updates the patch base to 2.6.17-git12
(d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main
difference on the klibc side is removal of obsolete code.
This is also available as a git tree at: