toram support

This commit is contained in:
Tomas M
2012-09-22 01:48:23 -05:00
parent e6026c54a2
commit 2c54c8282e
4 changed files with 32 additions and 2 deletions
+4
View File
@@ -69,6 +69,10 @@ copy_including_deps /$LMK/kernel/fs/fuse
copy_including_deps /$LMK/modules.*
depmod -b $INITRAMFS
# trim modules.order file. Perhaps we could remove it entirely
MODULEORDER="$(cd "$INITRAMFS/$LMK/"; find -name "*.ko" | sed -r "s:^./::g" | tr "\n" "|" | sed -r "s:[.]:.:g")"
cat $INITRAMFS/$LMK/modules.order | grep -E "$MODULEORDER"/foo/bar > $INITRAMFS/$LMK/_
mv $INITRAMFS/$LMK/_ $INITRAMFS/$LMK/modules.order
echo "root::0:0::/root:/bin/bash" >$INITRAMFS/etc/passwd
touch $INITRAMFS/etc/{m,fs}tab