Permalink
Commits on Apr 9, 2012
  1. btrfs: delete hooks -- these belong to core/btrfs

    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Apr 9, 2012
  2. hooks: use consistent shebang, modeline, function style

    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Apr 9, 2012
  3. mdadm: fix raid[456] autodetection

    20509ad neglected to filter the raid456 module when detecting raid[456]
    arrays, which lead to non-bootable systems from the autodetect-enabled
    image.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Apr 9, 2012
Commits on Apr 4, 2012
  1. hooks: remove pcmcia hook

    This hook has been moved to the pcmciautils package.
    
    Signed-off-by: Tom Gundersen <teg@jklm.no>
    Acked-by: Dave Reisner <d@falconindy.com>
    teg committed with Apr 4, 2012
  2. fix pcmcia /usr move

    Tobias Powalowski committed Apr 4, 2012
Commits on Apr 2, 2012
  1. create /lib as a symlink to /usr/lib

    This makes us a little more future proof as far as moving files around.
    No need for 2 lib/ directories in early userspace anyways.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Apr 2, 2012
  2. base: move usb modprobe rule to /usr/lib/modprobe.d

    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Apr 2, 2012
Commits on Apr 1, 2012
  1. shutdown: detach all loop devices before umounting

    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 30, 2012
  2. shutdown: refine umount_all logic

    remove the mountpoint filtering from the awk processing and drop the -l
    flag from umount. Not clear why either of these were present -- they're
    both wrong.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 29, 2012
  3. autodetect: simplify mdadm autodetection

    Everything we need to know about the devices is already in sysfs
    attributes for the md devices. Read any found nodes for raid levels and
    sort them into our whitelist. This removes the need for root in order to
    "scan" arrays.
    
    More code churn on top of d11ba00.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 30, 2012
  4. mkinitcpio: hardcode a sane PATH

    Avoid pulling insane apps from user added PATH elements.
    
    FS#29162
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 29, 2012
  5. add minor tweaks to make testing a bit easier

    Since INSTDIR and HOOKDIR are understood as arrays now, declare them as
    such with the local 'hooks' and 'install' first to override the local
    FS. This makes the missing udev error go away and allows easier testing
    of other out of tree hooks.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 25, 2012
  6. shutdown: improve handling of dm devices

    - use the 'remove' action for cryptsetup rather than luksClose
    - handle dm devices with dmsetup, not lvm
    - disable dmraid devices by name, instead of all at once
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 28, 2012
  7. init_functions: fix missing * in fsck message

    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Apr 1, 2012
  8. init: fix location of udevd

    We've gotta stop moving this around...
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Apr 1, 2012
Commits on Mar 28, 2012
  1. fsck: leverage blank /etc/fstab included by base

    Since 3b18c9c we have a blank /etc/fstab in the image. This is also
    forward thinking for the next release of util-linux (2.22), where fsck
    complains loudly about my filthy hack of using /dev/null as /etc/fstab.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 28, 2012
Commits on Mar 26, 2012
  1. shutdown: disassemble devices on shutdown

    sysfs contains enough information about block devices to be able to
    determine the order of stacked devices such as lvm, raid, or crypto. By
    looking at the device symlinks from the holders/ attributes of a block
    device, we can walk down each device chain until we reach the most
    descendant device.
    
    For each of these devices at the end of a chain, detect its type and
    perform the appropriate action to disassemble it. Then, walk back up the
    device chain, disassembling each parent device.
    
    To save ourselves some pain and make sure we're fairly accurate, lsblk
    is brought in for detection of device types.
    
    Thanks-To: Florian Pritz <bluewind@xinu.at>
    Thanks-To: Tom Gundersen <teg@jklm.no>
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 24, 2012
  2. shutdown: add vim modeline, fix whitespacing

    Make this consistent with the rest of the codebase.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 24, 2012
Commits on Mar 24, 2012
  1. Makefile: simplify 'make dist' target

    - Use git-ls-files and bsdtar to create the archive rather than using
      git-archive and an temporary directory.
    - Remove the tarball target. 'dist' is more common.
    - Remove the 'clean' dependency from dist. Our dependencies are
      sufficient higher up that touching the Makefile or the asciidoc input
      will trigger a doc rebuild on changes.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 24, 2012
  2. init_functions: fix tag resolution w/o udev rules

    The combination of the udev+mdadm hooks plus a tag based root= would
    cause resolve_device to fail because it immediately looked for a udev
    symlink which would never be created. The proper fix is to get rid of
    the mdadm hook and to always use mdadm_udev (which should be merged into
    mdadm), but this might come back and bite us again.
    
    The new solution doesn't assume that udev rules exist and tries blkid
    first. If the device doesn't (yet) exist fall back on a udev symlink if
    udevd is running.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 21, 2012
  3. move bash completion to /usr/share/bash-completion

    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 21, 2012
  4. natively support locale.conf and vconsole.conf

    This is implemented for the keymap and consolefont hooks. It's done in
    such a way that vconsole.conf and locale.conf will override and
    supplement rc.conf.
    
    Implements FS#29022.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 21, 2012
  5. init_functions: support fsck.mode= cmdline parameter

    Possible options are 'skip' and 'force' which are synonyms for fastboot
    and forcefsck, respectively.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 20, 2012
  6. init_functions: avoid special treatment for forcefsck

    I don't want to make a habit of treating cmdline opts as special if they
    don't need to be, and this is a case where some simple PE magic can be
    substituted.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 24, 2012
Commits on Mar 16, 2012
  1. bash-completion: find hooks in /usr/lib

    [dreisner: add handling for -A flag]
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    mmonaco committed with Mar 16, 2012
  2. memdisk: fix udev rule path

    Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
    Gerardo Exequiel Pozzi committed with Mar 16, 2012
Commits on Mar 11, 2012
  1. hooks/resume: refactor

    - cleanup syntax, style
    - use case to detect syntax (avoid problems with vanilla devspecs
      containing a ':')
    - support LABEL=/UUID= syntax for vanilla hibernation (FS#28504)
    - be more verbose about errors
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 11, 2012
Commits on Mar 6, 2012
  1. mkinitcpio: force UID/GID 0 for files written to image

    This fixes a strange edge where-in a user creates an image as non-root
    and attempts to boot from it. Any setuid binaries (such as mount) will
    fail, as the ownership is preserved.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 6, 2012
Commits on Mar 4, 2012
  1. mkinitcpio: dedupe MODPATHS array before installation

    The only reason this has to be done is because of the Kconfig option
    that reuses the ext4 module for ext[23], thereby aliasing ext[23] to
    ext4. This is (currently) the only case in the whole kernel where valid
    module names magically become aliases.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 4, 2012
  2. init: add informational output about mounting

    Applies to both the real root and any device that's mounted on /usr
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 4, 2012
  3. add -A option to specify extra hooks

    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 3, 2012
  4. mkinitcpio: allow -S to be specified multiple times

    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 3, 2012
  5. add support for HOOKDIR/INSTDIR as arrays

    This is a really ugly patch, but allows mkinitcpio to read hooks from
    multiple locations, namely:
    
      /usr/lib/initcpio/{install,hooks}
      /lib/initcpio/{install,hooks}
    
    Preference is given to the first, and all files included with mkinitcpio
    are moved there.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 3, 2012
  6. init_functions: lazily resolve UUID/LABEL tags

    Relying on blkid to do tag resolution will fail when the root device
    doesn't yet exist. This is, of course, bad for USB root devices.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Mar 3, 2012
Commits on Mar 3, 2012
  1. install/fsck: use fsck.ext4 for ext[234]

    e2fsprogs makes a lot of hardlinks for its fsck tools. If ext[234] is
    detected, add the fsck.ext4 binary and add symlinks.
    
    Signed-off-by: Dave Reisner <dreisner@archlinux.org>
    committed Feb 27, 2012