Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added a mkinitcpio.conf to fix the fact autodetection isn't working

  • Loading branch information...
commit 575e94d5c1ba130ccd18818905e35a6e7f2d3be2 1 parent 356c215
Ernie Brodeur authored April 30, 2011
3  ami-builder.sh
@@ -92,6 +92,9 @@ title  Arch Linux
92 92
 EOF
93 93
 
94 94
 ### Modified Files.
  95
+# fix mkinitcpio
  96
+cp ./mkinitcpio.conf ./newroot/etc/mkinitcpio.conf
  97
+
95 98
 # secure sshd
96 99
 sed -e 's/#PasswordAuthentication yes/PasswordAuthentication no/' -i ./newroot/etc/ssh/sshd_config
97 100
 sed -e 's/#UseDNS yes/UseDNS no/' -i ./newroot/etc/ssh/sshd_config
65  mkinitcpio.conf
... ...
@@ -0,0 +1,65 @@
  1
+# vim:set ft=sh
  2
+# MODULES
  3
+# The following modules are loaded before any boot hooks are
  4
+# run.  Advanced users may wish to specify all system modules
  5
+# in this array.  For instance:
  6
+#     MODULES="piix ide_disk reiserfs"
  7
+#MODULES=""
  8
+
  9
+# BINARIES
  10
+# This setting includes, into the CPIO image, and additional
  11
+# binaries a given user may wish.  This is run first, so may
  12
+# be used to override the actual binaries used in a given hook.
  13
+# (Existing files are NOT overwritten is already added)
  14
+# BINARIES are dependancy parsed, so you may safely ignore libraries
  15
+BINARIES=""
  16
+
  17
+# FILES
  18
+# This setting is similar to BINARIES above, however, files are added
  19
+# as-is and are not parsed in anyway.  This is useful for config files.
  20
+# Some users may wish to include modprobe.conf for custom module options,
  21
+# like so:
  22
+#    FILES="/etc/modprobe.conf"
  23
+#FILES="/etc/modprobe.d/modprobe.conf"
  24
+
  25
+# HOOKS
  26
+# This is the most important setting in this file.  The HOOKS control the
  27
+# modules and scripts added to the image, and what happens at boot time.
  28
+# Order is important, and it is recommended that you do not change the
  29
+# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
  30
+# help on a given hook.
  31
+# 'base' is _required_ unless you know precisely what you are doing.
  32
+# 'udev' is _required_ in order to automatically load modules
  33
+# 'filesystems' is _required_ unless you specify your fs modules in MODULES
  34
+# Examples:
  35
+#    This setup specifies all modules in the MODULES setting above.
  36
+#    No raid, lvm2, or encrypted root is needed.
  37
+#    HOOKS="base"
  38
+#
  39
+#    This setup will autodetect all modules for your system and should
  40
+#    work as a sane default
  41
+#    HOOKS="base udev autodetect pata scsi sata filesystems"
  42
+#
  43
+#    This is identical to the above, except the old ide subsystem is
  44
+#    used for IDE devices instead of the new pata subsystem.
  45
+#    HOOKS="base udev autodetect ide scsi sata filesystems"
  46
+#
  47
+#    This setup will generate a 'full' image which supports most systems.
  48
+#    No autodetection is done.
  49
+#    HOOKS="base udev pata scsi sata usb filesystems"
  50
+#
  51
+#    This setup assembles an pata raid array with an encrypted root FS.
  52
+#    Note: See 'mkinitcpio -H raid' for more information on raid devices.
  53
+#    HOOKS="base udev pata raid encrypt filesystems"
  54
+#
  55
+#    This setup loads an lvm2 volume group on a usb device.
  56
+#    HOOKS="base udev usb lvm2 filesystems"
  57
+HOOKS="base udev pata scsi sata filesystems"
  58
+
  59
+# COMPRESSION
  60
+# Use this to compress the initramfs image. With kernels earlier than
  61
+# 2.6.30, only gzip is supported, which is also the default. Newer kernels
  62
+# support gzip, bzip2 and lzma.
  63
+#COMPRESSION="gzip"
  64
+COMPRESSION="bzip2"
  65
+#COMPRESSION="lzma"

0 notes on commit 575e94d

Please sign in to comment.
Something went wrong with that request. Please try again.