Commit 36e8d632 authored by Gerardo Exequiel Pozzi's avatar Gerardo Exequiel Pozzi
Browse files

[archiso] use new mkinitcpio API in hooks



Needs mkinitcpio >= 0.9.0
Signed-off-by: default avatarGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
parent c1ecc9b6
#!/bin/bash
build() {
MODULES="cdrom loop dm-snapshot"
SCRIPT="archiso"
add_module "cdrom"
add_module "loop"
add_module "dm-snapshot"
add_runscript
add_binary /usr/lib/udev/cdrom_id
add_binary blockdev
......
#!/bin/bash
build() {
MODULES="radeon nouveau i915 via-agp sis-agp intel-agp"
add_module "radeon"
add_module "nouveau"
add_module "i915"
add_module "via-agp"
add_module "sis-agp"
add_module "intel-agp"
if [[ $(uname -m) == i686 ]]; then
MODULES+=" amd64-agp ati-agp sworks-agp ali-agp amd-k7-agp nvidia-agp efficeon-agp"
add_module "amd64-agp"
add_module "ati-agp"
add_module "sworks-agp"
add_module "ali-agp"
add_module "amd-k7-agp"
add_module "nvidia-agp"
add_module "efficeon-agp"
fi
}
......
#!/bin/bash
build() {
SCRIPT="archiso_loop_mnt"
add_runscript
}
help() {
......
#!/bin/bash
build() {
MODULES="${MODULES} $(comm -2 -3 <(checked_modules "/drivers/net/" | sort) \
<(find $MODULEDIR/kernel/drivers/net/{irda,phy,wimax,wireless} \
-name '*.ko*' \
-exec bash -c 'printf "%s\n" "${@%%.ko*}" | sed "s@.*/@@;s@-@_@" | sort' _ {} +) \
| grep -v -e 'ppp_' -e 'plip' -e 'pppoe')"
SCRIPT="archiso_pxe_common"
add_checked_modules -f "(irda|phy|wimax|wireless|ppp_|plip|pppoe)" "/drivers/net/"
add_runscript
add_binary /usr/lib/initcpio/ipconfig /bin/ipconfig
......
#!/bin/bash
build() {
SCRIPT="archiso_pxe_http"
add_runscript
add_binary curl
}
......
#!/bin/bash
build() {
MODULES="nbd"
SCRIPT="archiso_pxe_nbd"
add_module "nbd"
add_runscript
add_binary nbd-client
......
#!/bin/bash
build() {
MODULES="nfs"
SCRIPT="archiso_pxe_nfs"
add_module "nfs"
add_runscript
add_binary /usr/lib/initcpio/nfsmount /bin/nfsmount
}
......
#!/bin/bash
build() {
SCRIPT="archiso_shutdown"
add_runscript
add_file /usr/lib/initcpio/archiso_shutdown /shutdown
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment