- 论坛徽章:
- 0
|
做嵌入式根文件系统时,有linuxrc如下:
#!/bin/sh
echo "mount /etc as ramfs"
/bin/mount -n -t ramfs ramfs /etc
这里的ramfs是从哪儿来,做的根目录没有这个,挂这个的目的是干吗
/bin/cp -a /mnt/etc/* /etc
echo "re-create the /etc/mtab entries"
# re-create the /etc/mtab entries
/bin/mount -f -t cramfs -o remount,ro /dev/bon/2 /
/bin/mount -f -t ramfs ramfs /etc
exec /sbin/init 这里是映象的还是根目录下的?
-----------------------------------------------------------------------------------
内核运行时是不是会自己生成一个根文件系统,通过linux command line找到*.cramfs,ram,romfs等
映象文件,再挂到内核生成的根文件解构下?
总是挂不上去,只能发现ram映象及其filetype |
|