When I built 2.6.17 for the first time I was a little surprised to see
my kernel putting on >500Kb in weight.
It didn't take long to work out that this was because my initramfs's
contents were being included twice in the cpio image.
A make V=1 makes the problem obvious:
/bin/sh /usr/packages/linux/versions/i686-loki/scripts/gen_initramfs_list.sh -l "usr/initramfs" > usr/.initramfs_data.cpio.gz.d
/bin/sh /usr/packages/linux/versions/i686-loki/scripts/gen_initramfs_list.sh -o usr/initramfs_data.cpio.gz -u 0 -g 0 "usr/initramfs" "usr/initramfs"
Note that doubling-up of the "usr/initramfs", which leads to
gen_initramfs_list.sh dumping the thing into the cpio archive twice.
The cause is an obvious pasto, fixed thusly:
Signed-off-by: Nick Alcock <[email protected]>
diff -durN linux-orig/usr/Makefile linux/usr/Makefile
--- linux-orig/usr/Makefile 2006-06-21 00:07:10.000000000 +0100
+++ linux/usr/Makefile 2006-06-21 00:09:29.000000000 +0100
@@ -33,7 +33,7 @@
endif
quiet_cmd_initfs = GEN $@
- cmd_initfs = $(initramfs) -o $@ $(ramfs-args) $(ramfs-input)
+ cmd_initfs = $(initramfs) -o $@ $(ramfs-args)
targets := initramfs_data.cpio.gz
$(deps_initramfs): klibcdirs
--
`NB: Anyone suggesting that we should say "Tibibytes" instead of
Terabytes there will be hunted down and brutally slain.
That is all.' --- Matthew Wilcox
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]