[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

initrd build problems



When I try to make an initrd, it always fails like this:

Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done
mount -t ext2 -o loop ./tmp/debian-installer ./mnt/debian-installer
cp -a debian-installer/* ./mnt/debian-installer/
cp: writing `./mnt/debian-installer/usr/lib/libdebconf.so.0.1.0': No space left on device
cp: cannot create directory `./mnt/debian-installer/usr/lib/cdebconf': No space left on device
cp: cannot create directory `./mnt/debian-installer/usr/lib/debian-installer': No space left on device
cp: cannot create directory `./mnt/debian-installer/var': No space left on device
make: *** [initrd] Error 1

I wonder why it's working for you.. If I add a fuzz factor of 122 to
your initrd size calculation, it seems to work:

        dd if=/dev/zero of=$(TMP_FILE) bs=1k count=`expr $$(du -s $(DEST) | cut -f 1) + 122`

The resulting initrd is:

-rw-r--r--    1 root     root         607k Jan 31 16:26 initrd.gz

(I left a couple of udebs out..)

The kernel image build needs a lot of work.. I may feel inspired to go in 
and set it up to use apt to download the kernel-image-di.deb.

Anyhoo, I've finally booted it for the first time. :-)

-- 
see shy jo



Reply to: