[arch-projects] [mkinitcpio] [GIT] The official mkinitcpio repository branch master updated. 0.8.8-31-g61ae475
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "The official mkinitcpio repository". The branch, master has been updated via 61ae4752dc2de0c3cca201701b92908b1dd18dee (commit) via e79816383bfa5c8a82f6bc3816617327745dd54a (commit) via 7eb40daaae07520557d20fd41941026108faddfa (commit) via f88b2b53a4b2dcb177cb8b7197e2a61fd510c7ef (commit) via c5b1a1cef975686ff130c71b5212e3304af5625a (commit) via 013fe608a00be5c56d9dc9696c5cf8542d0c5736 (commit) via 1007ca6065131eb2770e9a08fac3b19c14527140 (commit) via 6df8511544a6a6b959e2cc6dd038f306d3de9685 (commit) via 1f7f41d1f88c1dd8eb3e70f1955c8bd1b029ca79 (commit) via 2f9ef2a98de81a9126e4e7112f164c561c2a7cbd (commit) via 20145c212ea0517a5d48ad222b29deffe8cd09eb (commit) via d858992503af95549961d982b98a727a2ede937e (commit) via 0ccb5f6e037bcbb0817cdb76274a37624c28cb5a (commit) via a68d47b4851828688275921e94b9a9e6bef80ca3 (commit) via 87c55e67d063bed6b1e2fa296779280182d79c40 (commit) via b7c1887306c1067984b5e5b564f25a12631b8162 (commit) via 261b731e8fb918309f2740b5262d9678378491fa (commit) via 01cb8b7a20ab53967a68e56a64152c357e12ff41 (commit) via 799ca0ab2dfb509f152fe268dfc916df2d33cbd1 (commit) via fdc89d71aae5d8b7449281fd62a681bf9552b54f (commit) via 79f6bb0dea639db6715ec178f3bbc85f41c4b92d (commit) via da1620afa90ec64cd4fb84dd816067c19f1a1761 (commit) via 018ab6e95cd194fe7aef6a66928759075e9259bd (commit) via 0778982e386d15e381b8f7dddd2a2bd68e78236c (commit) via ac88b257483372e709baac83066704b8fb484504 (commit) via 3af39a17e9e110f1612626386672efe9469f1872 (commit) from 9340f901fec092fde44c8322bb500c4d18f0f222 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 61ae4752dc2de0c3cca201701b92908b1dd18dee Author: Dave Reisner <dreisner@archlinux.org> Date: Fri May 18 00:18:37 2012 -0400 manpage: remove explcit author list This is what git is for. At this point, I've (re)written the majority of the page anyways. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit e79816383bfa5c8a82f6bc3816617327745dd54a Author: Dave Reisner <dreisner@archlinux.org> Date: Thu May 17 21:34:55 2012 -0400 manpage: expand doc on build and runtime hooks Fully document the recommended API for install hooks, and the various hook points available for early userspace hooks. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 7eb40daaae07520557d20fd41941026108faddfa Author: Tom Gundersen <teg@jklm.no> Date: Thu May 17 22:18:47 2012 -0400 init: add timestamp at start of initramfs if binary exists This will allow us to tell how much time was spent in the initramfs, which might be good for working on optimizations and making sure we don't regress. If a binary able to produce the timestamp is not installed this is a noop. I'll post separately an install hook to the systemd package that will install systemd-timestamp. However, it would be trivial to replace this by an independent implementation if people want to use this without systemd. With this patch I get the following on my (ancient) laptop: $ systemd-analyze Startup finished in 294ms (kernel) + 2684ms (initramfs) + 15741ms (userspace) = 18720ms FWIW, 1 second is spent on inserting the needed modules, and 1.5 seconds on mounting the rootfs (mounting btrfs is slow!). Signed-off-by: Tom Gundersen <teg@jklm.no> Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit f88b2b53a4b2dcb177cb8b7197e2a61fd510c7ef Author: Dave Reisner <dreisner@archlinux.org> Date: Sun May 13 20:05:50 2012 -0400 usr: add usr mounting as a late running hook Mount separate /usr partitions voluntarily, as a late running hook. This is an unfortunate patch that will no doubt result in some hatemail, though it won't thoroughly break anyone to the point of not booting. As a side effect, findmnt is no longer a requisite of the core /init, so move it to the shutdown and usr hooks where it's required. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit c5b1a1cef975686ff130c71b5212e3304af5625a Author: Dave Reisner <dreisner@archlinux.org> Date: Sun May 13 16:37:05 2012 -0400 init: remove hardcoded udev startup/shutdown This will be handled by udev's run_earlyhook and run_cleanuphook, respectively. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 013fe608a00be5c56d9dc9696c5cf8542d0c5736 Author: Dave Reisner <dreisner@archlinux.org> Date: Sun May 13 15:35:16 2012 -0400 lsinitcpio: Always show extraction time Even for uncompressed images, estimate the work being done to extract to ramfs. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 1007ca6065131eb2770e9a08fac3b19c14527140 Author: Dave Reisner <dreisner@archlinux.org> Date: Sun May 13 12:16:38 2012 -0400 lsinitcpio: add support for listing new hooks Read this out of the image config for -a output. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 6df8511544a6a6b959e2cc6dd038f306d3de9685 Author: Dave Reisner <dreisner@archlinux.org> Date: Sat May 12 20:14:56 2012 -0400 lsinitcpio: extract the image to a tempdir We read the image a number of times. Extract the image to a temp directory so we can just extract it once and use the filesystem to our advantage. This requires a temp dir which we can nuke on an EXIT trap, but the whole operation is sped is a bit, especially for larger images. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 1f7f41d1f88c1dd8eb3e70f1955c8bd1b029ca79 Author: Dave Reisner <dreisner@archlinux.org> Date: Sat May 12 18:35:53 2012 -0400 buildsys: fix clean target We don't ship compressed manpages, and this never touched lsinitcpio's generated page. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 2f9ef2a98de81a9126e4e7112f164c561c2a7cbd Author: Dave Reisner <dreisner@archlinux.org> Date: Sat May 12 09:47:55 2012 -0400 shutdown: convert to cleanup hook Run this later in init where we can delete the modules from the ramfs before copying the image over to /run/initramfs. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 20145c212ea0517a5d48ad222b29deffe8cd09eb Author: Dave Reisner <dreisner@archlinux.org> Date: Fri May 11 23:10:35 2012 -0400 shutdown: package as 644, install as 755 There's no need to keep this mildly dangerous script executable on the filesystem. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit d858992503af95549961d982b98a727a2ede937e Author: Dave Reisner <dreisner@archlinux.org> Date: Fri May 11 20:45:12 2012 -0400 init: add support for early, late and cleanup hooks This adds support for three more rounds of hooks during early userspace. Users can define a 'run_latehook' in their hook script similar to the declaration of 'run_hook' (which continue to run at the same point in execution). These are run in the same order as the original "early" hooks shortly after root is mounted. Additionally, 'run_cleanup' hook can be defined which will run right after the late hooks. These scripts are executed after mounting root in reverse order of how they're clared in mkinitcpio'c config. These late running hooks should take care of things such as: - mounting /usr (possibly encrypted) - moving config to the real root (mostly for liveCDs) - shutting down previously started daemons (e.g. udev or dropbear) Finally, we add run_earlyhook which is run as soon as possible. There will likely be only a few subscribers to this, but udev will certainly be one of them, as it needs to be started as early as possible when present, to avoid problems with firmware loading. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 0ccb5f6e037bcbb0817cdb76274a37624c28cb5a Author: Dave Reisner <dreisner@archlinux.org> Date: Thu May 17 22:01:28 2012 -0400 mkinitcpio: write image config after install hooks Break this out of install/base into a separate function. We need to be able to read from the RUNHOOKS array to accurately specify which hooks to execute at runtime. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit a68d47b4851828688275921e94b9a9e6bef80ca3 Author: Dave Reisner <dreisner@archlinux.org> Date: Fri May 11 20:34:39 2012 -0400 init_functions: move running hooks to separate func Abstract this out to the init_functions file, and allow this function take 2+ parameters -- the hook name to be run, a user friendly short description, and then the list of hook files to source from. While we're at it, take advantage of the fact that hooks are now installed with executable perms. If a hook isn't marked excutable, we skip it, thereby removing our eval hack. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 87c55e67d063bed6b1e2fa296779280182d79c40 Author: Dave Reisner <dreisner@archlinux.org> Date: Fri May 11 22:41:13 2012 -0400 init: correct trimming of earlymodules and MODULES This never worked properly and only "fixed" the stupid bug that found an edge case when either of these vars contains nothing more than a single space. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit b7c1887306c1067984b5e5b564f25a12631b8162 Author: Dave Reisner <dreisner@archlinux.org> Date: Fri May 11 17:21:36 2012 -0400 use new API for install hooks Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 261b731e8fb918309f2740b5262d9678378491fa Author: Dave Reisner <dreisner@archlinux.org> Date: Fri May 11 13:10:31 2012 -0400 functions: introduce add_runscript This function adds a runtime script to the /hooks directory on the initramfs image. Note that this function will also install hooks with executable permissions for use by a later change to early init. With this commit, there are now methods available which can be used in place of the MODULES, FILES, BINARIES, and SCRIPT variables, as we now offer error checking on the add_* functions. Usage of the variables is deprecated, and these will no longer be read in a future version of mkinitcpio. This commit also lays the groundwork for the addition of more early userspace hooks. Runtime hook files are parsed for specific functions and variables (not yet used) are populated. These will eventually be written to the image config so that early userspace knows exactly what to run. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 01cb8b7a20ab53967a68e56a64152c357e12ff41 Author: Dave Reisner <dreisner@archlinux.org> Date: Fri May 11 12:49:10 2012 -0400 functions: introduce add_checked_modules and add_all_modules Instead of returning a list of modules which the caller should then add themselves or stuff into the MODULES string, call add_module for each candidate. This is basically a different wrapper around all_modules. DEPRECATION WARNING: This commit marks checked_modules as deprecated. Although it is not slated to go away, direct usage of all_modules is strongly discouraged. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 799ca0ab2dfb509f152fe268dfc916df2d33cbd1 Author: Dave Reisner <dreisner@archlinux.org> Date: Fri May 11 11:18:02 2012 -0400 move -g option checking to parseopts loop Avoid any delay in checking this option, as it only serves to fragment the logic. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit fdc89d71aae5d8b7449281fd62a681bf9552b54f Author: Dave Reisner <dreisner@archlinux.org> Date: Tue May 8 09:04:22 2012 -0400 functions: move --try logic into add_module Allow add_module to detect trailing ? characters for ignoring errors rather than passing -t or --try to add_module. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 79f6bb0dea639db6715ec178f3bbc85f41c4b92d Author: Dave Reisner <dreisner@archlinux.org> Date: Tue May 8 00:44:42 2012 -0400 functions: remove get_dirname and get_basename A lot has changed since 643e98eeb42677 when these functions were implemented, and there is exactly 1 case of get_dirname left, and no calls to get_basename. Remove these, and use a PE in place of the remaining call. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit da1620afa90ec64cd4fb84dd816067c19f1a1761 Author: Dave Reisner <dreisner@archlinux.org> Date: Tue May 8 00:21:53 2012 -0400 mmc: package as mode 644, not 755 Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 018ab6e95cd194fe7aef6a66928759075e9259bd Author: Dave Reisner <dreisner@archlinux.org> Date: Tue May 8 00:12:46 2012 -0400 refactor error tracking in build hooks Rather than catching errors solely from parse_hook via an ERR trap, implement a RETURN trap which catches all errors from the core add_* functions. In the future, this may mean that support for MODULES/FILES/BINARIES within hooks goes away, and those variables remain only in the config. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 0778982e386d15e381b8f7dddd2a2bd68e78236c Author: Dave Reisner <dreisner@archlinux.org> Date: Sun May 6 19:24:35 2012 -0400 document special kernel cmdline parameters Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit ac88b257483372e709baac83066704b8fb484504 Author: Dave Reisner <dreisner@archlinux.org> Date: Fri May 4 10:00:00 2012 -0400 mkinitcpio: separate logic to resolve kernel version Rename get_kernelver -> resolve_kernelver, and ensure that it only does what it's name advertises. Introduce find_moduledir to locate the corresponding module directory in /usr/lib or /lib. Signed-off-by: Dave Reisner <dreisner@archlinux.org> commit 3af39a17e9e110f1612626386672efe9469f1872 Author: Dave Reisner <dreisner@archlinux.org> Date: Fri May 4 09:50:28 2012 -0400 use MODULEDIR as reference for *.(order|builtin) files Signed-off-by: Dave Reisner <dreisner@archlinux.org> ----------------------------------------------------------------------- Summary of changes: Makefile | 2 +- functions | 174 ++++++++++++++++++++++++++++++++++++++++----------- hooks/shutdown | 3 +- hooks/usr | 16 +++++ init | 66 ++++++------------- init_functions | 16 +++++ install/base | 16 ----- install/consolefont | 6 +- install/filesystems | 4 +- install/fsck | 4 ++ install/fw | 8 ++- install/ide | 4 +- install/keymap | 4 +- install/memdisk | 9 ++- install/mmc | 7 +-- install/pata | 6 +- install/resume | 2 +- install/sata | 6 +- install/scsi | 9 +-- install/shutdown | 8 ++- install/sleep | 2 +- install/usb | 12 ++-- install/usbinput | 5 +- install/usr | 16 +++++ install/virtio | 2 +- lsinitcpio | 74 +++++++++++++++------- lsinitcpio.1.txt | 2 +- mkinitcpio | 62 +++++++++++------- mkinitcpio.8.txt | 171 ++++++++++++++++++++++++++++++++++++++++++++------ 29 files changed, 501 insertions(+), 215 deletions(-) create mode 100644 hooks/usr mode change 100755 => 100644 install/mmc create mode 100644 install/usr mode change 100755 => 100644 shutdown hooks/post-receive -- The official mkinitcpio repository
participants (1)
-
dreisner@archlinux.org