device hotplug

This commit is contained in:
Tomas M
2012-09-06 13:29:59 -05:00
parent 0421e9e1ab
commit 528d3ea214
4 changed files with 19 additions and 22 deletions
+6
View File
@@ -24,6 +24,12 @@ DATA="$(find_data $LIVEKITNAME)"
# add data to union
union_append_bundles "$DATA"
mkdir /m
mount /dev/sr0 /m
modprobe squashfs
mkdir /s
mount -o loop -t squashfs /m/mylinux/core.sb /s
# possibly switch root
# testing message
+5 -17
View File
@@ -52,32 +52,20 @@ done
mknod $INITRAMFS/dev/console c 5 1
mknod $INITRAMFS/dev/null c 1 3
mknod $INITRAMFS/dev/ram0 b 1 0
#mknod $INITRAMFS/dev/systty
mknod $INITRAMFS/dev/tty1 c 4 1
mknod $INITRAMFS/dev/tty2 c 4 2
mknod $INITRAMFS/dev/tty3 c 4 3
mknod $INITRAMFS/dev/tty4 c 4 4
#for i in $(seq 0 255); do
# mknod $INITRAMFS/dev/loop$i b 7 $i
#done
#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/ram /dev/systty /dev/fuse
#copy_including_deps /dev/tty /dev/tty?
#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
copy_including_deps /usr/bin/strace
# TODO: add all comon filesystems which are NOT compiled in kernel already
copy_including_deps /$LMK/kernel/fs/squashfs
copy_including_deps /$LMK/kernel/drivers/staging/zram
copy_including_deps /$LMK/kernel/drivers/block/loop.*
copy_including_deps /$LMK/modules.*
depmod -b $INITRAMFS