summaryrefslogtreecommitdiffstats
path: root/mkinitcpio
AgeCommit message (Collapse)AuthorFilesLines
2011-06-16mkinitcpio: Unset GREP_OPTIONS to avoid broken imagesThomas Bächler1-0/+3
2011-06-07mkinitcpio: use binary hashed depmod filesDave Reisner1-3/+3
We can condense this logic into a loop as well, which cuts back on repetative code. Signed-off-by: Dave Reisner <d@falconindy.com>
2011-05-16Don't print success/failure result on same lineDan McGee1-3/+3
Doing the `echo -n` call causes the shell to line-buffer the output anyway, meaning one doesn't see the first part until 'SUCCESS' or 'FAILURE' is printed. This means the last message on the screen is 'Generating module dependencies' when in fact we are actually generating the image, which can take a lot of time when XZ, etc. are used. Print the status on two lines, ensuring buffering is not causing problems with out output. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-27Improve compression in mkinitcpioThomas Bächler1-1/+3
- Remove default -9 compression (FS#20954) - Make compressor options configurable - Add xz support and make sure xz uses crc32 checks
2011-02-27Use in_array instead of grep -w when checking SKIPHOOKS.Thomas Bächler1-3/+8
This fixes FS#22821.
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-31Use new helper functions instead of system commandsDan McGee1-4/+4
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>
2010-02-11Removed/changed messages/comments about klibc/kinitGerardo Exequiel Pozzi1-5/+4
Also remove comment about "modload" in conf. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: Thomas Bächler <thomas@archlinux.org>
2010-02-08Fixed typo in commentEric Bélanger1-1/+1
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com>
2010-01-12Do not append a trailing /, remove it (fixed FS#17793)Thomas Bächler1-4/+2
The comment said it was appending a trailing /, but it was actually removed Recent fixes adjusted the code to do what the comment says, which is wrong here. This fixes the code and the comment.
2010-01-05Revert 1558dfbf3b2a42f43594acf6e3d8f9b329ff1133 and ↵Thomas Bächler1-17/+4
984cbd4eb023001668eea530e2b5ed2e57ba3693 and depend on bash There was no proper upgrade path for these changes. This can be reconsidered once a clean upgrade path is provided. Compatibility with non-bash shells is not as important as backwards-compatibility of existing configurations.
2009-09-04Exit with error if PRESETS seems to be defined as an array.Loui Chang1-2/+6
Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-09-01Defining PRESETS as a bash array is no longer supported.Loui Chang1-1/+10
PRESETS should be defined as a string in all mkinitcpio preset files for compatibility with dash. Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-09-01Replace all occurances of 'source' with a dot for dash compatibility.Loui Chang1-6/+6
Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-05Do not rely on -L test; use -h instead.Loui Chang1-1/+1
See `man dash` Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-05Eliminate bashisms so things work in dash.Loui Chang1-5/+5
Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-05Set $UID if unset, required by the autodetect hook.Loui Chang1-0/+4
$UID isn't set by default in dash. Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-06-06Add support for lzma and bzip2 compression for the imageThomas Bächler1-1/+2
2009-01-23Dry-run output check was reversed, whoopsAaron Griffin1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-01-21Change initial output when running a dry-run0.5.22Aaron Griffin1-1/+5
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-04-02Remove filelist sorting, as it causes random bugs0.5.18.1Thomas Bächler1-2/+0
2008-03-16Fix various coding style issuesThomas Bächler1-15/+15
2008-03-16Remove a warning during image generationThomas Bächler1-1/+0
2008-03-15Remove duplicate files from the filelist, gen_init_cpio actually adds them ↵0.5.18pre1Thomas Bächler1-0/+2
to the image twice
2008-03-15Fix trap call, always call cleanupThomas Bächler1-2/+10
2008-03-15Fix syntax error introduced in one of the last commitsThomas Bächler1-2/+2
2008-03-15Make presets more powerful: a fallback image can be generated without a ↵Thomas Bächler1-2/+12
separate configuration file
2008-03-15Use a temporary directory instead of several files. trap cleanupThomas Bächler1-17/+24
2008-03-15Add -S option to skip hooks when building the imageThomas Bächler1-8/+12
2008-01-04Allow init=??? syntax againAaron Griffin1-8/+8
Using an explicit set of params passed to kinit is annoying, because we forget things like this. Add init=??? syntax again, for i.e. init=/bin/bash to recover a root password Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-10-31Fix problems with /sbin and /usr/sbin not being in the path,Thomas Bächler1-2/+6
fixes Archlinux #8448
2007-08-11Coding style change, use -n and -z for variable testsAaron Griffin1-6/+6
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com> git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@209 880c04e9-e011-0410-abf7-b926e227c9cd
2006-12-07reverted partially fucked up commit. should be better nowThomas Bächler1-2/+2
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@190 880c04e9-e011-0410-abf7-b926e227c9cd
2006-12-06Trying to address piix issue:Thomas Bächler1-2/+8
- added -m to print a message before passing control to kinit - added earlymodules= to preload modules git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@187 880c04e9-e011-0410-abf7-b926e227c9cd
2006-10-24- Preset changes to better config file formatThomas Bächler1-6/+28
- Global kver for all images in a preset - Allow comments (#) in kernel commandline git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@182 880c04e9-e011-0410-abf7-b926e227c9cd
2006-10-24removed unnecessary sanity check (never worked anyway)Thomas Bächler1-3/+0
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@180 880c04e9-e011-0410-abf7-b926e227c9cd
2006-10-23- Fixed autodetectionThomas Bächler1-19/+24
- Minor changes to presets - Removed ata, made sata 2.6.19-ready and added pata git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@179 880c04e9-e011-0410-abf7-b926e227c9cd
2006-10-17added initial preset supportThomas Bächler1-1/+27
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@178 880c04e9-e011-0410-abf7-b926e227c9cd
2006-10-15added install/ata and new deprecation checkThomas Bächler1-0/+14
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@173 880c04e9-e011-0410-abf7-b926e227c9cd
2006-10-04/tmp cleanup and autodetection fixes (checked in previously)Aaron Griffin1-2/+4
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@172 880c04e9-e011-0410-abf7-b926e227c9cd
2006-09-29Added proper cleanup for /tmp/lib/modulesAaron Griffin1-1/+8
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@169 880c04e9-e011-0410-abf7-b926e227c9cd
2006-06-16Fixed optarg picking up other options...Aaron Griffin1-1/+7
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@129 880c04e9-e011-0410-abf7-b926e227c9cd
2006-06-16-a option implies -sAaron Griffin1-1/+1
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@128 880c04e9-e011-0410-abf7-b926e227c9cd
2006-06-06New error conditions: fail on missing hook or missing moduleAaron Griffin1-1/+4
Filesystem hook changes (parseblock handling) Init changes to allow /arch.cmd command line parsing Misc install script cleanups git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@123 880c04e9-e011-0410-abf7-b926e227c9cd
2006-05-20'added mktemp for FILESLIST= to allow multiple mkinitcpio programs at the ↵Tobias Powalowski1-1/+1
same time" git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@112 880c04e9-e011-0410-abf7-b926e227c9cd
2006-05-18Cleaned up exit statusAaron Griffin1-0/+4
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@108 880c04e9-e011-0410-abf7-b926e227c9cd
2006-05-18git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@107 ↵Aaron Griffin1-2/+1
880c04e9-e011-0410-abf7-b926e227c9cd
2006-05-18Ok, last change to basedir handling for depmod, I swear it!Aaron Griffin1-7/+9
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@106 880c04e9-e011-0410-abf7-b926e227c9cd
2006-05-18removed debugging output 8)Aaron Griffin1-1/+0
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@105 880c04e9-e011-0410-abf7-b926e227c9cd