You are not logged in.

#1 2011-03-25 18:56:07

systemshq
Member
Registered: 2011-01-06
Posts: 37

Understanding archiso

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

#2 2011-04-04 11:24:20

s1gma
Member
Registered: 2009-09-29
Posts: 45

Re: Understanding archiso

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

Board footer

Powered by FluxBB