Booyo LiveCD/Make Initrd
BooyoLiveCD/MakeInitrd ¶1. copy knoppix minirt26.gz
2. unzip minirt26.gz
3. mkdir miniroot-booyo-0.1
4. mount -o loop minirt26 tmp
5. cp -Rp tmp/* miniroot-booyo-0.1/
6. cd miniroot-booyo-0.1
7. mv KNOPPIX BOOYO
8. cd BOOYO/
9. rm -f bin boot etc lib opt sbin usr var
10. softlink bin boot etc lib opt sbin usr var
12. rm -f bin boot lib opt usr
13. softlink bin boot lib opt usr
2005.03.17 ¶[root@localhost tmp]# ls -l ÇÕ°è 40 drwxr-xr-x 2 root 1000 1024 3¿ù 16 01:59 BOOYO lrwxrwxrwx 1 root root 10 11¿ù 30 09:31 bin -> /BOOYO/bin lrwxrwxrwx 1 root root 11 11¿ù 30 09:31 boot -> /BOOYO/boot drwxr-xr-x 2 root root 1024 3¿ù 16 01:59 cdrom drwxr-xr-x 4 root 1000 6144 3¿ù 16 01:44 dev drwxr-xr-x 4 root 1000 1024 3¿ù 16 02:07 etc lrwxrwxrwx 1 root root 10 11¿ù 30 09:31 lib -> /BOOYO/lib -rwxr-xr-x 1 root root 24949 3¿ù 17 05:19 linuxrc drwxr-sr-x 3 root 1000 1024 3¿ù 16 09:20 modules lrwxrwxrwx 1 root root 10 11¿ù 30 09:31 opt -> /BOOYO/opt drwxr-xr-x 2 root 1000 1024 11¿ù 21 16:26 proc lrwxrwxrwx 1 root root 6 3¿ù 16 02:09 sbin -> static drwxr-sr-x 2 root 1000 1024 3¿ù 16 02:11 static drwxr-xr-x 2 root 1000 1024 11¿ù 21 16:26 sys drwxr-xr-x 2 root 1000 1024 11¿ù 21 16:26 sysroot lrwxrwxrwx 1 root root 8 3¿ù 16 02:09 tmp -> /var/tmp lrwxrwxrwx 1 root root 10 11¿ù 30 09:32 usr -> /BOOYO/usr
change to cpio ¶* mount -o loop minirt tmp
* mkdir initrd
* cd tmp
* cp -Rp * ../initrd
* cd ..
* sh kk
(cd initrd; find . | cpio --quiet -c -o) > initrd.cpio* gzip -9 initrd.cpio * splash -s -f /etc/bootsplash/bootsplash-1280x600.cfg > bootsplash * echo bootsplash | cpio -o -H newc | gzip >> initrd.cpio.gz * ÇØ¾ß ÇÒÀÏ
|
Good fortune in love, as well as a better position. |