Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 149020 | Differences between
and this patch

Collapse All | Expand All

(-)genkernel-3.4.4/gen_initrd.sh (-3 / +3 lines)
Lines 8-14 Link Here
8
		gen_die 'Could not create loopback mount directory!'
8
		gen_die 'Could not create loopback mount directory!'
9
	dd if=/dev/zero of=${TMPDIR}/initrd-${KV} bs=1k count=${1} >> "${DEBUGFILE}" 2>&1 ||
9
	dd if=/dev/zero of=${TMPDIR}/initrd-${KV} bs=1k count=${1} >> "${DEBUGFILE}" 2>&1 ||
10
		gen_die "Could not zero initrd-${KV}"
10
		gen_die "Could not zero initrd-${KV}"
11
	mke2fs -F -N500 -q "${TMPDIR}/initrd-${KV}" >> "${DEBUGFILE}" 2>&1 ||
11
	mke2fs -F -N1000 -q "${TMPDIR}/initrd-${KV}" >> "${DEBUGFILE}" 2>&1 ||
12
		gen_die "Could not format initrd-${KV}!"
12
		gen_die "Could not format initrd-${KV}!"
13
	mount -t ext2 -o loop "${TMPDIR}/initrd-${KV}" "${TEMP}/initrd-mount" >> "${DEBUGFILE}" 2>&1 ||
13
	mount -t ext2 -o loop "${TMPDIR}/initrd-${KV}" "${TEMP}/initrd-mount" >> "${DEBUGFILE}" 2>&1 ||
14
		gen_die 'Could not mount the initrd filesystem!'
14
		gen_die 'Could not mount the initrd filesystem!'
Lines 225-231 Link Here
225
	fi	
225
	fi	
226
226
227
	for i in '[' ash basename cat chroot clear cp dirname echo env false find \
227
	for i in '[' ash basename cat chroot clear cp dirname echo env false find \
228
	grep gunzip gzip ln ls loadkmap losetup lsmod mkdir mknod more mount mv \
228
	grep gunzip gzip ln ls loadkmap losetup lsmod mdev mkdir mknod more mount mv \
229
	pivot_root ps awk pwd rm rmdir rmmod sed sh sleep tar test touch true umount uname \
229
	pivot_root ps awk pwd rm rmdir rmmod sed sh sleep tar test touch true umount uname \
230
	xargs yes zcat chmod chown cut kill killall; do
230
	xargs yes zcat chmod chown cut kill killall; do
231
		rm -f ${TEMP}/initrd-temp/bin/$i > /dev/null
231
		rm -f ${TEMP}/initrd-temp/bin/$i > /dev/null
Lines 385-391 Link Here
385
	create_initrd_aux
385
	create_initrd_aux
386
386
387
	INITRD_CALC_SIZE=`calc_initrd_size`
387
	INITRD_CALC_SIZE=`calc_initrd_size`
388
	INITRD_SIZE=`expr ${INITRD_CALC_SIZE} + 100`
388
	INITRD_SIZE=`expr ${INITRD_CALC_SIZE} + 2500`
389
	print_info 1 "        :: Size is at ${INITRD_SIZE}K"
389
	print_info 1 "        :: Size is at ${INITRD_SIZE}K"
390
	print_info 1 "        >> Creating loopback filesystem..."
390
	print_info 1 "        >> Creating loopback filesystem..."
391
	create_initrd_loop ${INITRD_SIZE}
391
	create_initrd_loop ${INITRD_SIZE}

Return to bug 149020