1 |
Dunno if this is helpful, but I make initrds all the time without a |
2 |
special tool. This is the applicable snippet from the script that I |
3 |
use. |
4 |
|
5 |
echo Calculating size of root disk |
6 |
size=$(( $(du -s ${target} | cut -f1) * 11 / 10 )) |
7 |
echo Building root disk of ${size}k |
8 |
dd if=/dev/zero of=initrd.img bs=1k count=${size} || exit 1 |
9 |
mke2fs -F initrd.img || exit 1 |
10 |
mkdir -p initrd |
11 |
mount initrd.img initrd -o loop || exit 1 |
12 |
cp -a ${target}/* initrd |
13 |
umount initrd || exit 1 |
14 |
gzip -f -9 initrd.img || exit 1 |
15 |
|
16 |
Aron |
17 |
|
18 |
-- |
19 |
gentoo-dev@g.o mailing list |