|
|
我以前就是用这种方法安装实际系统,爽呆了
http://210.82.92.205/files/lfs-6.1+.iso
由于包含了两个系统,所以比较大,300M
包含:
1.
/root/lfs-6.1.bz2
nalfs 安装的lfs 6.1 , 基本无修无摩,原汁原味
2.
/root/lfs-6.1+.bz2
执行了BLFS 6.0 chapter 3. After LFS Configuration Issues 中的部分调整
增加了
openssl
cracklib
linux-pam
shadow
iptables
openssh
dhcp
全部使用nalfs blfs 6.0 profile 安装,原汁原味
3.
安装脚本 /root/install
- #echo -e "0 200\n201 500" | sfdisk /dev/hda
- mkswap /dev/hda1 &&
- swapon /dev/hda1 &&
- mkfs -t ext3 /dev/hda2 &&
- mount /dev/hda2 /mnt/lfs &&
- cd /mnt/lfs &&
- tar jxpf /root/lfs-6.1+.bz2 &&
- cp /dev/hd* /mnt/lfs/dev/ -R &&
- cd / &&
- chroot /mnt/lfs \
- bash -c "echo -e 'root (hd0,1)\nsetup (hd0)\nquit' | /usr/sbin/grub" &&
- umount /mnt/lfs &&
- echo "install finished"
复制代码
以上脚本是做什么的就不用我说了吧
livecd提供了fdisk,mkfs等有限的工具,够用了
------------------------------------------
两套系统root password 均为 r00tme
------------------------------------------
也想制作这样一张livecd 么?
过程是比较繁琐的,不过基于这张cd,你可以使用以下傻瓜做法(当然,要有cdrtools):
另外,那个iso太大了,这个是不带lfs系统包的iso,只有3M,可以用来制作livecd:
http://210.82.92.205/files/livecd.iso
- mkdir livecd
- cp /mnt/cdrom/* livecd/ -R
- #复制你的系统包、做你想做的任何调整,只是不要动boot/ 里的东西就行了,尤其是initrd.img
- mkisofs \
- -R \
- -b boot/grub/stage2_eltorito \
- -no-emul-boot \
- -boot-load-size 4 \
- -boot-info-table \
- -o lfs-livecd.iso \
- livecd
复制代码
ok, 你的livecd新鲜出炉了 |
|