Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2012-08-25 15:14:51 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2012-08-25 15:14:51 -0300
commit6369815d5721e2908174d9ddc76bd9ffe32570b4 (patch)
tree06e3d7a2c9b8c8a4172d97ab90a9ed9eb8550879 /install
parentd93c9c21873ddc269f8cde7bd39e3e54650f2489 (diff)
[archiso] Rework Makefile / Reorder files
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'install')
-rw-r--r--install/archiso22
-rw-r--r--install/archiso_kms26
-rw-r--r--install/archiso_loop_mnt13
-rw-r--r--install/archiso_pxe_common26
-rw-r--r--install/archiso_pxe_http15
-rw-r--r--install/archiso_pxe_nbd17
-rw-r--r--install/archiso_pxe_nfs17
-rw-r--r--install/archiso_shutdown20
8 files changed, 156 insertions, 0 deletions
diff --git a/install/archiso b/install/archiso
new file mode 100644
index 0000000..8893667
--- /dev/null
+++ b/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/install/archiso_kms b/install/archiso_kms
new file mode 100644
index 0000000..3ff31f3
--- /dev/null
+++ b/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/install/archiso_loop_mnt b/install/archiso_loop_mnt
new file mode 100644
index 0000000..59f1d94
--- /dev/null
+++ b/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/install/archiso_pxe_common b/install/archiso_pxe_common
new file mode 100644
index 0000000..eec9a7e
--- /dev/null
+++ b/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/install/archiso_pxe_http b/install/archiso_pxe_http
new file mode 100644
index 0000000..4e02f98
--- /dev/null
+++ b/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/install/archiso_pxe_nbd b/install/archiso_pxe_nbd
new file mode 100644
index 0000000..47d98ce
--- /dev/null
+++ b/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/install/archiso_pxe_nfs b/install/archiso_pxe_nfs
new file mode 100644
index 0000000..f8226e5
--- /dev/null
+++ b/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/install/archiso_shutdown b/install/archiso_shutdown
new file mode 100644
index 0000000..5ae976a
--- /dev/null
+++ b/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: