mirror of
https://github.com/superconvert/smart-os.git
synced 2024-11-22 10:10:02 +08:00
add xfce into image
This commit is contained in:
parent
e8f34bfa38
commit
cf7f3da1bf
@ -159,11 +159,6 @@ fi
|
|||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# 编译 xorg [ no same time with xfce ]
|
|
||||||
if [ "${with_xorg}" = true ]; then
|
|
||||||
./mk_xorg.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 编译 xfce [ no same time with xorg ]
|
# 编译 xfce [ no same time with xorg ]
|
||||||
if [ "${with_xfce}" = true ]; then
|
if [ "${with_xfce}" = true ]; then
|
||||||
./mk_xfce.sh
|
./mk_xfce.sh
|
||||||
|
@ -173,6 +173,12 @@ if [ "${with_gcc}" = true ]; then
|
|||||||
fi
|
fi
|
||||||
rm -rf ${diskfs}/init ${diskfs}/lost+found
|
rm -rf ${diskfs}/init ${diskfs}/lost+found
|
||||||
|
|
||||||
|
# 带有 xfce 编译器
|
||||||
|
if [ "${with_xfce}" = true ]; then
|
||||||
|
echo "${RED}build xfce desktop${NC}"
|
||||||
|
cp ${xfce_install}/* ${diskfs} -r -n
|
||||||
|
fi
|
||||||
|
|
||||||
# 测试用户登陆模式: root/123456
|
# 测试用户登陆模式: root/123456
|
||||||
if [ "${with_login}" = true ]; then
|
if [ "${with_login}" = true ]; then
|
||||||
echo "${RED} with-login --- it's an exciting time ${NC}"
|
echo "${RED} with-login --- it's an exciting time ${NC}"
|
||||||
@ -235,6 +241,21 @@ route add default gw 192.168.100.1
|
|||||||
# exec 执行 /etc/init.d/rc.local 脚本
|
# exec 执行 /etc/init.d/rc.local 脚本
|
||||||
EOF
|
EOF
|
||||||
chmod +x ${diskfs}/etc/init.d/rcS
|
chmod +x ${diskfs}/etc/init.d/rcS
|
||||||
|
|
||||||
|
|
||||||
|
# 登陆 login shell ,非 non-login shell
|
||||||
|
if [ "${with_login}" = true ]; then
|
||||||
|
cat - > ${diskfs}/etc/profile << EOF
|
||||||
|
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
export LD_LIBRARY_PATH=/usr/lib:/usr/lib64:/usr/local/lib:/usr/lib/x86_64-linux-gnu
|
||||||
|
EOF
|
||||||
|
else
|
||||||
|
cat - > ${diskfs}/etc/bash.bashrc << EOF
|
||||||
|
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
export LD_LIBRARY_PATH=/usr/lib:/usr/lib64:/usr/local/lib:/usr/lib/x86_64-linux-gnu
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
echo "${GREEN}+++ build diskfs ok +++${NC}"
|
echo "${GREEN}+++ build diskfs ok +++${NC}"
|
||||||
|
|
||||||
# 卸载映射
|
# 卸载映射
|
||||||
|
@ -21,9 +21,6 @@ core_num=`nproc`
|
|||||||
# 是否开启 gcc
|
# 是否开启 gcc
|
||||||
with_gcc=true
|
with_gcc=true
|
||||||
|
|
||||||
# 是否开启 xorg
|
|
||||||
with_xorg=false
|
|
||||||
|
|
||||||
# 是否开启 xfce
|
# 是否开启 xfce
|
||||||
with_xfce=false
|
with_xfce=false
|
||||||
|
|
||||||
|
@ -42,3 +42,7 @@ strip_dir ${gcc_install}
|
|||||||
#rm -rf work/binutils_install/usr/share
|
#rm -rf work/binutils_install/usr/share
|
||||||
strip_dir ${binutils_install}
|
strip_dir ${binutils_install}
|
||||||
|
|
||||||
|
# strip xfce
|
||||||
|
if [ "${with_xfce}" = true ]; then
|
||||||
|
strip_dir ${xfce_install}
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user