# # RootFS.txt # ========== # - read by InitRD-RootFS.sh.txt ( was Make.RD.Loop.sh ) # # # # # list of files for creating a minimal rootfs.gz ( linux running in memory ) # # # # # Original Files # -------------- # http://Linux-Boot.net//Boot.Standalone/Scripts/RootFS.txt # # # Another Reference # ----------------- # http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Bootdisk-HOWTO.html#LISTINGS # # # ============================================================= # You will need to change the file names to match your distro # ============================================================= # # # 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-Mar-05 amo Added bootUSB in addition to bootCF with linux-2.4.29small # 26-Mar-05 amo Clean up for linux-2.4.29ow.p4 # 02-Apr-05 amo Fixed pty for ssh connections # 10-Aug-05 amo Renamed as RootFS.Slack-10.1.txt, changed 2.4.29-ow1 to 2.4.31-ow1, sendmail-8.13.1 sendmail-8.13.4 # 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, Added Wireless stuff # 01-Sep-05 amo Added /sbin/dhclient # 09-Sep-05 amo Added dialog for netconfig.bin, copy new wrapper netconfig, added dhcp-script # # # # ============== # List of Libs # ============== # ls -la /opt/Bootable/RootFS/rootfs-*/usr/lib/lib*.so | sort +8 # # # # Copying /root ( color console ) # ------------- #root/.alias #root/.bashrc #root/.dircolor # # # Copy the kernel modules as needed # --------------------------------- #lib/modules/2.4.27-ow1/modules.dep #lib/modules/2.4.27-ow1/kernel/drivers/sound #lib/modules/2.4.27-ow1/kernel/drivers/scsi #lib/modules/2.4.27-ow1/kernel/drivers/usb # # # Grab all the modules for rootfs #lib/modules/2.4.29-ow1/ #lib/modules/2.4.31-ow1/ # #lib/modules/2.4.31-ow1.i586/ #lib/modules/2.4.31-ow1.p4/ # # # Copy minimum /dev # ----------------- /dev/loop /dev/loop? /dev/ram /dev/ram? /dev/initrd # /dev/kmem /dev/mem /dev/shm /dev/port /dev/rtc # /dev/hda /dev/hda1 /dev/hda2 /dev/hda3 /dev/hda4 /dev/hda5 /dev/hda6 /dev/hda7 /dev/hda8 /dev/hdc /dev/hdc1 /dev/hdc2 /dev/hdc3 /dev/hdc4 /dev/hdc5 /dev/hdc6 /dev/hdc7 /dev/hdc8 # # for usb /dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 /dev/sda5 /dev/sda6 /dev/sda7 /dev/sda8 # # for cdrom /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 # # Required for X ( solves xf86OpenConsole: unable to open virtual console 7 ) /dev/tty7 # # # For SSH /dev/tty #dev/ttyp? /dev/ptmx # - mkdir /dev/pts also # - devpts in /etc/fstab # # /dev/null /dev/zero # /dev/fd /dev/stdin /dev/stdout /dev/stderr /dev/initctl /dev/pts /dev/urandom /dev/random # # # for mouse /dev/mouse /dev/psaux /dev/input/mice /dev/input/keyboard # # # for virtual Consoles # /dev/vcs0 /dev/vcs1 /dev/vcs2 /dev/vcs3 /dev/vcs4 /dev/vcs5 /dev/vcs6 /dev/vcs7 /dev/vcs8 # /dev/vcsa0 /dev/vcsa1 /dev/vcsa2 /dev/vcsa3 /dev/vcsa4 /dev/vcsa5 /dev/vcsa6 /dev/vcsa7 /dev/vcsa8 # # for kde, additional libs needed too for kmixctrl /dev/dsp /dev/dsp0 # # # Copy the Files for Booting # -------------------------- # boot files is NOT needed in the loop device # we're booting from the CF # #/boot/map - recreated by running lilo #/boot/boot.b #boot/config-2.4.27 # # RootFS needs vmlinuz to fix: after, pivot_root & chroot whcih gives "attempt to kill init" # #boot/vmlinuz-2.4.27 #boot/System.map-2.4.27 # #boot/vmlinuz-2.4.29ow.p4 #boot/System.map-2.4.29ow.p4 #boot/config-2.4.29ow.p4 # /boot/vmlinuz-2.4.31ow.p4 /boot/System.map-2.4.31ow.p4 /boot/config-2.4.31ow.p4 # #boot/vmlinuz-2.4.31ow.i586 #boot/System.map-2.4.31ow.i586 #boot/config-2.4.31ow.i586 # # # Copy minimum /etc # ------------------ # ldconfig -f initrd/etc/ld.so.conf -C initrd/etc/ld.so.cache # /etc/slackware-version # /etc/ld.so.conf #etc/ld.so.cache - created by ldconfig /etc/ioctl.save # /etc/passwd /etc/shadow /etc/group /etc/fstab # /etc/login.* /etc/gettydefs /etc/screenrc /etc/securetty /etc/motd /etc/issue # /etc/rc.d # /etc/inittab /etc/inputrc /etc/profile /etc/protocols /etc/services /etc/shells /etc/termcap /etc/termcap-Linux /etc/DIR_COLORS # # display as local time /etc/adjtime /etc/localtime /usr/share/zoneinfo/localtime # # For network config /etc/HOSTNAME /etc/exports /etc/ntp /etc/ntp.conf /etc/resolv.conf /etc/hosts /etc/host.conf /etc/hosts.allow /etc/hosts.deny /etc/nsswitch.conf /etc/random-seed # # For autofs /etc/auto.master /etc/auto.net /usr/lib/autofs # /etc/lilo.hd?.conf /etc/syslog.conf #etc/sysctl.conf # # /etc/fonts/fonts.conf # # # Copy minimum set of commands to load the rootfs into memory # ----------------------------------------------------------- # # hostname,whoami needed by chroot # /bin/ash /bin/mount /bin/umount # /bin/bash /bin/sh /bin/dd /bin/login /bin/mkdir /bin/rmdir /bin/gzip /bin/tar # # ls, df, cat for debugging # /bin/awk /bin/cat /bin/chmod /bin/chown /bin/chgrp /bin/cut /bin/cp /bin/date /bin/dircolors /bin/dmesg /bin/df /bin/du /bin/egrep /bin/false /bin/fgrep /bin/gawk* /bin/grep /bin/gunzip /bin/head /bin/hostname /bin/killall /bin/ls /bin/ln /bin/mknod /bin/more /bin/mv /bin/ps /bin/pwd /bin/rm /bin/sed /bin/setterm /bin/stty /bin/sleep /bin/su /bin/sync /bin/touch /bin/true /bin/uname /bin/which #bin/zcat # # for networking /bin/ipmask /bin/ping # # some scripts have it hardcoded /sbin/mount /sbin/umount # /sbin/mkswap /sbin/swapon /sbin/swapoff # # for creating/formatting/checking ramdisks /sbin/losetup # /sbin/fsck /sbin/fsck.ext2 /sbin/fsck.ext3 /sbin/mke2fs /sbin/e2fsck # #sbin/fsck.jfs #sbin/jfs_fsck # /sbin/mkfs.ext2 /sbin/mkfs.ext3 /sbin/mkfs.jfs /sbin/jfs_mkfs # # /sbin/mkreiserfs # /sbin/reiserfsck # /sbin/accton /sbin/agetty /sbin/fdisk /sbin/getty /sbin/halt /sbin/hwclock /sbin/init /sbin/killall5 /sbin/ldconfig /sbin/pidof /sbin/poweroff /sbin/reboot /sbin/shutdown /sbin/sulogin /sbin/swapon /sbin/swapoff /sbin/sysctl /sbin/telinit /sbin/udev /sbin/update # # # For modules # ----------- /sbin/depmod /sbin/insmod /sbin/lsmod /sbin/modprobe /sbin/rmmod /sbin/*mod*.old # # # For Networking # -------------- # /sbin/ifconfig /sbin/route # /sbin/dhclient /sbin/dhclient-script # # dirname and expr needed by netconfig /sbin/netconfig /sbin/netconfig.bin /bin/dialog /usr/bin/dirname /usr/bin/expr # # # For Firewalls # -------------- /usr/sbin/iptables /usr/lib/iptables #lib/modules/2.4.27-ow1/kernel/net/ipv4/netfilter #lib/modules/2.4.29-ow1/kernel/net/ipv4/netfilter #lib/modules/2.4.31-ow1/kernel/net/ipv4/netfilter #lib/modules/2.4.31-ow1.i586/kernel/net/ipv4/netfilter /lib/modules/2.4.31-ow1.p4/kernel/net/ipv4/netfilter # # /usr/sbin/automount /usr/sbin/klogd /usr/sbin/gpm /usr/sbin/hdparm /usr/sbin/inetd /usr/sbin/ntpdate /usr/sbin/ntpd /usr/sbin/syslogd # # /usr/bin/basename /usr/bin/chroot /usr/bin/crontab /usr/bin/diff /usr/bin/eject /usr/bin/elvis /usr/bin/env /usr/bin/id /usr/bin/find /usr/bin/fuser /usr/bin/head /usr/bin/last /usr/bin/ldd /usr/bin/less /usr/bin/lesspipe.sh /usr/bin/passwd /usr/bin/pico /usr/bin/sort /usr/bin/strace /usr/bin/tail /usr/bin/top /usr/bin/tr /usr/bin/traceroute /usr/bin/vi /usr/bin/whoami /usr/bin/w /usr/bin/wc /usr/bin/who /usr/bin/xargs # /usr/bin/reset /usr/bin/clear /usr/bin/tset # # for pico, vi(elvis) /usr/share/terminfo/l/linux /usr/share/terminfo/l/linux-m /usr/share/terminfo/l/linux-nic /usr/share/terminfo/v/vt100 #usr/share/terminfo/v/vt-100 # # for source code --> /usr/local/src --> /mnt/LOCAL.ram1 /usr/src # # # for cron # -------- # /etc/rc.d/rc.crond /usr/sbin/crond #var/spool/cron # # # For Sanity Checking # ------------------- /usr/bin/md5sum # # # for SSH # --------- # /dev/ptmx # mkdir /dev/pts # fstab:/dev/pts # /etc/ssh/moduli /etc/ssh/ssh_config /etc/ssh/sshd_config /usr/sbin/sshd /usr/bin/ssh-keygen /usr/bin/ssh /usr/bin/scp # # ldd /usr/sbin/sshd ( crypt* in both places ) /lib/libcrypt* /lib/libutil* /lib/libnsl* # # ldd /usr/sbin/sshd ( crypt* in both places ) /usr/lib/libcrypt* /usr/lib/libz* # # # # for NFS - fits into 20K but CF too small # =============== # - not needed as a nfsclient # - needed for nfs server # -------- /usr/sbin/rpcinfo /sbin/rpc.portmap #usr/sbin/rpc.lockd #usr/sbin/rpc.mountd #usr/sbin/rpc.nfsd #usr/sbin/rpc.rquotad #usr/sbin/rpc.statd # # # # #xx # For Mail #xx # =========== #xx # ldd /usr/bin/mail ; ldd /usr/sbin/sendmail #xx /usr/lib/libssl* # #xx # /lib/libdb-* #xx # libdb-3.1.so #xx # libdb-3.3.so --> needed by sendmail #xx # libdb-4.2.so #xx /lib/libdb-4* # #xx /etc/mail/access.db #xx /etc/mail/aliases.db #xx /etc/mail/local-host-names /etc/mail/sendmail.cw #xx /etc/mail/sendmail-8.13.4.rbl.copy.cf /etc/mail/sendmail.cf #xx /etc/mail/submit-8.13.4.cf /etc/mail/submit.cf #xx #etc/mail/sendmail-8.13.1.cf /etc/mail/sendmail.cf #xx #etc/mail/submit-8.13.1.cf /etc/mail/submit.cf #xx # #xx /usr/sbin/sendmail #xx /usr/bin/nail #xx /usr/bin/mail #xx /usr/bin/procmail #xx /usr/bin/elm #xx ##sr/bin/mutt - 538K #xx ##sr/bin/pine - 3.45M # # see /root/ramdisk.sh for directory permssions on # /var/spool/{mail,mqueue,clientmqueue} # # # # 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 /etc/ld.so.preload /lib/libsafe* # # ldd /bin/bash ; ldd /usr/bin/vi /lib/libtermcap* # # ldd /bin/tar ( gzip) ; ldd /bin/ls ; ldd /bin/date /lib/librt* /lib/libpthread* # # ldd /sbin/mke2fs ; ldd /sbin/e2fsck ; ldd /sbin/jfs_fsck /lib/libext2fs* /lib/libcom_err* /lib/libblkid* /lib/libuuid* /lib/libe2p* # # ldd /bin/more ; ldd /usr/bin/top ; ldd /usr/bin/pico ; ldd /bin/setterm # ldd /usr/bin/pico ; ldd /usr/bin/less /lib/libncurses* /lib/libgpm* # # ldd /usr/bin/sleep /lib/libm* # # ldd /sbin/sysctl ; ldd /usr/bin/top /lib/libproc* # # ldd /usr/bin/ping ; ldd /usr/bin/vi ; ldd /usr/bin/tset ( reset, clear for vi ) /lib/libresolv* /lib/libncursesw* # # for ping xxxxxx.com /lib/libnss_dns* # # libpam_misc # libpwdb # # /lib/libnss_compat* /lib/libnss_files* /usr/lib/libnss_compat* /usr/lib/libnss_files* # # # For minicom # =========== # /etc/minicom.users # /etc/minirc.dfl # /usr/bin/minicom /dev/ttyS0 /dev/ttyS1 # # # For Wireless + madwifi # ---------------------- # /lib/modules/*/net/madwifi* # # wl.* from Patches.RootFS/root/Wireless/wl.* # #usr/local/lib/libiw.so* # #usr/local/sbin/iwconfig #usr/local/sbin/iwevent #usr/local/sbin/iwgetid #usr/local/sbin/iwlist #usr/local/sbin/iwpriv #usr/local/sbin/iwspy # #sbin/lspci # # # # ==================================================== # # Additional /usr/lib for X11R6 and KDE defined in: # # http://Linux-Boot.net/Bootable/Patches.X11 # # ==================================================== # # # For X11 -- need to be separated from kde's /usr/lib requirements # ------- #etc/X11 - define in Patches.X11 /usr/lib/libgcc_s* /usr/lib/libexpat.* /usr/lib/libutempter.* /usr/lib/libstdc++* /usr/lib/libfreetype* # /usr/bin/mcookie /var/X11R6/lib # # for languages /usr/bin/locale # # # --------------------------------------------- # For KDE ( install with Patch11/kde.*.sh ) # ------- #usr/lib/qt-3.3.3/lib/libqt-mt.* ( 8MB in kde.*.sh ) #usr/lib/libart_lgpl_2.* # # kmixctrl #xx # /etc/rc.d/rc.sound.EPIA /usr/bin/play /usr/bin/sox # #xx /usr/lib/libogg* in kde.*.sh #xx /usr/lib/libvorbis* #xx /usr/lib/libmad* # #xx #usr/share/sounds/phone.wav -- 450K #xx /usr/share/sounds/gaim/arrive.wav /usr/share/alsa # # --------------------------------------------- # TimeZone # -------- # /usr/share/zoneinfo # # Country Code # ------------ # 5K /usr/share/i18n/locales/en_US # 200K /usr/share/i18n/locales/ja_JP # # --------------------------------------------- # # /usr/lib/gconv - font stuff for locale ?? # # # libm and libstdc are needed by telnet-client # # Need to Add: # ------------- # # Try moving the /usr/lib/* back to X11* # # # End of file