QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1715|回复: 2

Fanx 1.1 ./runme.sh出错,如图

[复制链接]
发表于 2005-11-8 14:42:12 | 显示全部楼层 |阅读模式
如图,谢谢帮助!!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2005-11-9 11:23:16 | 显示全部楼层
谢谢easyhappy!

我是在http://www.linux-live.org/

下的linux-kernel-2.6.13.2-i486-1.tgz和linux-live-5.1.8.tar.gz
cd /
tar -zxvf linux-kernel-2.6.13.2-i486-1.tgz
tar -zxvf linux-live-5.1.8.tar.gz -C /tmp

另外

我cd /lib/modules/2.6.13.2/kernel/

find . | more

发现所有的模块都是.ko结尾,并没有图片中的.ko.gz 令人废解

runme.sh如下


#!/bin/bash
#
# run this script to create a LiveCD in /tmp/livecd.iso
# Your kernel image has to be in $ROOT/boot/vmlinuz or $ROOT/vmlinuz
#

export PATH=.:./tools:../tools:/usr/sbin:/usr/bin:/sbin:/bin:/

CHANGEDIR="`dirname \`readlink -f $0\``"
echo "Changing current directory to $CHANGEDIR"
cd $CHANGEDIR

. ./config || exit 1
./install $ROOT

. liblinuxlive || exit 1

VMLINUZ=$ROOT/boot/vmlinuz
if [ -L "$VMLINUZ" ]; then VMLINUZ=`readlink -f $VMLINUZ`; fi
if [ "`ls $VMLINUZ 2>>$DEBUG`" = "" ]; then echo "cannot find $VMLINUZ"; exit 1; fi

header "Creating LiveCD from your Linux"
echo "some debug information can be found in $DEBUG"

mkdir -p $CDDATA/base
mkdir -p $CDDATA/modules
mkdir -p $CDDATA/optional
mkdir -p $CDDATA/rootcopy

echo "copying cd-root to $CDDATA, using kernel from $VMLINUZ"
echo "Using kernel modules from /lib/modules/$KERNEL"
cp -R cd-root/* $CDDATA
cp -R tools $CDDATA
cp -R !info/* $CDDATA
cp $VMLINUZ $CDDATA/boot/vmlinuz

echo "creating initrd image..."
cd initrd
./initrd_create
if [ "$?" -ne 0 ]; then exit; fi
cd ..

cp initrd/$INITRDIMG.gz $CDDATA/boot/initrd.gz
rm initrd/$INITRDIMG.gz

echo "creating compressed images..."

for dir in bin etc home lib opt root usr sbin var; do
if [ -d $ROOT/$dir ]; then
echo "base/$dir.mo"
create_module $ROOT/$dir $CDDATA/base/$dir.mo -keep-as-directory
if [ $? -ne 0 ]; then exit; fi
fi
done

echo "creating LiveCD ISO image..."
cd $CDDATA
./make_iso.sh /tmp/livecd.iso

cd /tmp
header "Your ISO is created in /tmp/livecd.iso"


奇怪,根本找不到图中的/tmp/initrd_tree_2854/目录
回复

使用道具 举报

发表于 2005-11-12 10:46:24 | 显示全部楼层
这个目录是临时的,一旦命令完成或者中断就回自动删除的
怎么说呢,建议你在真实的机器上测试一下,使用虚拟机有不可预料的错误。
主要是initrd文件的制作出错了,检测initrd create脚本吧
我现在是什么环境也没有,上网也是在网吧的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-18 18:11 , Processed in 0.058395 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表