# # InitRD.txt # ========== # - read by InitRD-RootFS.sh.txt ( was Make.RD.Loop.sh ) # # # # # list of files for creating a minimal initrd.gz # # # # # Original Files # -------------- # http://Linux-Boot.net//Boot.Standalone/Scripts/InitRD.txt # # # ============================================================= # You will need to change the file names to match your distro # ============================================================= # - # - minimum libs and binaries should be listed to execute /linuxrc # - # # # 20-Nov-00 amo Date-of-Birth # 06-Nov-04 amo Split off list of files into Make.InitRD.txt and Make.Loop.txt # 17-Nov-04 amo Test with /boot/vmlinuz-2.4.27 # 17-Mar-05 amo Added bootUSB in addition to bootCF with linux-2.4.29small # 26-Mar-05 amo Added /dev/sda for USB, removed *fsck to create more space # 10-Aug-05 amo Renamed to InitRD.Slack-10.1.txt, changed 2.4.29-ow1 to 2.4.31-ow1 # 11-Aug-05 amo Use hardcoded KERVER for 2.4.31-ow1.i586 vs 2.4.31-ow1.p4 # 12-Aug-05 amo Moved $ARCH dependent /lib/modules to InitRD-RootFS.sh.txt # 20-Aug-05 amo WRAP does not have battery, check the date with awk ( defaults to 2000 ) # # # # Copy the kernel modules as needed # --------------------------------- # /lib/modules/2.4.29-ow1 # # # 12-Aug-05 amo Moved $ARCH dependent /lib/modules to InitRD-RootFS.sh.txt # # Hardcode the kernel versions # ---------------------------- # 2.4.31-ow1.p4 # 2.4.31-ow1.i586 # # #lib/modules/2.4.31-ow1.p4/modules.dep # /lib/modules/2.4.31-ow1.i586/modules.dep # # # # need loop, minix and scsi for usb # /lib/modules/2.4.31-ow1.i586/kernel/drivers/block # /lib/modules/2.4.31-ow1.i586/kernel/fs/minix # /lib/modules/2.4.31-ow1.i586/kernel/drivers/scsi # # # # usb mouse/kb and usb stick ( built into the kernel or rc.usb-stick start ) # /lib/modules/2.4.31-ow1.i586/kernel/drivers/input/ # /lib/modules/2.4.31-ow1.i586/kernel/drivers/usb # # # Copying /root ( color console ) # ------------- #root/.alias #root/.bashrc #root/.dircolor # # # Copying /boot ( change from 25MB to 27MB ) # ------------- # NOT needed in initrd.gz #boot/System.map-2.4.27 #boot/vmlinuz-2.4.27 # # # Copy minimum /dev # ----------------- /dev/loop /dev/loop0 /dev/loop1 /dev/loop2 /dev/loop3 /dev/loop4 /dev/ram /dev/ram0 /dev/ram1 /dev/ram2 /dev/ram3 /dev/ram4 /dev/initrd # /dev/hda /dev/hda1 /dev/hda2 /dev/hda3 /dev/hda4 /dev/hdc /dev/hdc1 /dev/hdc2 /dev/hdc3 /dev/hdc4 # # for usb /dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 # # for ide-cd /dev/cdrom /dev/scd0 /dev/scd1 /dev/scd2 /dev/scd3 # /dev/console /dev/systty /dev/tty0 /dev/tty1 /dev/tty2 /dev/tty3 /dev/tty4 /dev/tty5 /dev/tty6 /dev/tty7 # /dev/null /dev/zero # /dev/fd /dev/stdin /dev/stdout /dev/stderr /dev/initctl /dev/pts /dev/mouse /dev/psaux # /dev/kmem /dev/mem /dev/shm /dev/port /dev/rtc # # Copy minimum /etc # ------------------ # ldconfig -f initrd/etc/ld.so.conf -C initrd/etc/ld.so.cache # /etc/ld.so.conf #etc/ld.so.cache - created by ldconfig # # # For init=/bin/bash # #etc/HOSTNAME /etc/DIR_COLORS /etc/inputrc #etc/profile # # display as local time # --------------------- /etc/localtime /etc/adjtime /usr/share/zoneinfo/localtime /sbin/hwclock # # /etc/nsswitch.conf /etc/random-seed # # # use the modified versions # /etc/passwd # /etc/shadow # /etc/group # # /etc/fstab # # # Make termcap-Linux a link /etc/termcap /etc/termcap-Linux # # # Copy minimum set of commands to load the rootfs into memory # ----------------------------------------------------------- # # hostname,whoami needed by chroot # /bin/mount /bin/umount # /bin/ash /bin/bash /bin/sh /bin/dd /bin/mkdir /bin/mknod /bin/gzip /bin/tar /bin/uname # # Other useful commands /bin/awk /bin/cat /bin/cut /bin/date /bin/df /bin/dircolors /bin/dmesg /bin/egrep /bin/grep /bin/gawk* /bin/hostname /bin/killall /bin/ls /bin/ln /bin/more /bin/ps /bin/rm /bin/sleep /bin/sync /bin/setterm /bin/stty # /bin/chmod /bin/chown /bin/chgrp /bin/touch # # # for sanity checking the kernel's rootfs /sbin/rdev # # for creating/formatting ramdisks and chroot'ing into new rootfs /sbin/losetup /sbin/pivot_root /sbin/init /sbin/telinit # /sbin/agetty /sbin/mount /sbin/umount # /sbin/mkswap /sbin/swapon /sbin/swapoff # # # For checking the file systems # ----------------------------- #sbin/mkfs.ext3 # # # ext2 is needed for RootFS ( tar zxvf rootfs.tgz ) #sbin/mke2fs # /sbin/fdisk /sbin/fsck /sbin/fsck.ext2 /sbin/fsck.ext3 /sbin/e2fsck # # jfs is needed for RootFS ( tar zxvf rootfs.tgz ) /sbin/mkfs.jfs /sbin/jfs_mkfs # #sbin/fsck.jfs #sbin/jfs_fsck # # # if you want to re-install lilo # /etc/lilo.hda.conf /etc/lilo.sda.conf /sbin/lilo # # # the kernel has everything built in for booting ( especially ramdisk and loop ) # loop is a module in my kernels /sbin/modprobe /sbin/insmod /sbin/lsmod /sbin/rmmod /sbin/insmod.old /sbin/lsmod.old /sbin/modprobe.old /sbin/rmmod.old # watch out for modinfo.old and insmod.static.old when using *mod*.old # /sbin/poweroff /sbin/halt /sbin/reboot /sbin/shutdown /sbin/sulogin /sbin/killall5 /sbin/pidof # # needs PCI database to see what the IDs mean #sbin/lspci # /usr/bin/whoami /usr/bin/chroot /usr/bin/id /usr/bin/passwd /usr/bin/pico /usr/bin/sort /usr/bin/wc # # /usr/sbin/gpm /usr/sbin/hdparm /usr/sbin/ntpdate #usr/sbin/ntpd # # # remove elvis,vi,tset ( too big ) #usr/bin/elvis # # want to be able to clear the screen /usr/bin/reset /usr/bin/clear # # for pico /usr/share/terminfo/l/linux # # # Which libraries are required # ---------------------------- # # mimimum required libs # # ldd /bin/gzip ; ldd /bin/mount ; ldd /usr/sbin/chroot ; ldd /sbin/modprobe # ld.so = loader lib for a.out # ld-linux.so = loader lib for ELF # /lib/ld* /lib/libc* /lib/libdl* # # for buffer overflow protection - not for initrd /lib/libsafe* /etc/ld.so.preload # # # ldd /bin/bash ; ldd /usr/bin/vi /lib/libtermcap* # # /lib/libutil # # ldd /bin/tar ( gzip) ; ldd /bin/ls ; ldd /bin/date /lib/librt* /lib/libpthread* # # ldd /sbin/mke2fs ; ldd /sbin/e2fsck ; ldd /sbin/jfs_mkfs /lib/libext2fs* /lib/libcom_err* /lib/libblkid* /lib/libuuid* /lib/libe2p* # # # ldd /bin/ps /lib/libproc* # # ldd /usr/bin/pico /lib/libncurses.* /lib/libgpm* # /lib/libm-* /lib/libm.* # # reset/clear /lib/libncursesw* # # # ldd /usr/bin/vi # cp -par /lib/libresolv* $InitRD/lib # # ldd /usr/bin/tset ( reset, clear for vi ) # cp -par /lib/libncursesw* $InitRD/lib # # # End of file