如何定制支持用户自定义boot参数的基于debian os的live cd

本文档详细介绍了如何在基于debian的操作系统中定制一个支持用户自定义boot参数的live cd。通过修改isolinux.cfg文件,并编写live-run脚本,实现了在启动过程中读取并执行boot参数中的特定指令,如sleep或mount等。
摘要由CSDN通过智能技术生成
Step 1 – Installing the necessary software
apt-get install xorriso live-build syslinux squashfs-tools
Step 2 – Create a basic filesystem
mkdir ~/livework && cd ~/livework
debootstrap --arch=amd64 wheezy chroot http://ftp.debian.org/debian/
or debootstrap --arch=amd64 jessie chroot http://ftp.cn.debian.org/debian/
Step 3 – Chroot
cd ~/livework && chroot chroot
mount none -t proc /proc
mount none -t sysfs /sys
mount none -t devpts /dev/pts
export HOME=/root
export LC_ALL=C
export PS1="\e[01;31m(live):\W \$ \e[00m"
apt-get install dialog dbus
dbus-uuidgen > /var/lib/dbus/machine-id
apt-get install linux-image-amd64
apt-get install live-boot parted efibootmgr ssh expect ctorrent dosfstools
modify hostname and autologin(/etc/inittab) /etc/rc.local and
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值