diff options
author | James Meyer <james.meyer@operamail.com> | 2014-10-13 17:03:13 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2014-10-13 17:03:13 (GMT) |
commit | 2e7abbab92370a4a99ad68e460c476d02296e665 (patch) | |
tree | 1d6273195dd2c4f2e22d71d26a486cbfaa77052c /build_tools/archiso-19/archiso/initcpio/install | |
parent | 8bef8020a022c52a8d1d4bb373b5c8cdc256284f (diff) | |
download | linhes_dev-2e7abbab92370a4a99ad68e460c476d02296e665.zip |
archiso-19 + configs for linhes iso.
This provides archiso-19 but doesn't install it inside the dev env.
Diffstat (limited to 'build_tools/archiso-19/archiso/initcpio/install')
8 files changed, 156 insertions, 0 deletions
diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso b/build_tools/archiso-19/archiso/initcpio/install/archiso new file mode 100644 index 0000000..8893667 --- /dev/null +++ b/build_tools/archiso-19/archiso/initcpio/install/archiso @@ -0,0 +1,22 @@ +#!/bin/bash + +build() { + add_module "cdrom" + add_module "loop" + add_module "dm-snapshot" + + add_runscript + + add_binary /usr/lib/udev/cdrom_id + add_binary blockdev + add_binary dmsetup + add_binary losetup + add_binary mountpoint + + add_file /usr/lib/udev/rules.d/60-cdrom_id.rules + add_file /usr/lib/udev/rules.d/10-dm.rules + add_file /usr/lib/udev/rules.d/95-dm-notify.rules + add_file /usr/lib/initcpio/udev/11-dm-initramfs.rules /usr/lib/udev/rules.d/11-dm-initramfs.rules +} + +# vim: set ft=sh ts=4 sw=4 et: diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_kms b/build_tools/archiso-19/archiso/initcpio/install/archiso_kms new file mode 100644 index 0000000..3ff31f3 --- /dev/null +++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_kms @@ -0,0 +1,26 @@ +#!/bin/bash + +build() { + 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 + 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 +} + +help() { + cat << HELPEOF +Adds all common KMS drivers to the initramfs image. +HELPEOF +} diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_loop_mnt b/build_tools/archiso-19/archiso/initcpio/install/archiso_loop_mnt new file mode 100644 index 0000000..59f1d94 --- /dev/null +++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_loop_mnt @@ -0,0 +1,13 @@ +#!/bin/bash + +build() { + add_runscript +} + +help() { +cat<<HELPEOF + This hook loads the necessary modules for boot via loop device. +HELPEOF +} + +# vim: set ft=sh ts=4 sw=4 et: diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_common b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_common new file mode 100644 index 0000000..eec9a7e --- /dev/null +++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_common @@ -0,0 +1,26 @@ +#!/bin/bash + +build() { + add_checked_modules -f "(irda|phy|wimax|wireless|ppp_|plip|pppoe)" "/drivers/net/" + + add_runscript + + add_binary /usr/lib/initcpio/ipconfig /bin/ipconfig + + # Add hosts support files+dns + add_symlink /usr/lib/libnss_files.so.2 $(readlink /usr/lib/libnss_files.so.2) + add_binary $(readlink -f /usr/lib/libnss_files.so.2) + add_symlink /usr/lib/libnss_dns.so.2 $(readlink /usr/lib/libnss_dns.so.2) + add_binary $(readlink -f /usr/lib/libnss_dns.so.2) + + add_dir /etc + echo "hosts: files dns" > $BUILDROOT/etc/nsswitch.conf +} + +help() { +cat<<HELPEOF + This hook loads the necessary modules for boot via PXE. +HELPEOF +} + +# vim: set ft=sh ts=4 sw=4 et: diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_http b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_http new file mode 100644 index 0000000..4e02f98 --- /dev/null +++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_http @@ -0,0 +1,15 @@ +#!/bin/bash + +build() { + add_runscript + + add_binary curl +} + +help() { +cat<<HELPEOF + This hook loads the necessary modules for boot via PXE and HTTP. +HELPEOF +} + +# vim: set ft=sh ts=4 sw=4 et: diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nbd b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nbd new file mode 100644 index 0000000..47d98ce --- /dev/null +++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nbd @@ -0,0 +1,17 @@ +#!/bin/bash + +build() { + add_module "nbd" + + add_runscript + + add_binary nbd-client +} + +help() { +cat<<HELPEOF + This hook loads the necessary modules for boot via PXE and NBD. +HELPEOF +} + +# vim: set ft=sh ts=4 sw=4 et: diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nfs b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nfs new file mode 100644 index 0000000..f8226e5 --- /dev/null +++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nfs @@ -0,0 +1,17 @@ +#!/bin/bash + +build() { + add_module "nfs" + + add_runscript + + add_binary /usr/lib/initcpio/nfsmount /bin/nfsmount +} + +help() { + cat <<HELPEOF + This hook loads the necessary modules for boot via PXE and NFS. +HELPEOF +} + +# vim: set ft=sh ts=4 sw=4 et: diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_shutdown b/build_tools/archiso-19/archiso/initcpio/install/archiso_shutdown new file mode 100644 index 0000000..5ae976a --- /dev/null +++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_shutdown @@ -0,0 +1,20 @@ +#!/bin/bash + +build() { + add_binary cp + + add_runscript + + add_file /usr/lib/initcpio/archiso_shutdown /shutdown +} + +help() { + cat <<HELPEOF +This hook will create a shutdown initramfs in /run/initramfs +that we can pivot to on shutdown in order to unmount / and +and others mount points, dm-snapshot devices and loopback devices. +Mostly usefull for dm-snapshot persistent. +HELPEOF +} + +# vim: set ft=sh ts=4 sw=4 et: |