You are not logged in.
Pages: 1
I've been looking though the archiso scripts (from the archiso-git package to create a livecd) trying to understand how they work. In particular I'm interested in /lib/initcpio/install/archiso.
install ()
{
MODULES="cdrom ide-cd_mod ide-core ide-generic aufs squashfs isofs loop $(all_modules '/kernel/fs' | grep -v "nls") "
MODULES="${MODULES} $(checked_modules "/usb/host" | grep -ve "_cs" -e "sl811-hcd" -e "isp116x-hcd")"
MODULES=$(echo ${MODULES}) #trim whitespace
if [ "x${MODULES}" != "x" ]; then
MODULES="${MODULES} usb_storage sd_mod sr_mod"
fi
MODULES="${MODULES} virtio_pci virtio_blk"
BINARIES=""
FILES=""
add_dir /rw_branch
add_dir /ro_branch
add_dir /copytoram
add_dir /bootmnt
add_device /lib/udev/devices/loop0 b 7 0
add_binary /lib/udev/cdrom_id
add_file /lib/udev/rules.d/60-cdrom_id.rules
SCRIPT="archiso"
}where is the source code to the functions, add_dir, add_device etc located?
Many thanks in advance
Offline
I think they are in /lib/initcpio/functions.
Tip:
$ pacman -Ql archiso-git # to see what files are installed by archiso-git
[...] # files are mainly located in /usr/share/archiso and /lib/initcpio
$ cd /lib/inicpio
$ grep -rn add_dir *Last edited by s1gma (2011-04-04 11:27:39)
Offline
Pages: 1