|
|
本帖最后由 mygamexxx 于 2013-4-29 14:49 编辑
为什么使用整合软件的脚本生成的rootfs.gz只有32M,无法启动成功,是否与电脑内存有关,我的笔记本内存512M脚本无法运行成功,在1G内存的台式机上运行成功,但生成的只有32M。
#!/bin/sh
tazpkg recharge
ISO_URL="http://linux-pe.googlecode.com/files/slitaz4.0cn-3.8.5-base-20130427.iso"
ISO=$(basename $ISO_URL)
ISO_PATH="/home/slitaz/4.0/distro"
tazlito clean-distro
mkdir -p $ISO_PATH
cd $ISO_PATH
busybox wget -P .. $ISO_URL
tazlito extract-distro ../$ISO
cd rootfs
echo "增加poedit"
tazpkg get-install poedit
echo "增加ghost工具"
wget http://linux-pe.googlecode.com/svn/trunk/ghost.tazpkg
tazpkg install ghost.tazpkg --root=$(pwd) --forced
rm ./ghost.tazpkg
echo "如果你像我那么贱,好吧,再加上一个无线破解"
wget http://linux-pe.googlecode.com/svn/trunk/minidwep.tazpkg
tazpkg install minidwep.tazpkg --root=$(pwd) --forced
rm ./minidwep.tazpkg
echo "取消首次运行输入法弹出窗口"
wget http://linux-pe.googlecode.com/svn/trunk/config.desc
mv ./config.desc ./usr/share/fcitx/configdesc
echo "默认输入法为五笔"
cp -a /usr/share/fcitx/configdesc/profile.desc ./usr/share/fcitx/configdesc
tazlito gen-initiso
echo "生成的ISO文件在/home/slitaz/4.0/distro/"
过程中有出错的信息
packages.list 100% |*********************************************************************************************| 61644 00:00:00 ETA
Connecting to download.tuxfamily.org (88.191.250.171:80)
wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable
Connecting to download.tuxfamily.org (88.191.250.18:80)
files.list.lzma 100% |*********************************************************************************************| 1814k 00:00:00 ETA
Connecting to download.tuxfamily.org (88.191.250.171:80)
wget: server returned error: HTTP/1.1 416 Requested Range Not Satisfiable
================================================================================
Last packages.list is ready to use. Note that next time you recharge the
list, a list of differences will be displayed to show new and upgradeable
packages.
|
|