summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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
2010-06-03Mount tmpfs or (if supported) devtmpfs on /dev, move it into the real root ↵Thomas Bächler1-0/+6
before switch_root
2010-06-03Do not umount /proc and /sys before switch_root, but mount --move them into ↵Thomas Bächler1-2/+2
the real root
2010-05-08Release 0.6.40.6.4Thomas Bächler1-1/+1
2010-05-08Add dmesg hookThomas Bächler2-0/+23
2010-05-08Port 83ef38409182a9c024809553dff8c872902d0889 to init_functions too, to ↵Thomas Bächler1-1/+1
remove more eval hacks
2010-05-08Allow usage of non-utf8 fonts in the consolefont hook, see FS#19109Thomas Bächler2-4/+14
Patch was provided by Mark (voidzero) in https://bugs.archlinux.org/task/19109 This requires busybox commit http://git.busybox.net/busybox/commit/?id=8ce1dc03c1b2b61e51527b987579c09c991cc4b2 which is in the 1.7 branch, a backport will be included in an updated mkinitcpio-busybox package
2010-05-08Change how autodetect hook lookup for filesystemsGerardo Exequiel Pozzi1-1/+1
In this way, remove eval hacks and enviroments vars, just use blkid syntax. I guess in this way will fix/hide "command not found" when fstype is not property setup in fs, reported by some users. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2010-02-22Add 'sleep' hookThomas Bächler2-0/+28
2010-02-21Release 0.6.30.6.3Thomas Bächler1-1/+1
2010-02-21poll_device: do not wait for a device to appear if udevd is not runningThomas Bächler2-5/+10
Devices will never "magically" appear when udevd is not running. Thus, poll_device now exits instantly when a device when udevd is not running. The return value is unchanged, just the delay is removed. Assuming that the drive is available just after loading the module is unsafe. However, "fast" devices like most (all?) pata/sata seem to work this way for many people. On "slow" devices like USB, we still have to wait - those will not work without udev.
2010-02-21Allow the second parameter of poll_device to be 0 - this fixes rootdelay=0Thomas Bächler1-1/+1
2010-02-20default_mount_hook: Use major and minor variables instead of a single ↵Thomas Bächler1-7/+9
rootdev variable This is nicer and more explicit than before, based on a patch by Benjamin Richter
2010-02-20load-modules.sh: Always use --use-blacklistThomas Bächler1-1/+1
This matches the change from http://repos.archlinux.org/wsvn/packages/?op=comp&compare[]=%2Fudev%2Ftrunk@68711&compare[]=%2Fudev%2Ftrunk@69509
2010-02-20Use $(( )) instead of printf "%d"Benjamin Richter1-2/+2
2010-02-20Cosmetic change: 'msg' function does not support '\n'Thomas Bächler1-1/+1
2010-02-20Use only a single loop for searching /sys/blockBenjamin Richter1-12/+8
2010-02-19Fix typo in 01cfe5572f6cfc172dddc013494511a59a7ed85fThomas Bächler1-1/+1
2010-02-18Fix NFS backward-compatibility with kinitThomas Bächler1-1/+5
NFS options of the style nfsaddrs=* and ip=dhcp (without the long : syntax) used to be supported by kinit, but were undocumented in Arch's help. This change hopefully restores full compatibility with old kinit configurations.
2010-02-17Improve sanity check: ${init} must be executableThomas Bächler1-1/+1
2010-02-16launch_interactive_shell: add "export" for PS1Thomas Bächler1-1/+1
2010-02-16When use stat -c %D instead of stat -f -c %i for testing if /new_root is a ↵Thomas Bächler1-1/+1
mount point The old check couldn't distinguish different tmpfs mounts and failed to work with aufs (archiso). This check is actually the same one that busybox/switch_root uses to determine where to stop deleting files. If this check fails and we still launch switch_root it may start deleting data.
2010-02-16Make indentation in two code blocks consistentThomas Bächler1-13/+13
2010-02-16Remove the special handling for the default mount procedure, move it into a ↵Thomas Bächler2-70/+71
mount handler (default_mount_handler)
2010-02-16Introduce mount handlersThomas Bächler2-9/+19
Instead of having special NFS code in /init, make it possible for a hook to register a mount handler When a hook sets the mount_handler environment variable, the normal mount code will be skipped and the handler will be called with the path to mount point as the first and only argument.
2010-02-15Do not kill -9 udevd, instead kill -15 and wait for all processes to ↵Thomas Bächler1-2/+4
terminate before continuing