summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2011-04-10Fix problems in parsing the kernel command lineThomas Bächler2-23/+27
The kernel command line allows quoted strings with whitespace in them. Until now, such parameters would crash /init and cause a kernel panic. Move parsing into a function and use the 'set' builtin to split /proc/cmdline into arguments. Fixes FS#13900 and FS#22080.
2011-04-10Allow initramfs to be completely silent:Thomas Bächler1-12/+11
- Remove ":: Loading initramfs" message - Start udev after command line parsing, so quiet will be respected
2011-04-08Introduce /runThomas Bächler2-1/+3
Mount /run as a 10MB tmpfs with 1777 permissions early. Move it to /new_root when switching.
2011-04-08init: Unify/improve mount --move handlingThomas Bächler1-3/+7
- Loop over dev, sys, proc instead of repeating the same command. - If the target directory does not exist, umount instead of moving.
2011-04-05Fix broken command line parsing due to insufficient quoting introduced in ↵Thomas Bächler1-1/+1
42e8dba5dce4879e4a372c5c2fb5446b4e8bb16c.
2011-03-27Release mkinitcpio 0.6.90.6.9Thomas Bächler1-1/+1
2011-03-27Simplify root file system detectionThomas Bächler1-2/+1
Instead of calling blkid, get the file system type directly from findmnt. Fixes FS#23100.
2011-03-27Improve compression in mkinitcpioThomas Bächler2-2/+10
- Remove default -9 compression (FS#20954) - Make compressor options configurable - Add xz support and make sure xz uses crc32 checks
2011-03-27poll_device: use 'echo' instead of 'msg'.Thomas Bächler1-1/+1
Fixes FS#21314
2011-02-27Use in_array instead of grep -w when checking SKIPHOOKS.Thomas Bächler1-3/+8
This fixes FS#22821.
2011-02-08Revert "mkinitcpio: mount real root device instead of symlink"Thomas Bächler1-3/+0
This reverts commit 9ef825cedd8228957f9bdd8df7ae543afd7e0001. The introduced change was inconsistent with the standard 'mount' behaviour and caused lots of confusion among LVM users.
2011-02-06remove loop from btrfs again, not neededTobias Powalowski1-1/+1
2011-02-06add loop module to avoid error messages from btrfs device scanTobias Powalowski1-1/+1
2011-02-06add DAC960 scsi module to scsi hook againTobias Powalowski1-1/+1
2011-02-01Remove some obsolete 'export'sThomas Bächler2-11/+10
2011-02-01Set pipefail before running get_init_cpioDave Reisner1-0/+1
This addresses FS#20638, where gen_init_cpio fails, but the pipeline still reports no error because gzip exits successfully. Setting pipefail insures that if anything goes wrong with gen_init_cpio, the operation is deemed a failure and the user isn't unknowingly left with a faulty initcpio. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-01Use install instead of mkdir/cpDan McGee1-3/+3
Saves a process invocation per kernel module. Based on work presented in FS#18347, and fixed to ensure we are using the install utility rather than our defined function. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-31poll_device: Remove -hThomas Bächler1-2/+2
It seems ash follows symlinks with -b.
2011-01-31Enhance sleep hook to watch for device availabilityThomas Bächler2-2/+9
Add a sleepdevice= parameter that will watch for the specified device to appear and then move on. This is more flexible than a defined sleep period and prevents needless waiting if the device appears sooner. Original patch by: Dan McGee <dan@archlinux.org>
2011-01-31Keep an array of added modules to prevent expensive lookupsDan McGee1-5/+8
This saves a find and grep call for every module that is added more than once, which can lead to significant savings in image generation time. Generating a fallback image went from 80 seconds to 60 seconds after this patch. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-31Add bash in_array functionDan McGee1-0/+15
This is what we currently use in makepkg for the same purpose. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-31Short circuit add module if it already exists in imageDan McGee1-1/+6
Rather than go through all the hoops, check if the module has already been added by looking for its file path and skip the addition early if we can. This helps especially in modules with many recursive dependencies, and is most noticable when generating a full image with many modules. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-31Use new helper functions instead of system commandsDan McGee3-19/+20
Replace all of the repeated calls to dirname and basename with our new replacments. Also replace the 'grep ... /dev/null' idiom with calls to 'grep -q', which does exactly what we want. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-31Use new get_module_name functionDan McGee1-7/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-31Add new helper functionsDan McGee1-0/+22
Replace common behavior we had in some other places with get_module_name, and add some basename/dirname replacements done in bash to avoid the forks for the number of times we call these functions. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-31Move output functions to top of functions fileDan McGee1-4/+3
This makes a bit more organizational sense to keep these first before we dive into the more complicated functions. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-26Release version 0.6.80.6.8Thomas Bächler1-1/+1
2011-01-25Support .ko.gz kernel modules, in addition to .koThomas Bächler2-6/+9
We used to expect only .ko as a kernel module name. Also accept .ko.gz, so we can reduce the installed size of the kernel26 package.
2011-01-12If filesystem autodetection fails, use all_modules instead of checked_modulesThomas Bächler2-2/+13
2011-01-12filesystems: remove cp437, it is added as an extra module whenever fat is usedThomas Bächler1-1/+1
2011-01-12autodetect: only probe the root deviceThomas Bächler1-4/+7
2010-12-06mount: forbid suid,exec,dev from /proc and /sysTom Gundersen1-2/+2
This is the counterpart to a similar patch to initscripts, making sure that the change applies regardless of whether initrd is used. Thanks to David Reisner for pointing out that this was needed.
2010-08-21Do not include everything from /block/ in the SCSI hook.Thomas Bächler1-1/+1
Fixes FS#19666
2010-07-12mkinitcpio: mount real root device instead of symlinkDave Reisner1-0/+3
If a symlink such as /dev/disk/by-uuid/xxxxx is provided on the kernel cmdline, resolve it and mount that device instead of the symlink. This prevents some ugliness in the output of commands such as mount or df. Signed-off-by: Dave Reisner <d@falconindy.com>
2010-07-11Release 0.6.70.6.7Thomas Bächler1-1/+2
2010-07-05Merge branch 'btrfs' of http://github.com/heftig/mkinitcpio into workingThomas Bächler4-24/+42
2010-06-26Add back /dev/{zero,null,mem} to the initramfs imageThomas Bächler1-0/+3
These devices might be actually needed before (dev)tmpfs is mounted, for example when uvesafb is built into the kernel (no module). By creating them in the image, they will be present as soon as initramfs has been extracted. Fixes https://bugs.archlinux.org/task/19903.
2010-06-23memdisk: add 01-memdisk.rules to Makefile, use the correct path in ↵Thomas Bächler2-1/+2
install/memdisk
2010-06-23memdisk: add UUID and label symlinks to udev ruleThomas Bächler1-1/+11
2010-06-23memdisk: Add udev ruleThomas Bächler2-0/+2
This rule creates /dev/memdisk if a memdisk has been found.
2010-06-23Add memdisk hookThomas Bächler2-0/+30
This hook creates a block device for virtual disks created by memdisk (http://syslinux.zytor.com/wiki/index.php/MEMDISK).
2010-06-19Simple Btrfs hookJan Steffens2-0/+23
All it does for now is cause a Btrfs scan so we can mount multi-device volumes.
2010-06-19sed cleanupJan Steffens1-4/+4
Replace some seds with tr and bash pattern removal
2010-06-19Implement explicit module dependsJan Steffens2-18/+16
Needed to get libcrc32c and therefore btrfs to work. Also remove the equivalent section in autodetect, which wasn't working anyway.
2010-06-19Fix autodetect bitrotJan Steffens1-6/+3
This error went unnoticed after auto_modules was switched over to resolve-modalias. As a result, ata_generic and ide-generic weren't filtered anymore.
2010-06-19Release 0.6.60.6.6Thomas Bächler1-1/+1
2010-06-10Create /dev/{null,zero,mem,console} devices when devtmpfs is missingThomas Bächler2-3/+6
These devices used to be present because they were added in the image. Since we now mount {dev,}tmpfs early in initramfs, the devices from the image will be invisible. In the tmpfs-case, create the devices manually so everything will be in order until udev is started, or if udev isn't used at all.
2010-06-03Release 0.6.50.6.5Thomas Bächler1-1/+1
2010-06-03udev hook: Add ata_id, path_id, scsi_id and usb_id to allow complete ↵Thomas Bächler1-1/+1
persistent storage rules
2010-06-03udev hook: Add --action=add to udevadm triggerThomas Bächler1-1/+1