summaryrefslogtreecommitdiffstats
path: root/mkinitcpio
AgeCommit message (Collapse)AuthorFilesLines
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
2006-05-18Changes to basedir/depmod handling (again)Aaron Griffin1-7/+10
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@104 880c04e9-e011-0410-abf7-b926e227c9cd
2006-05-13Modify /tmp handling when basedir is specifiedAaron Griffin1-5/+5
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@99 880c04e9-e011-0410-abf7-b926e227c9cd
2006-05-12'fixed module bug and broken keymap and generated new tarball'Tobias Powalowski1-1/+1
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@98 880c04e9-e011-0410-abf7-b926e227c9cd