index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2011-11-28 12:28:03 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2011-11-28 12:28:03 -0300 |
commit | d621c1e4f5702614f81ec38ce0181682d126e403 (patch) | |
tree | 27bc34c48547a95e43ffcf63974cbb23f2cc70ca /archiso/install | |
parent | 707bf9be6ea2f8060a87b98fd0fdc0cfad6558fe (diff) |
-rw-r--r-- | archiso/install/archiso_pxe_common | 24 | ||||
-rw-r--r-- | archiso/install/archiso_pxe_nbd | 9 |
diff --git a/archiso/install/archiso_pxe_common b/archiso/install/archiso_pxe_common new file mode 100644 index 0000000..ebf908e --- /dev/null +++ b/archiso/install/archiso_pxe_common @@ -0,0 +1,24 @@ +# vim: set ft=sh: + +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')" + BINARIES="" + FILES="" + SCRIPT="archiso_pxe_common" + + add_dir /tmp + + add_binary "/lib/initcpio/ipconfig" "/bin/ipconfig" +} + +help () +{ +cat<<HELPEOF + This hook loads the necessary modules for boot via PXE. +HELPEOF +} diff --git a/archiso/install/archiso_pxe_nbd b/archiso/install/archiso_pxe_nbd index c26648c..4227623 100644 --- a/archiso/install/archiso_pxe_nbd +++ b/archiso/install/archiso_pxe_nbd @@ -3,20 +3,11 @@ build () { MODULES="nbd" - 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')" BINARIES="" FILES="" SCRIPT="archiso_pxe_nbd" - add_dir /tmp - add_binary "/usr/sbin/nbd-client" "/bin/nbd-client" - add_binary "/lib/initcpio/ipconfig" "/bin/ipconfig" - add_file "/lib/initcpio/archiso_pxe_nbd" "/archiso_pxe_nbd" } |