Install 32 lib pkgs in finish_install step

modified:   operation/configure_fstab.sh
	new file:   operation/finish_install/66install_lib_32.sh
	new file:   operation/finish_install/exec_install_lib_32.sh
This commit is contained in:
Peng Zhihui
2014-03-19 11:25:43 +08:00
parent edd0de8e28
commit 78e5cf7f83
3 changed files with 54 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ configure_fstab ()
# other device set 0.
case $fs_type in
ext2|ext3|ext4|reiserfs)
[ -z "$fs_mntops" ] && fs_mntops="acl,data=writeback"
[ -z "$fs_mntops" ] && fs_mntops="acl"
;;
swap)
[ -z "$fs_mntops" ] && fs_mntops="defaults"

View File

@@ -0,0 +1,33 @@
#!/bin/bash -
#===============================================================================
#
# FILE: install_32lib.sh
#
# USAGE: ./install_32lib.sh
#
# DESCRIPTION: install lib 32 pkgs
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Peng Zhihui (), zhihuipeng@linx-info.com
# COMPANY: linx-info
# COPYRIGHT: Copyright 2001-2014 Linx Technology Co.,Ltd.
# CREATED: 2014年03月18日 16时17分49秒 CST
# REVISION: ---
#===============================================================================
#set -o nounset # Treat unset variables as an error
source ./functions
mkdir -p $TARGET/pkg_lib_i686
cp /Rocky/packages/*i686_lib#* $TARGET/pkg_lib_i686
cp /usr/lib/new_install/operation/finish_install/exec_install_lib_32.sh $TARGET/opt/
chmod +x $TARGET/opt/exec_install_lib_32.sh
chroot $TARGET /opt/exec_install_lib_32.sh >>$LOG_FILE 2>&1 && rm -rf $TARGET/opt/exec_install_lib_32.sh $TARGET/pkg_lib_i686

View File

@@ -0,0 +1,20 @@
#!/bin/bash
# install lib 32 pkgs scripts
#
lib_32_pkg_dir="/pkg_lib_i686"
for pkg in $(ls ${lib_32_pkg_dir})
do
pkgname=$(echo $pkg |cut -d'#' -f1)
if [ $pkgname = 'pango_i686_lib' -o $pkgname = 'gtk2_i686_lib' ];then
continue
fi
pkgadd -f ${lib_32_pkg_dir}/$pkg
done
pkgadd -f ${lib_32_pkg_dir}/pango_i686_lib#*
pkgadd -f ${lib_32_pkg_dir}/gtk2_i686_lib#*
echo -e "Install 32-lib successfully !"