Magellan Linux

Annotation of /trunk/linterm_tools/fw_builder/mkroot.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 658 - (hide annotations) (download) (as text)
Mon Jan 14 16:57:24 2008 UTC (16 years, 4 months ago) by niro
File MIME type: application/x-sh
File size: 274 byte(s)
initial import

1 niro 658 #!/bin/sh -e
2    
3     rm -f initrd.img
4    
5     size=`du -s initrd | sed 's/[ ].*//'`
6     let size=$size+64
7    
8     dd if=/dev/zero of=initrd.raw bs=1024 count=$size
9     mkfs.minix initrd.raw
10    
11     mount -o loop initrd.raw /mnt
12     cp -a initrd/* /mnt
13     umount /mnt
14    
15     gzip -9 < initrd.raw > initrd.img
16     rm initrd.raw

Properties

Name Value
svn:executable *