[PLDWWW] page added: packages:linux-live

"Elan Ruusamäe (glen)" glen at pld-linux.org
Wed Apr 10 14:45:53 CEST 2013


Page name changed from packages:linuxlive to packages:linux-live

--- ---
+++ https://www.pld-linux.org/packages/linux-live


====== Creating a PLD Live CD ======


===== Creating the CD root =====
First, start by creating a directory for the CD. Issue the following command adjusting the path to suit your needs: 



<file>mkdir -p /path/to/root
</file>
Next select the packages to install. The following list should be a nice start: 



<file># cat base.lst
FHS
acl
basesystem
bash
blockdev
dhcpcd
eject
fix-info-dir
fsck
grub
iproute2
iputils-ping
kbd
kernel
kernel-fs-aufs
less
linux-live
lvm2
mingetty
mount
openssh-clients
openssh-server
pciutils
sed
terminfo
traceroute
udev
usbutils
util-linux-ng
vim
wget
wireless-tools
</file>
To install the root issue: 



<file># poldek --pset=base.lst --uniq --install-dist=/path/to/root
</file>
To upgrade/install/remove packages at any time just use the ''-r'' parameter: 



<file># poldek -r /path/to/root -u anypackage
</file>


===== Preparing the ISO image =====
Start by installing the [[http://www.linux-live.org/|linux-live]] package (''linux-live-build'' package in PLD Linux) on your host system. 

Remember to set password for ''root'' or alter ''/etc/inittab'' to execute shell instantly after boot or you'll not be able to login. To set the password, just mount ''/dev'' and ''chroot'' to the installation root: 



<file># mount /dev /path/to/root/dev -o bind
# chroot /path/to/root
</file>
Now you can put any necessary changes in place. 

To build your CD use: 



<file># export ROOT=/path/to/root
# export ISO_IMAGE=/path/to/result.iso
# linux-live-build
</file>


===== Booting from USB =====
First, create a FAT16 or FAT32 on the device. 

Then extract the ISO contents onto the USB device you are going to use. 

Next, unmount the device and run (this requires having the ''syslinux'' package installed): 



<file># syslinux -d boot/syslinux /dev/sdXY
</file>
Where ''sdXY'' is the partition you created earlier. 



Diff URL:
  ---
-- 
This mail was generated by DokuWiki at
https://www.pld-linux.org/


More information about the pld-cvs-commit mailing list