嵌入式文件系统创建工具之---fakeroot
2016-01-06 16:33
357 查看
fakeroot 可以用来模拟 root 权限,以便建立特定权限与档案拥有者的压缩文件案(tar,
ar, .deb 等)。透过 LD_PRELOAD 的 dynamic loader 功能,用户不必实际拥有 root 权限。
生成系统文件时使用
echo "make squash image ..."
echo "${TOOLDIR}/makedevs -d device_table.txt ${CUDIR}/fs" > squash_input
echo "${TOOLDIR}/mksquashfs ${FS_DIR} ${2} -all-root -le -noappend" >> squash_input
echo "exit" >> squash_input
#chmod +x squash_input
#./squash_input
fakeroot<squash_input > /dev/null
rm squash_input
ar, .deb 等)。透过 LD_PRELOAD 的 dynamic loader 功能,用户不必实际拥有 root 权限。
生成系统文件时使用
echo "make squash image ..."
echo "${TOOLDIR}/makedevs -d device_table.txt ${CUDIR}/fs" > squash_input
echo "${TOOLDIR}/mksquashfs ${FS_DIR} ${2} -all-root -le -noappend" >> squash_input
echo "exit" >> squash_input
#chmod +x squash_input
#./squash_input
fakeroot<squash_input > /dev/null
rm squash_input
相关文章推荐
- android消息处理机制学习(一)-Handler,Message,MessageQueue,Looper简介
- Jdk1.7+eclipse搭建Java开发环境
- [转] easyui 获取数据表格中选中行的数据 Get selected row data from...
- Maven基础--POM
- selenium实现嵌套页面对象实例--查询功能(POM)
- 企业使用语音群呼因为以下优势
- java 插入排序
- Servlet监听器
- html表格
- 如何创建C# Closure ?
- 应届生的程序员之路
- 将音频流解码为pcm(with avformat)
- java.sql.SQLException: 无效的列索引
- bootstrap学习笔记--bootstrap排版类的使用
- css3的渐变效果
- 递归下降语义分析
- 做过的并查集集合
- java 冒泡排序
- spring mvc 源码要点1
- PostgreSQL学习手册(事物隔离)