changes
This commit is contained in:
@@ -35,19 +35,20 @@ copy_including_deps()
|
||||
rm -Rf $INITRAMFS
|
||||
mkdir -p $INITRAMFS/{bin,dev,etc,lib,lib64,mnt,proc,root,run,sbin,sys,tmp,usr,var/log}
|
||||
|
||||
modprobe zram
|
||||
copy_including_deps /dev/zram0
|
||||
#tar -C $INITRAMFS -xf initrd-tree.tar.gz
|
||||
#rm $INITRAMFS/* 2>/dev/null # only files
|
||||
#copy_including_deps /lib64/libc.so.*
|
||||
#copy_including_deps /lib64/libm.so.*
|
||||
|
||||
copy_including_deps /dev/console /dev/null /dev/fb0 /dev/zero
|
||||
copy_including_deps /dev/ram /dev/systty /dev/fuse
|
||||
copy_including_deps /dev/tty /dev/tty?
|
||||
copy_including_deps /bin/bash /bin/mount /bin/mkdir
|
||||
copy_including_deps /bin/bash /bin/mount /bin/umount /bin/mkdir
|
||||
copy_including_deps /bin/ln /bin/cat /bin/ls /bin/free
|
||||
copy_including_deps /sbin/blkid /sbin/swapon /sbin/mkswap /sbin/modprobe
|
||||
copy_including_deps /bin/grep /bin/egrep /bin/cut /bin/tr
|
||||
copy_including_deps /sbin/lsmod
|
||||
copy_including_deps /sbin/fdisk
|
||||
|
||||
copy_including_deps /bin/uname
|
||||
copy_including_deps /usr/bin/vi
|
||||
copy_including_deps /usr/bin/strace
|
||||
|
||||
@@ -71,4 +72,4 @@ find . -print | cpio -o -H newc 2>/dev/null | gzip -f --best >$INITRAMFS.img
|
||||
echo $INITRAMFS.img
|
||||
|
||||
cd ..
|
||||
#rm -Rf $INITRAMFS
|
||||
rm -Rf $INITRAMFS
|
||||
|
||||
Reference in New Issue
Block a user