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 #!/bin/bash
build() { build() {
MODULES="cdrom loop dm-snapshot" add_module "cdrom"
SCRIPT="archiso" add_module "loop"
add_module "dm-snapshot"
add_runscript
add_binary /usr/lib/udev/cdrom_id add_binary /usr/lib/udev/cdrom_id
add_binary blockdev add_binary blockdev
......
#!/bin/bash #!/bin/bash
build() { 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 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 fi
} }
......
#!/bin/bash #!/bin/bash
build() { build() {
SCRIPT="archiso_loop_mnt" add_runscript
} }
help() { help() {
......
#!/bin/bash #!/bin/bash
build() { build() {
MODULES="${MODULES} $(comm -2 -3 <(checked_modules "/drivers/net/" | sort) \ add_checked_modules -f "(irda|phy|wimax|wireless|ppp_|plip|pppoe)" "/drivers/net/"
<(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_runscript
add_binary /usr/lib/initcpio/ipconfig /bin/ipconfig add_binary /usr/lib/initcpio/ipconfig /bin/ipconfig
......
#!/bin/bash #!/bin/bash
build() { build() {
SCRIPT="archiso_pxe_http" add_runscript
add_binary curl add_binary curl
} }
......
#!/bin/bash #!/bin/bash
build() { build() {
MODULES="nbd" add_module "nbd"
SCRIPT="archiso_pxe_nbd"
add_runscript
add_binary nbd-client add_binary nbd-client
......
#!/bin/bash #!/bin/bash
build() { build() {
MODULES="nfs" add_module "nfs"
SCRIPT="archiso_pxe_nfs"
add_runscript
add_binary /usr/lib/initcpio/nfsmount /bin/nfsmount add_binary /usr/lib/initcpio/nfsmount /bin/nfsmount
} }
......
#!/bin/bash #!/bin/bash
build() { build() {
SCRIPT="archiso_shutdown" add_runscript
add_file /usr/lib/initcpio/archiso_shutdown /shutdown 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