· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
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
  • ln -s /cdrom/BOOYO/bin bin
  • ln -s /cdrom/BOOYO/boot boot
  • ln -s /cdrom/BOOYO/etc etc
  • ln -s /cdrom/BOOYO/lib lib
  • ln -s /cdrom/BOOYO/opt opt
  • ln -s /cdrom/BOOYO/sbin sbin
  • ln -s /cdrom/BOOYO/usr usr
  • ln -s /cdrom/BOOYO/var var

11. cd ..

12. rm -f bin boot lib opt usr

13. softlink bin boot lib opt usr
  • ln -s /BOOYO/bin bin
  • ln -s /BOOYO/boot boot
  • ln -s /BOOYO/lib lib
  • ln -s /BOOYO/opt opt
  • ln -s /BOOYO/usr usr

14. change linuxrc 15. copy modules
  • cd ../modules/
  • cp /home/tcheun/LiveCD/cloop-2.01/cloop.ko .
  • rm cloop.o
  • rm insmod
  • rm rmmod

16. copy scsi modules
  • cd scsi
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/scsi/BusLogic.ko .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/scsi/a100u2w.ko .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/scsi/aic7xxx/aic7xxx.ko .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/scsi/aic7xxx_old.ko .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/scsi/fdomain.ko .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/scsi/gdth.ko .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/scsi/initio.ko .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/scsi/tmscsim.ko .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/scsi/ide-scsi.ko .
  • cp -p /lib/modules/2.6.9-booyo/kernel/drivers/scsi/scsi_mod.ko .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/scsi/sr_mod.ko .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/usb/host/* .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/usb/storage/usb-storage.ko .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/ieee1394/ieee1394.ko .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/ieee1394/sbp2.ko .
  • cp /lib/modules/2.6.9-booyo/kernel/drivers/ieee1394/ohci1394.ko .
  • chmod 0766 *.ko

17. copy static program
  • cd ../../static
  • rm insmod modprobe
  • cp -p /home/tcheun/LiveCD/ash-booyo-0.1/sh ash
  • cp /sbin/insmod.static insmod
  • cp /sbin/udev.static udevstart
    • FC4 cp /sbin/udevstart.static udevstart

need to do /etc

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
  • rm tmp
  • sbin 이 static 에 link 되어 있는 것이 문제인 것 같음.
    • /sbin/init 를 수행할 수가 없슴. (knoppix 는 /etc/init 를 수행?)
  • /etc/init 제거 ( in initrd )

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 * 해야 할일
  • init 에서 printk 0 로 바꿀 것
  • exec /sbin/init 제대로 된 것인지 검토 필요
  • switchroot 를 하지 않은 것에 대해서도 검토 필요
  • /dev/root 가 어떤 일을 하는지 알아 볼 것


ID
Password
Join
Stop searching forever. Happiness is just next to you.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2005-10-08 13:56:45
Processing time 0.0055 sec